package
0.7.1
Repository: https://github.com/ttab/mage.git
Documentation: pkg.go.dev

# Functions

ConnString prints the connection string for use with psql like so: psql $(mage sql:connstring).
DB calls DBWithName using the current directory name as the database name.
DBWithName creates a database and login role with the same name and the password 'pass'.
DumpSchema writes the current database schema to "./postgres/schema.sql".
Generate uses sqlc to compile the SQL queries in postgres/queries.sql to Go, adding he default sqlc.yaml file if necessary.
Migrate the database to the latest version using the migrations in "./schema".
No description provided by the author
Postgres creates a local Postgres instance using docker.
Rollback to the specific schema version.
SqlcCommand returns a command function that runs sqlc in docker with the current working directory mounted.
SqlcConfig adds the default sqlc config.
SqlcCommand returns a command function that runs tern in docker with host networking and the current working directory mounted.