From 6fea1a46954f96118e87acead886e3282c081469 Mon Sep 17 00:00:00 2001 From: Vinicius Souza Date: Fri, 9 Aug 2024 11:45:10 +0000 Subject: [PATCH] chore(doc): add sqlc documentation --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 77840a7..8a4d655 100644 --- a/README.md +++ b/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 +```