Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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: 2024-06-21T03:28:34.408Z (7 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
[![CI](https://github.com/bongnv/pggo/actions/workflows/ci.yml/badge.svg)](https://github.com/bongnv/pggo/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/bongnv/pggo/branch/main/graph/badge.svg?token=T9vvGtYE1d)](https://codecov.io/gh/bongnv/pggo) [![Go Report Card](https://goreportcard.com/badge/github.com/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