Expand description
Database connection and migration execution for CLI commands
This module provides database connectivity for running migrations and other database operations from the CLI.
Structs§
- Introspect
Result - Result of database introspection
- Migration
Plan - Planned migration execution details.
- Migration
Result - Result of a migration run
- Push
Plan - Planned SQL changes for
drizzle push - Snapshot
Filters - Optional filters for introspection and push planning.
Functions§
- apply_
push - Apply a previously planned push.
- apply_
snapshot_ filters - Apply the configured filters (tables, schemas, extensions) in-place on a snapshot, removing entities that do not match.
- plan_
migrations - Execute migrations against the database
- plan_
push - Plan a push by introspecting the live database and diffing against the desired snapshot.
- run_
introspection - Introspect a database and write schema/snapshot files.
- run_
migrations - Apply any pending migrations against the database referenced by
credentials. - verify_
migrations - Verify migrations by re-running the planning logic without applying anything, surfacing any inconsistencies between the on-disk migration files and the tracking table.