policyResolver() — drizzle-orm Function Reference
Architecture documentation for the policyResolver() function in migrate.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD e30b893b_f65f_b356_a9de_630281e9c4d9["policyResolver()"] b14d3855_8cce_38c9_8952_a9d014c2fb1b["migrate.ts"] e30b893b_f65f_b356_a9de_630281e9c4d9 -->|defined in| b14d3855_8cce_38c9_8952_a9d014c2fb1b c7a398db_43c9_7771_09b7_73bc09e703e8["applyPgSnapshotsDiff()"] c7a398db_43c9_7771_09b7_73bc09e703e8 -->|calls| e30b893b_f65f_b356_a9de_630281e9c4d9 92852bb1_43bb_8fbe_8998_29fab18c9f74["promptColumnsConflicts()"] e30b893b_f65f_b356_a9de_630281e9c4d9 -->|calls| 92852bb1_43bb_8fbe_8998_29fab18c9f74 style e30b893b_f65f_b356_a9de_630281e9c4d9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/cli/commands/migrate.ts lines 231–246
export const policyResolver = async (
input: TablePolicyResolverInput<Policy>,
): Promise<TablePolicyResolverOutput<Policy>> => {
const result = await promptColumnsConflicts(
input.tableName,
input.created,
input.deleted,
);
return {
tableName: input.tableName,
schema: input.schema,
created: result.created,
deleted: result.deleted,
renamed: result.renamed,
};
};
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does policyResolver() do?
policyResolver() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/cli/commands/migrate.ts.
Where is policyResolver() defined?
policyResolver() is defined in drizzle-kit/src/cli/commands/migrate.ts at line 231.
What does policyResolver() call?
policyResolver() calls 1 function(s): promptColumnsConflicts.
What calls policyResolver()?
policyResolver() is called by 1 function(s): applyPgSnapshotsDiff.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free