findColumnTypeAlternations() — drizzle-orm Function Reference
Architecture documentation for the findColumnTypeAlternations() function in singlestorePushUtils.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 6e5697b6_dd34_9e57_e914_c45e2ef49e34["findColumnTypeAlternations()"] 65107a57_7714_63e5_7018_8c2efc0f3b41["singlestorePushUtils.ts"] 6e5697b6_dd34_9e57_e914_c45e2ef49e34 -->|defined in| 65107a57_7714_63e5_7018_8c2efc0f3b41 f32c8b45_d102_ae2f_22ae_08f69039bd00["logSuggestionsAndReturn()"] f32c8b45_d102_ae2f_22ae_08f69039bd00 -->|calls| 6e5697b6_dd34_9e57_e914_c45e2ef49e34 style 6e5697b6_dd34_9e57_e914_c45e2ef49e34 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/cli/commands/singlestorePushUtils.ts lines 109–126
export function findColumnTypeAlternations(
columns1: Record<string, Column>,
columns2: Record<string, Column>,
): string[] {
const changes: string[] = [];
for (const key in columns1) {
if (columns1.hasOwnProperty(key) && columns2.hasOwnProperty(key)) {
const col1 = columns1[key];
const col2 = columns2[key];
if (col1.type !== col2.type) {
changes.push(col2.name);
}
}
}
return changes;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does findColumnTypeAlternations() do?
findColumnTypeAlternations() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/cli/commands/singlestorePushUtils.ts.
Where is findColumnTypeAlternations() defined?
findColumnTypeAlternations() is defined in drizzle-kit/src/cli/commands/singlestorePushUtils.ts at line 109.
What calls findColumnTypeAlternations()?
findColumnTypeAlternations() is called by 1 function(s): logSuggestionsAndReturn.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free