MCPcopy Create free account
hub / github.com/TabularisDB/tabularis / makeType

Function makeType

tests/utils/columnTypes.test.ts:9–19  ·  view source on GitHub ↗
(
  name: string,
  overrides: Partial<DataTypeInfo> = {},
)

Source from the content-addressed store, hash-verified

7import type { DataTypeInfo } from '../../src/types/dataTypes';
8
9const makeType = (
10 name: string,
11 overrides: Partial<DataTypeInfo> = {},
12): DataTypeInfo => ({
13 name,
14 category: 'other',
15 requires_length: false,
16 requires_precision: false,
17 supports_auto_increment: false,
18 ...overrides,
19});
20
21const pgTypes: DataTypeInfo[] = [
22 makeType('VARCHAR', { category: 'string', requires_length: true, default_length: '255' }),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected