handle() — drizzle-orm Function Reference
Architecture documentation for the handle() function in simulator.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 9d02b782_9987_014a_3a86_ecd8f5bb9fbe["handle()"] 6bbb7d7c_d2c2_8d64_296d_903bf5ece018["V1V2AuthOtpColumnsHandler"] 9d02b782_9987_014a_3a86_ecd8f5bb9fbe -->|defined in| 6bbb7d7c_d2c2_8d64_296d_903bf5ece018 53a3c310_ef0f_cf0d_92a5_1c2d8d317599["handle()"] 9d02b782_9987_014a_3a86_ecd8f5bb9fbe -->|calls| 53a3c310_ef0f_cf0d_92a5_1c2d8d317599 style 9d02b782_9987_014a_3a86_ecd8f5bb9fbe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/simulator.ts lines 120–132
handle(
tableName: string,
added: T[],
removed: T[],
): { tableName: string; created: T[]; deleted: T[]; renamed: { from: T; to: T }[] } {
const phonePrev = removed.filter((it) => it.name === 'phone')[0];
const phoneNew = added.filter((it) => it.name === 'phone1')[0];
const newAdded = added.filter((it) => it.name !== 'phone1');
const newRemoved = removed.filter((it) => it.name !== 'phone');
return { tableName, created: newAdded, deleted: newRemoved, renamed: [{ from: phonePrev, to: phoneNew }] };
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does handle() do?
handle() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/simulator.ts.
Where is handle() defined?
handle() is defined in drizzle-kit/src/simulator.ts at line 120.
What does handle() call?
handle() calls 1 function(s): handle.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free