prepareRenameIndPolicyJsons() — drizzle-orm Function Reference
Architecture documentation for the prepareRenameIndPolicyJsons() function in jsonStatements.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD ab75b684_927e_6682_f49d_370dafae2bfa["prepareRenameIndPolicyJsons()"] 6139f734_8ada_c641_9fec_9a55cfdf376f["jsonStatements.ts"] ab75b684_927e_6682_f49d_370dafae2bfa -->|defined in| 6139f734_8ada_c641_9fec_9a55cfdf376f c7a398db_43c9_7771_09b7_73bc09e703e8["applyPgSnapshotsDiff()"] c7a398db_43c9_7771_09b7_73bc09e703e8 -->|calls| ab75b684_927e_6682_f49d_370dafae2bfa style ab75b684_927e_6682_f49d_370dafae2bfa fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/jsonStatements.ts lines 2782–2796
export const prepareRenameIndPolicyJsons = (
renames: {
from: Policy;
to: Policy;
}[],
): JsonIndRenamePolicyStatement[] => {
return renames.map((it) => {
return {
type: 'rename_ind_policy',
tableKey: it.from.on!,
oldName: it.from.name,
newName: it.to.name,
};
});
};
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does prepareRenameIndPolicyJsons() do?
prepareRenameIndPolicyJsons() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/jsonStatements.ts.
Where is prepareRenameIndPolicyJsons() defined?
prepareRenameIndPolicyJsons() is defined in drizzle-kit/src/jsonStatements.ts at line 2782.
What calls prepareRenameIndPolicyJsons()?
prepareRenameIndPolicyJsons() 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