singlestore.test.ts — drizzle-orm Source File
Architecture documentation for singlestore.test.ts, a typescript file in the drizzle-orm codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 7ccfbead_4135_7db1_a97e_1ff3b4b3e9d0["singlestore.test.ts"] 2d8c527a_8c3a_90af_4e89_47c43efd31ee["schemaDiffer.ts"] 7ccfbead_4135_7db1_a97e_1ff3b4b3e9d0 --> 2d8c527a_8c3a_90af_4e89_47c43efd31ee 14341415_e2af_2850_e645_6ed435255609["diffTestSchemasSingleStore"] 7ccfbead_4135_7db1_a97e_1ff3b4b3e9d0 --> 14341415_e2af_2850_e645_6ed435255609 350a3d81_bb8e_3a58_77be_58cbd3f7ab85["drizzle-orm"] 7ccfbead_4135_7db1_a97e_1ff3b4b3e9d0 --> 350a3d81_bb8e_3a58_77be_58cbd3f7ab85 2924b013_4d40_0214_61b1_e2373809c5ee["singlestore-core"] 7ccfbead_4135_7db1_a97e_1ff3b4b3e9d0 --> 2924b013_4d40_0214_61b1_e2373809c5ee aa9d887a_e866_91be_08c9_4b95f8d893ee["vitest"] 7ccfbead_4135_7db1_a97e_1ff3b4b3e9d0 --> aa9d887a_e866_91be_08c9_4b95f8d893ee style 7ccfbead_4135_7db1_a97e_1ff3b4b3e9d0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { sql } from 'drizzle-orm';
import {
index,
int,
json,
primaryKey,
serial,
singlestoreSchema,
singlestoreTable,
text,
uniqueIndex,
} from 'drizzle-orm/singlestore-core';
import { expect, test } from 'vitest';
import { diffTestSchemasSingleStore } from './schemaDiffer';
test('add table #1', async () => {
const to = {
users: singlestoreTable('users', {}),
};
const { statements } = await diffTestSchemasSingleStore({}, to, []);
expect(statements.length).toBe(1);
expect(statements[0]).toStrictEqual({
type: 'create_table',
tableName: 'users',
schema: undefined,
columns: [],
compositePKs: [],
internals: {
tables: {},
indexes: {},
},
uniqueConstraints: [],
compositePkName: '',
});
});
test('add table #2', async () => {
const to = {
users: singlestoreTable('users', {
id: serial('id').primaryKey(),
}),
};
const { statements } = await diffTestSchemasSingleStore({}, to, []);
expect(statements.length).toBe(1);
expect(statements[0]).toStrictEqual({
type: 'create_table',
tableName: 'users',
schema: undefined,
columns: [
{
name: 'id',
notNull: true,
primaryKey: false,
type: 'serial',
autoincrement: true,
},
// ... (919 more lines)
Domain
Dependencies
- diffTestSchemasSingleStore
- drizzle-orm
- schemaDiffer.ts
- singlestore-core
- vitest
Source
Frequently Asked Questions
What does singlestore.test.ts do?
singlestore.test.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain.
What does singlestore.test.ts depend on?
singlestore.test.ts imports 5 module(s): diffTestSchemasSingleStore, drizzle-orm, schemaDiffer.ts, singlestore-core, vitest.
Where is singlestore.test.ts in the architecture?
singlestore.test.ts is located at drizzle-kit/tests/singlestore.test.ts (domain: DrizzleORM, directory: drizzle-kit/tests).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free