Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 641 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 641 Bytes

Development

Database

Running Postgres

Run docker compose up on the included docker-compose.yml file to run a local development build of postgres and adminer.

SQLC

SQLC generates Go code from given sql files.

To add/modify queries, do so in the server/database/queries/ folder. Then run sqlc generate within the database folder.

It'll automatically scan for existing migrations generated by Goose.

Migrations

Install the Goose CLI. If on MacOS, can use brew install goose. Otherwise go install should include it in your GoPath.