CmdID

CmdID / Commands

sqlx

Utility for SQLx, the Rust SQL toolkit. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Create the database specified in the $DATABASE_URL environment variable

sqlx database createIdentify

Drop the specified database

sqlx database drop --database-url database_urlIdentify

Create a new pair of up and down migration files with the given description in the "migrations" directory

sqlx migrate add -r migration_descriptionIdentify

Run all pending migrations for the specified database

sqlx migrate run --database-url database_urlIdentify

Revert the latest migration for the specified database

sqlx migrate revert --database-url database_urlIdentify