https://github.com/bongnv/pggo
A code generator that allows you to write SQL queries in Go with more confidence.
https://github.com/bongnv/pggo
Last synced: 3 months ago
JSON representation
A code generator that allows you to write SQL queries in Go with more confidence.
- Host: GitHub
- URL: https://github.com/bongnv/pggo
- Owner: bongnv
- License: bsd-2-clause
- Created: 2021-09-11T03:52:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-02T06:29:05.000Z (over 3 years ago)
- Last Synced: 2025-02-01T02:44:56.233Z (4 months ago)
- Language: Go
- Homepage:
- Size: 75.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pggo
[](https://github.com/bongnv/pggo/actions/workflows/ci.yml) [](https://codecov.io/gh/bongnv/pggo) [](https://goreportcard.com/report/github.com/bongnv/pggo)A code generator that allows you to write SQL queries in Go way.
## Development
- We use [pre-commit](https://pre-commit.com/) to format code & identify simple issues before submitting code to review:
```bash
brew install pre-commit
pre-commit install
```- For unit tests, you can just run `go test` or `make test`.
- For integration tests, you'll need to setup docker:
```bash
make setup-docker
make test-integration
```- Run `make help` to see all available commands with `make`.
## References
The project is inspired by:
- https://github.com/Masterminds/squirrel
- https://github.com/huandu/go-sqlbuilder
- https://github.com/lqs/sqlingo
- https://github.com/xo/xo