Usage
Run it as gluon dev-db sql (in the repository, cargo run -p gluon-cli -- dev-db sql).
Console / text
Run the SQL script on stdin (several statements, one implicit transaction) in one database
Usage: gluon dev-db sql [OPTIONS]
Options:
--url <URL> The database; else GLUON_DATABASE_URL
-h, --help Print help
What it reads and writes
It runs the SQL script on stdin, several statements in one implicit transaction, in one database: the one given, else GLUON_DATABASE_URL. It refuses the dev and system databases. Developer tooling for scratch databases; it prints what the statements return.
Before you run it
The script runs as written, with nothing to undo it once the transaction commits.