singlestoreSuite.allTypes() — drizzle-orm Function Reference
Architecture documentation for the singlestoreSuite.allTypes() function in singlestore.test.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 1f8a4a8a_5875_6565_2a8d_3ac8756fd9d5["singlestoreSuite.allTypes()"] 080335b9_a640_8a6d_81f7_fed0bb4ae5ca["singlestore.test.ts"] 1f8a4a8a_5875_6565_2a8d_3ac8756fd9d5 -->|defined in| 080335b9_a640_8a6d_81f7_fed0bb4ae5ca style 1f8a4a8a_5875_6565_2a8d_3ac8756fd9d5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/tests/push/singlestore.test.ts lines 62–281
allTypes: async function(context: any): Promise<void> {
const schema1 = {
allBigInts: singlestoreTable('all_big_ints', {
simple: bigint('simple', { mode: 'number' }),
columnNotNull: bigint('column_not_null', { mode: 'number' }).notNull(),
columnDefault: bigint('column_default', { mode: 'number' }).default(12),
columnDefaultSql: bigint('column_default_sql', {
mode: 'number',
}).default(12),
}),
allBools: singlestoreTable('all_bools', {
simple: tinyint('simple'),
columnNotNull: tinyint('column_not_null').notNull(),
columnDefault: tinyint('column_default').default(1),
}),
allChars: singlestoreTable('all_chars', {
simple: char('simple', { length: 1 }),
columnNotNull: char('column_not_null', { length: 45 }).notNull(),
// columnDefault: char("column_default", { length: 1 }).default("h"),
columnDefaultSql: char('column_default_sql', { length: 1 }).default(
'h',
),
}),
// allDateTimes: singlestoreTable("all_date_times", {
// simple: datetime("simple", { mode: "string", fsp: 1 }),
// columnNotNull: datetime("column_not_null", {
// mode: "string",
// }).notNull(),
// columnDefault: datetime("column_default", { mode: "string" }).default(
// "2023-03-01 14:05:29"
// ),
// }),
allDates: singlestoreTable('all_dates', {
simple: date('simple', { mode: 'string' }),
column_not_null: date('column_not_null', { mode: 'string' }).notNull(),
column_default: date('column_default', { mode: 'string' }).default(
'2023-03-01',
),
}),
allDecimals: singlestoreTable('all_decimals', {
simple: decimal('simple', { precision: 1, scale: 0 }),
columnNotNull: decimal('column_not_null', {
precision: 45,
scale: 3,
}).notNull(),
columnDefault: decimal('column_default', {
precision: 10,
scale: 0,
}).default('100'),
columnDefaultSql: decimal('column_default_sql', {
precision: 10,
scale: 0,
}).default('101'),
}),
allDoubles: singlestoreTable('all_doubles', {
simple: double('simple'),
columnNotNull: double('column_not_null').notNull(),
columnDefault: double('column_default').default(100),
columnDefaultSql: double('column_default_sql').default(101),
}),
allEnums: singlestoreTable('all_enums', {
simple: singlestoreEnum('simple', ['hi', 'hello']),
}),
allEnums1: singlestoreTable('all_enums1', {
simple: singlestoreEnum('simple', ['hi', 'hello']).default('hi'),
}),
allFloats: singlestoreTable('all_floats', {
columnNotNull: float('column_not_null').notNull(),
columnDefault: float('column_default').default(100),
columnDefaultSql: float('column_default_sql').default(101),
}),
allInts: singlestoreTable('all_ints', {
simple: int('simple'),
columnNotNull: int('column_not_null').notNull(),
columnDefault: int('column_default').default(100),
columnDefaultSql: int('column_default_sql').default(101),
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does singlestoreSuite.allTypes() do?
singlestoreSuite.allTypes() is a function in the drizzle-orm codebase, defined in drizzle-kit/tests/push/singlestore.test.ts.
Where is singlestoreSuite.allTypes() defined?
singlestoreSuite.allTypes() is defined in drizzle-kit/tests/push/singlestore.test.ts at line 62.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free