MCPcopy
hub / github.com/chartdb/chartdb / createField

Function createField

src/lib/data/sql-export/__tests__/export-sql.test.ts:17–27  ·  view source on GitHub ↗
(overrides: Partial<DBField>)

Source from the content-addressed store, hash-verified

15 const testTime = Date.now();
16
17 const createField = (overrides: Partial<DBField>): DBField =>
18 ({
19 id: testId(),
20 name: 'field',
21 type: { id: 'text', name: 'text' },
22 primaryKey: false,
23 nullable: true,
24 unique: false,
25 createdAt: testTime,
26 ...overrides,
27 }) as DBField;
28
29 const createTable = (overrides: Partial<DBTable>): DBTable =>
30 ({

Callers 2

export-sql.test.tsFile · 0.70

Calls 1

testIdFunction · 0.70

Tested by

no test coverage detected