generateSQLiteMigration() — drizzle-orm Function Reference
Architecture documentation for the generateSQLiteMigration() function in api.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 5e95b18e_139e_8c27_e72d_c0cfdaf7f698["generateSQLiteMigration()"] e668bfef_9125_1ef0_2f94_a0f9605584bd["api.ts"] 5e95b18e_139e_8c27_e72d_c0cfdaf7f698 -->|defined in| e668bfef_9125_1ef0_2f94_a0f9605584bd dec1e114_a97f_91d6_7d9a_a12a7c1789b4["squashSqliteScheme()"] 5e95b18e_139e_8c27_e72d_c0cfdaf7f698 -->|calls| dec1e114_a97f_91d6_7d9a_a12a7c1789b4 style 5e95b18e_139e_8c27_e72d_c0cfdaf7f698 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/api.ts lines 245–268
export const generateSQLiteMigration = async (
prev: DrizzleSQLiteSnapshotJSON,
cur: DrizzleSQLiteSnapshotJSON,
) => {
const { applySqliteSnapshotsDiff } = await import('./snapshotsDiffer');
const validatedPrev = sqliteSchema.parse(prev);
const validatedCur = sqliteSchema.parse(cur);
const squashedPrev = squashSqliteScheme(validatedPrev);
const squashedCur = squashSqliteScheme(validatedCur);
const { sqlStatements } = await applySqliteSnapshotsDiff(
squashedPrev,
squashedCur,
tablesResolver,
columnsResolver,
sqliteViewsResolver,
validatedPrev,
validatedCur,
);
return sqlStatements;
};
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does generateSQLiteMigration() do?
generateSQLiteMigration() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/api.ts.
Where is generateSQLiteMigration() defined?
generateSQLiteMigration() is defined in drizzle-kit/src/api.ts at line 245.
What does generateSQLiteMigration() call?
generateSQLiteMigration() calls 1 function(s): squashSqliteScheme.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free