chore(doc): add sqlc documentation

This commit is contained in:
Vinicius Souza 2024-08-09 11:45:10 +00:00
parent cc6ac32324
commit 6fea1a4695

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
```