sqlite.test.ts — drizzle-orm Source File
Architecture documentation for sqlite.test.ts, a typescript file in the drizzle-orm codebase. 6 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR fc34858c_f994_0507_6b08_359492f95806["sqlite.test.ts"] cb8af6f6_42c5_778a_59ad_3dae969a78cb["common.ts"] fc34858c_f994_0507_6b08_359492f95806 --> cb8af6f6_42c5_778a_59ad_3dae969a78cb ffafaf61_b2c2_761b_3dbd_8f34e0c7e758["DialectSuite"] fc34858c_f994_0507_6b08_359492f95806 --> ffafaf61_b2c2_761b_3dbd_8f34e0c7e758 716be267_2ed9_0725_fd9d_67163e133fda["run"] fc34858c_f994_0507_6b08_359492f95806 --> 716be267_2ed9_0725_fd9d_67163e133fda 25248a9d_ba06_2b33_4421_8575da2f9c34["sqlite-core"] fc34858c_f994_0507_6b08_359492f95806 --> 25248a9d_ba06_2b33_4421_8575da2f9c34 2080849e_169d_739e_1ba9_1396fc229951["schemaDiffer"] fc34858c_f994_0507_6b08_359492f95806 --> 2080849e_169d_739e_1ba9_1396fc229951 8d35eaf2_a542_cfd4_fa1a_fafca0f02686["vitest"] fc34858c_f994_0507_6b08_359492f95806 --> 8d35eaf2_a542_cfd4_fa1a_fafca0f02686 style fc34858c_f994_0507_6b08_359492f95806 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { int, sqliteTable, text } from 'drizzle-orm/sqlite-core';
import { diffTestSchemasSqlite } from 'tests/schemaDiffer';
import { expect } from 'vitest';
import { DialectSuite, run } from '../common';
const sqliteSuite: DialectSuite = {
async columns1() {
const schema1 = {
users: sqliteTable('users', {
id: int('id').primaryKey({ autoIncrement: true }),
}),
};
const schema2 = {
users: sqliteTable('users', {
id: int('id').primaryKey({ autoIncrement: true }),
name: text('name'),
}),
};
const { statements } = await diffTestSchemasSqlite(schema1, schema2, []);
expect(statements.length).toBe(1);
expect(statements[0]).toStrictEqual({
type: 'sqlite_alter_table_add_column',
tableName: 'users',
referenceData: undefined,
column: {
name: 'name',
type: 'text',
primaryKey: false,
notNull: false,
autoincrement: false,
},
});
},
};
run(sqliteSuite);
Domain
Subdomains
Functions
Dependencies
- DialectSuite
- common.ts
- run
- schemaDiffer
- sqlite-core
- vitest
Source
Frequently Asked Questions
What does sqlite.test.ts do?
sqlite.test.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain, SQLDialects subdomain.
What functions are defined in sqlite.test.ts?
sqlite.test.ts defines 1 function(s): sqliteSuite.columns1.
What does sqlite.test.ts depend on?
sqlite.test.ts imports 6 module(s): DialectSuite, common.ts, run, schemaDiffer, sqlite-core, vitest.
Where is sqlite.test.ts in the architecture?
sqlite.test.ts is located at drizzle-kit/tests/test/sqlite.test.ts (domain: DrizzleORM, subdomain: SQLDialects, directory: drizzle-kit/tests/test).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free