From e466440cc40a1d7f13c1ce9ea9c043283cb5ac6e Mon Sep 17 00:00:00 2001 From: ajikamaludin Date: Fri, 15 Jul 2022 14:17:20 +0700 Subject: [PATCH] update readme --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 67fab71..9148cb0 100644 --- a/README.md +++ b/README.md @@ -164,7 +164,13 @@ postgres: password: mysecretpassword ``` - changes `pkg/v1/config/config.go` to add new config line in config struct and and validateConfigData rule -- `go get github.com/lib/pq` +- `go get github.com/lib/pq`, this is a lib for standart go lib `database/sql` to connect postgresql, usage in call +```go +import ( + _ "github.com/lib/pq" +) +// ref : https://github.com/lib/pq +``` - create `pkg/v1/postgres` dir, create `postgres.go` file in there implement string conn and test connection - create `pkg/v1/utils/converter` dir, create `converter.go` file in there, to convert camelcase to snake_case - create `pkg/v1/postgres/custom.main.go` to implement all query to database table custom