refrakt_cli/migrate_cmd

refrakt migrate — generate and run a migration script.

Creates a src/<app>/migrate.gleam module that connects to the database and runs pending migrations, then executes it.

Values

pub fn migrate_module_postgres(app: String) -> String

The generated src/<app>/migrate.gleam for a Postgres app.

pub fn migrate_module_sqlite(app: String) -> String

The generated src/<app>/migrate.gleam for a SQLite app.

pub fn run() -> Nil
✨ Search Document