prepareSingleStoreRecreateTable() — drizzle-orm Function Reference
Architecture documentation for the prepareSingleStoreRecreateTable() function in statementCombiner.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 8bb59420_0ac2_e04d_e01a_47343f29242b["prepareSingleStoreRecreateTable()"] 21a395af_9564_2dbd_9ea9_060ad50ee7a0["statementCombiner.ts"] 8bb59420_0ac2_e04d_e01a_47343f29242b -->|defined in| 21a395af_9564_2dbd_9ea9_060ad50ee7a0 b8879ab0_6fb8_f5fc_937a_31ddbde3804f["singleStoreCombineStatements()"] b8879ab0_6fb8_f5fc_937a_31ddbde3804f -->|calls| 8bb59420_0ac2_e04d_e01a_47343f29242b 0848c4a3_d489_0afb_1396_c6648ea30e50["prepareCreateIndexesJson()"] 8bb59420_0ac2_e04d_e01a_47343f29242b -->|calls| 0848c4a3_d489_0afb_1396_c6648ea30e50 style 8bb59420_0ac2_e04d_e01a_47343f29242b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/statementCombiner.ts lines 449–470
export const prepareSingleStoreRecreateTable = (
table: SingleStoreSchemaSquashed['tables'][keyof SingleStoreSchemaSquashed['tables']],
): JsonStatement[] => {
const { name, columns, uniqueConstraints, indexes, compositePrimaryKeys } = table;
const composites: string[] = Object.values(compositePrimaryKeys);
const statements: JsonStatement[] = [
{
type: 'singlestore_recreate_table',
tableName: name,
columns: Object.values(columns),
compositePKs: composites,
uniqueConstraints: Object.values(uniqueConstraints),
},
];
if (Object.keys(indexes).length) {
statements.push(...prepareCreateIndexesJson(name, '', indexes));
}
return statements;
};
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does prepareSingleStoreRecreateTable() do?
prepareSingleStoreRecreateTable() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/statementCombiner.ts.
Where is prepareSingleStoreRecreateTable() defined?
prepareSingleStoreRecreateTable() is defined in drizzle-kit/src/statementCombiner.ts at line 449.
What does prepareSingleStoreRecreateTable() call?
prepareSingleStoreRecreateTable() calls 1 function(s): prepareCreateIndexesJson.
What calls prepareSingleStoreRecreateTable()?
prepareSingleStoreRecreateTable() is called by 1 function(s): singleStoreCombineStatements.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free