_prepareAddColumns() — drizzle-orm Function Reference
Architecture documentation for the _prepareAddColumns() function in jsonStatements.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 47e947b4_4a36_1abe_6fb2_ad7824838b64["_prepareAddColumns()"] 6139f734_8ada_c641_9fec_9a55cfdf376f["jsonStatements.ts"] 47e947b4_4a36_1abe_6fb2_ad7824838b64 -->|defined in| 6139f734_8ada_c641_9fec_9a55cfdf376f c7a398db_43c9_7771_09b7_73bc09e703e8["applyPgSnapshotsDiff()"] c7a398db_43c9_7771_09b7_73bc09e703e8 -->|calls| 47e947b4_4a36_1abe_6fb2_ad7824838b64 a5972ffc_ff1b_9523_2495_5373af710e65["applyMysqlSnapshotsDiff()"] a5972ffc_ff1b_9523_2495_5373af710e65 -->|calls| 47e947b4_4a36_1abe_6fb2_ad7824838b64 d4992b27_bf78_8099_5134_750cef1c518c["applySingleStoreSnapshotsDiff()"] d4992b27_bf78_8099_5134_750cef1c518c -->|calls| 47e947b4_4a36_1abe_6fb2_ad7824838b64 style 47e947b4_4a36_1abe_6fb2_ad7824838b64 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/jsonStatements.ts lines 1317–1330
export const _prepareAddColumns = (
tableName: string,
schema: string,
columns: Column[],
): JsonAddColumnStatement[] => {
return columns.map((it) => {
return {
type: 'alter_table_add_column',
tableName: tableName,
column: it,
schema,
};
});
};
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does _prepareAddColumns() do?
_prepareAddColumns() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/jsonStatements.ts.
Where is _prepareAddColumns() defined?
_prepareAddColumns() is defined in drizzle-kit/src/jsonStatements.ts at line 1317.
What calls _prepareAddColumns()?
_prepareAddColumns() is called by 3 function(s): applyMysqlSnapshotsDiff, applyPgSnapshotsDiff, applySingleStoreSnapshotsDiff.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free