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 table, schema, and extension filters to a snapshot in place.
- 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.