chore(doc): add sqlc documentation

This commit is contained in:
Vinicius Souza 2024-08-09 11:45:10 +00:00
parent 04ee1c211d
commit b6819e8205

View file

@ -27,3 +27,15 @@ $ tern new --migrations ./internal/store/pgstore/migrations create_messages_tabl
`tern.config` does not read `.env` file directly so a wrapper was created to be
able to load environment variables.
### Installing sqlc
```bash
$ go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
```
### Generate sql types
```bash
$ sqlc generate -f ./internal/store/pgstore/sqlc.yaml
```