chore(doc): add sqlc documentation
This commit is contained in:
parent
04ee1c211d
commit
b6819e8205
1 changed files with 12 additions and 0 deletions
12
README.md
12
README.md
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue