pgxtutorial
Example of how to build a web service using Go, PostgreSQL, and gRPC (by henvic)
go-mockgen-tool
Go/Golang mock generation for interfaces via code generation (by jamesrr39)
pgxtutorial | go-mockgen-tool | |
---|---|---|
3 | 1 | |
115 | 0 | |
- | - | |
6.8 | 0.0 | |
5 months ago | about 2 years ago | |
Go | Go | |
MIT License | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pgxtutorial
Posts with mentions or reviews of pgxtutorial.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-01-19.
-
Back to basics: Writing an application using Go and PostgreSQL with pgx
# Clone my repository with any of the following commands: $ gh repo clone henvic/pgxtutorial $ git clone https://github.com/henvic/pgxtutorial.git $ git clone [email protected]:henvic/pgxtutorial.git # then: $ cd pgxtutorial # Create a database $ psql -c "CREATE DATABASE pgxtutorial;" # Set the environment variable PGDATABASE $ export PGDATABASE=pgxtutorial # Run migrations $ tern migrate -m ./migrations # Run all tests passing INTEGRATION_TESTDB explicitly $ INTEGRATION_TESTDB=true go test -v ./... # Execute application $ go run ./cmd/pgxtutorial 2021/11/22 07:21:21 HTTP server listening at localhost:8080 2021/11/22 07:21:21 gRPC server listening at 127.0.0.1:8082
-
Back to basics: Writing an application using Go and PostgreSQL
oh, I also have defined database.PGX (https://github.com/henvic/pgxtutorial/blob/main/internal/dat...), which is a little more scarier. I'll get back about that too, but this one is perhaps even more useless, and there might be a better way to solve the issue I want to try to avoid with it.
go-mockgen-tool
Posts with mentions or reviews of go-mockgen-tool.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-11-22.
-
Back to basics: Writing an application using Go and PostgreSQL
For testing I wrote https://github.com/jamesrr39/go-mockgen-tool to generate mock implementations of a given interface. It's a different approach from the normal reflect and interface{}... heavy libraries. Might be interesting!
What are some alternatives?
When comparing pgxtutorial and go-mockgen-tool you can also consider the following projects:
pq - Pure Go Postgres driver for database/sql
sqlc - Generate type-safe code from SQL
litestream - Streaming replication for SQLite.
dockertest - Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.
impl - impl generates method stubs for implementing an interface.
whatgotdone - A tool for sharing weekly task updates with teammates.
sqlx - 🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.
ApacheKafka - A curated re-sources list for awesome Apache Kafka
pgx - PostgreSQL driver and toolkit for Go