sqlx
Utility for SQLx, the Rust SQL toolkit. tldr-pages
On several platforms
Several platforms
Create the database specified in the $DATABASE_URL environment variable
sqlx database createIdentifyDrop the specified database
sqlx database drop --database-url database_urlIdentifyCreate a new pair of up and down migration files with the given description in the "migrations" directory
sqlx migrate add -r migration_descriptionIdentifyRun all pending migrations for the specified database
sqlx migrate run --database-url database_urlIdentifyRevert the latest migration for the specified database
sqlx migrate revert --database-url database_urlIdentify