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

Function rowToFileRecord

src/db/queries.ts:387–399  ·  view source on GitHub ↗

* Convert database row to FileRecord object

(row: FileRow)

Source from the content-addressed store, hash-verified

385 * Convert database row to FileRecord object
386 */
387function rowToFileRecord(row: FileRow): FileRecord {
388 return {
389 path: row.path,
390 contentHash: row.content_hash,
391 language: row.language as Language,
392 size: row.size,
393 modifiedAt: row.modified_at,
394 indexedAt: row.indexed_at,
395 nodeCount: row.node_count,
396 errors: row.errors ? safeJsonParse(row.errors, undefined) : undefined,
397 generated: row.generated === 1,
398 };
399}
400
401/**
402 * 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