- Run
make init
- Edit
sqlc.yaml
to configure schema, queries, and destination folder/package - Run
make generate
- Run
docker-compose up -d
- Open adminer at
localhost:8081
- Login with credentials:
- username:
postgres
- password:
secret
- pgsql:
db:5432
- database:
postgres
- username:
- Click 'SQL Command'
- Paste code from
schema.sql
and execute
- Run
go run main.go
- See new user in console
- See new user in adminer