Module db

Module db 

Source
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§

IntrospectResult
Result of database introspection
MigrationResult
Result of a migration run
PushPlan
Planned SQL changes for drizzle push

Functions§

apply_push
Apply a previously planned push.
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
Execute migrations against the database