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