tablesResolver() — drizzle-orm Function Reference
Architecture documentation for the tablesResolver() function in migrate.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 2381bda1_f151_c72c_7494_6acc619c954d["tablesResolver()"] b14d3855_8cce_38c9_8952_a9d014c2fb1b["migrate.ts"] 2381bda1_f151_c72c_7494_6acc619c954d -->|defined in| b14d3855_8cce_38c9_8952_a9d014c2fb1b c7a398db_43c9_7771_09b7_73bc09e703e8["applyPgSnapshotsDiff()"] c7a398db_43c9_7771_09b7_73bc09e703e8 -->|calls| 2381bda1_f151_c72c_7494_6acc619c954d a5972ffc_ff1b_9523_2495_5373af710e65["applyMysqlSnapshotsDiff()"] a5972ffc_ff1b_9523_2495_5373af710e65 -->|calls| 2381bda1_f151_c72c_7494_6acc619c954d d4992b27_bf78_8099_5134_750cef1c518c["applySingleStoreSnapshotsDiff()"] d4992b27_bf78_8099_5134_750cef1c518c -->|calls| 2381bda1_f151_c72c_7494_6acc619c954d d9097b7e_1e27_d29f_7732_f2fa1447f2b8["applySqliteSnapshotsDiff()"] d9097b7e_1e27_d29f_7732_f2fa1447f2b8 -->|calls| 2381bda1_f151_c72c_7494_6acc619c954d 55569cde_7638_9cfc_9dcd_34636d975ec3["applyLibSQLSnapshotsDiff()"] 55569cde_7638_9cfc_9dcd_34636d975ec3 -->|calls| 2381bda1_f151_c72c_7494_6acc619c954d c2f882e3_49a6_7f53_0523_ac2e67b07d8f["promptNamedWithSchemasConflict()"] 2381bda1_f151_c72c_7494_6acc619c954d -->|calls| c2f882e3_49a6_7f53_0523_ac2e67b07d8f b0ef3d06_896b_eefc_c410_dfb419673d70["error()"] 2381bda1_f151_c72c_7494_6acc619c954d -->|calls| b0ef3d06_896b_eefc_c410_dfb419673d70 style 2381bda1_f151_c72c_7494_6acc619c954d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/cli/commands/migrate.ts lines 84–104
export const tablesResolver = async (
input: ResolverInput<Table>,
): Promise<ResolverOutputWithMoved<Table>> => {
try {
const { created, deleted, moved, renamed } = await promptNamedWithSchemasConflict(
input.created,
input.deleted,
'table',
);
return {
created: created,
deleted: deleted,
moved: moved,
renamed: renamed,
};
} catch (e) {
console.error(e);
throw e;
}
};
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does tablesResolver() do?
tablesResolver() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/cli/commands/migrate.ts.
Where is tablesResolver() defined?
tablesResolver() is defined in drizzle-kit/src/cli/commands/migrate.ts at line 84.
What does tablesResolver() call?
tablesResolver() calls 2 function(s): error, promptNamedWithSchemasConflict.
What calls tablesResolver()?
tablesResolver() is called by 5 function(s): applyLibSQLSnapshotsDiff, applyMysqlSnapshotsDiff, applyPgSnapshotsDiff, applySingleStoreSnapshotsDiff, applySqliteSnapshotsDiff.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free