go-doudou
sqlc
Our great sponsors
go-doudou | sqlc | |
---|---|---|
19 | 169 | |
1,384 | 10,709 | |
5.5% | 4.4% | |
8.2 | 9.7 | |
14 days ago | 8 days ago | |
Go | Go | |
MIT License | MIT License |
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.
go-doudou
- go-doudou released v2.0.1 version
-
go-doudou released v1.3.2 with officially supporting for grpc
Github repo: https://github.com/unionj-cloud/go-doudou Latest release: v1.3.2
-
go-doudou released v1.1.9 version recently
Update documentation to latest version https://go-doudou.github.io
-
Is sqlx still the top choice for auto mapping database query results to a struct?
If you like sqlx, I recommend you to have a look at go-doudou built-in lightweight orm based on sqlx. It can do struct to table and table to struct migration/sync, generate dao layer code to simplify your single table CRUD operations, and it also can print SQL query with parameters substituded along with opentracing compatible trace ID for locating problems, and it will have more features coming such as cache layer... Here is the repo: https://github.com/unionj-cloud/go-doudou
-
Golang future web frameworks!
I recommend go-doudou for you: https://github.com/unionj-cloud/go-doudou Here is online documentation: https://go-doudou.github.io/
-
Seeking open source projects to contribute
Please take a look at https://github.com/unionj-cloud/go-doudou This is a microservice framework written in Go. I opened it a year ago. It's production ready, but there are a lot of featues not implemented yet. I hope community can help me build it together.
-
Go-doudou released v1.0.3: https://github.com/unionj-cloud/go-doudou/releases/tag/v1.0.3
Go-doudou released v1.0.3: https://github.com/unionj-cloud/go-doudou/releases/tag/v1.0.3 Add full support for Alibaba Nacos configuration management and Ctrip Apollo configuration management Documentation: https://go-doudou.github.io/guide/configuration.html
-
go-doudou released v1.0.0 version
Hi gophers, go-doudou released v1.0.0 version today: https://github.com/unionj-cloud/go-doudou/releases/tag/v1.0.0. And I finished online documentation for go-doudou though there is only English version: https://go-doudou.github.io. I also uploaded a real-world word cloud application to github: https://github.com/unionj-cloud/go-doudou-tutorials/tree/master/wordcloud. You can use this project as scaffold to build your microservices.
-
go-doudou series 01: How to develop a monolithic RESTful service with go-doudou
In this tutorial, I will introduce go-doudou microservice framework to you. Go-doudou has built-in service register, discover and fault tolerance features based on gossip protocol, and it uses gorilla/mux as http router, and uses golang interface as IDL(Interface Definition Language). Go-doudou is an IDL compiler and server/client code generator tool at first, then it becomes a microservice framework. Its RESTful version is stable and production ready, while grpc version is in early development.
- go-doudou released v0.9.6 Fix incorrectly leave
sqlc
-
Give Up Sooner
"Is there a way to get sqlc to use pointers for nullable columns instead of the sql.Null types?"
-
Show HN: Sqlbind a Python library to compose raw SQL
I came across this yesterday for golang: https://sqlc.dev which is somewhat like what you want, maybe.
Not sure it allows you to parameterize table names but the basic idea is codegen from sql queries so you are working with go code (autocompletion etc).
- API completa em Golang - Parte 7
-
ORMs are nice but they are the wrong abstraction
Agreed, but tools like https://sqlc.dev, which I mention in the article, are a good trade-off that allows you to have verified, testable, SQL in your code.
- API completa em Golang - Parte 6
-
Go ORMs Compared
sqlc is not strictly a conventional ORM. It offers a unique approach by generating Go code from SQL queries. This allows developers to write SQL, which sqlc then converts into type-safe Go code, reducing the boilerplate significantly. It ensures that your queries are syntactically correct and type-safe. sqlc is ideal for those who prefer writing SQL and are looking for an efficient way to integrate it into a Go application.
-
Type-safe Data Access in Go using Prisma and sqlc
I was browsing awesome-go for ideas on how to setup my data access layer when I stumbled on sqlc. It seemed like a great option. Code generation is a strategy often used in the Go ecosystem and making my queries safe at compile time was an idea I really liked. Knex was great, but it required of me that I test thoroughly my queries at runtime and that I sanitize my query results to ensure type safety within my application.
-
Level UP your RDBMS Productivity in GO
Now, we are going to generate the code. For this purpose, we are going to use sqlc.
-
What 3rd-party libraries do you use often/all the time?
https://github.com/sqlc-dev/sqlc — for use with //go:generate
- API completa em Golang - Parte 1
What are some alternatives?
ringpop-go - Scalable, fault-tolerant application-layer sharding for Go applications
sqlx - general purpose extensions to golang's database/sql
grpc-go - The Go language implementation of gRPC. HTTP/2 based RPC
GORM - The fantastic ORM library for Golang, aims to be developer friendly
torrent - Full-featured BitTorrent client package and utilities
SQLBoiler - Generate a Go ORM tailored to your database schema.
gleam - Fast, efficient, and scalable distributed map/reduce system, DAG execution, in memory or on disk, written in pure Go, runs standalone or distributedly.
ent - An entity framework for Go
raft - Golang implementation of the Raft consensus protocol
jet - Type safe SQL builder with code generation and automatic query result data mapping
gorpc - Simple, fast and scalable golang rpc library for high load
pgx - PostgreSQL driver and toolkit for Go