As with the default PostgreSQL CLI, Squee connects to the database described by the environment variables PGHOST
PGDATABASE
PGPASSWORD
etc.
squee repl
will start Squee REPL.
squee check FILENAME
will typecheck the Squee file against the database.
squee generate GENERATOR FILENAME
will generate code from all export
declarations in FILENAME
.
Currently available generators include:
Generates standard SQL PREPARE
statements.
Generates Haskell for querying the database via the postgresql-simple
library.