DryRun Class — drizzle-orm Architecture
Architecture documentation for the DryRun class in simulator.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 72087ecd_4eb8_8b61_7b77_75eb11784fc1["DryRun"] 76541fe4_0f6b_65f6_219e_1aaf98848155["simulator.ts"] 72087ecd_4eb8_8b61_7b77_75eb11784fc1 -->|defined in| 76541fe4_0f6b_65f6_219e_1aaf98848155 02e4577d_5728_1da5_23bb_7db2f90bb7e0["can()"] 72087ecd_4eb8_8b61_7b77_75eb11784fc1 -->|method| 02e4577d_5728_1da5_23bb_7db2f90bb7e0 7b73b648_1063_0a89_b736_8c1949145c30["handle()"] 72087ecd_4eb8_8b61_7b77_75eb11784fc1 -->|method| 7b73b648_1063_0a89_b736_8c1949145c30
Relationship Graph
Source Code
drizzle-kit/src/simulator.ts lines 28–35
class DryRun<T extends Named> implements TablesHandler<T> {
can(added: T[], removed: T[]): boolean {
return added.length === 0 && removed.length === 0;
}
handle(added: T[], _: T[]): { created: T[]; deleted: T[]; renamed: { from: T; to: T }[] } {
return { created: added, deleted: [], renamed: [] };
}
}
Defined In
Source
Frequently Asked Questions
What is the DryRun class?
DryRun is a class in the drizzle-orm codebase, defined in drizzle-kit/src/simulator.ts.
Where is DryRun defined?
DryRun is defined in drizzle-kit/src/simulator.ts at line 28.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free