Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/martishin/golang-postgresql-sql-builder-example
PostgreSQL, SQL query builder and migrations usage example in Go
https://github.com/martishin/golang-postgresql-sql-builder-example
docker-compose dockerfile go go-jet golang golang-examples golang-migrate postgresql
Last synced: about 9 hours ago
JSON representation
PostgreSQL, SQL query builder and migrations usage example in Go
- Host: GitHub
- URL: https://github.com/martishin/golang-postgresql-sql-builder-example
- Owner: martishin
- Created: 2023-12-04T02:48:09.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-27T02:00:11.000Z (about 1 year ago)
- Last Synced: 2024-11-19T05:06:06.631Z (2 months ago)
- Topics: docker-compose, dockerfile, go, go-jet, golang, golang-examples, golang-migrate, postgresql
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go PostgreSQL SQL Builder example
PostgreSQL, SQL query builder and migrations usage example in Go## Running Locally
* Run Postgres locally using Docker Compose: `make run-postgres`
* Install golang-migrate: `brew install golang-migrate`
* Apply migrations: `make migrate`
* Generate SQL Builder and Data Model types: `make jet-gen`
* Run the application: `go run main. go`
* Alternatively, run the app and PostgreSQL using Docker Compose: `make build && make run`## Technologies Used
* [Go](https://go.dev/)
* [lib/pq](https://github.com/lib/pq)
* [go-jet](https://github.com/go-jet/jet/)
* [golang-migrate](https://github.com/golang-migrate/migrate)
* [PostgreSQL](https://www.postgresql.org/)
* [Docker](https://www.docker.com/)