MCPcopy
hub / github.com/drizzle-team/drizzle-orm / DryRun

Class DryRun

drizzle-kit/src/simulator.ts:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28class DryRun<T extends Named> implements TablesHandler<T> {
29 can(added: T[], removed: T[]): boolean {
30 return added.length === 0 && removed.length === 0;
31 }
32 handle(added: T[], _: T[]): { created: T[]; deleted: T[]; renamed: { from: T; to: T }[] } {
33 return { created: added, deleted: [], renamed: [] };
34 }
35}
36
37// class Fallback implements Handler {
38// can(_: Table[], __: Table[]): boolean {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected