MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / rowToFileRecord

Function rowToFileRecord

src/db/queries.ts:432–444  ·  view source on GitHub ↗

* Convert database row to FileRecord object

(row: FileRow)

Source from the content-addressed store, hash-verified

430 * Convert database row to FileRecord object
431 */
432function rowToFileRecord(row: FileRow): FileRecord {
433 return {
434 path: row.path,
435 contentHash: row.content_hash,
436 language: row.language as Language,
437 size: row.size,
438 modifiedAt: row.modified_at,
439 indexedAt: row.indexed_at,
440 nodeCount: row.node_count,
441 errors: row.errors ? safeJsonParse(row.errors, undefined) : undefined,
442 generated: row.generated === 1,
443 };
444}
445
446/**
447 * Files ranked by edges between two of their own symbols — the input to

Callers 1

getFileByPathMethod · 0.85

Calls 1

safeJsonParseFunction · 0.90

Tested by

no test coverage detected