MCPcopy Index your code
hub / github.com/colbymchenry/codegraph / rowToFileRecord

Function rowToFileRecord

src/db/queries.ts:160–171  ·  view source on GitHub ↗

* Convert database row to FileRecord object

(row: FileRow)

Source from the content-addressed store, hash-verified

158 * Convert database row to FileRecord object
159 */
160function rowToFileRecord(row: FileRow): FileRecord {
161 return {
162 path: row.path,
163 contentHash: row.content_hash,
164 language: row.language as Language,
165 size: row.size,
166 modifiedAt: row.modified_at,
167 indexedAt: row.indexed_at,
168 nodeCount: row.node_count,
169 errors: row.errors ? safeJsonParse(row.errors, undefined) : undefined,
170 };
171}
172
173/**
174 * Query builder for the knowledge graph database

Callers 1

getFileByPathMethod · 0.85

Calls 1

safeJsonParseFunction · 0.90

Tested by

no test coverage detected