sqddl
sqddl is a zero-configuration database migration tool. (by bokwoon95)
goqu
SQL builder and query library for golang (by doug-martin)
sqddl | goqu | |
---|---|---|
6 | 23 | |
14 | 2,245 | |
- | - | |
5.4 | 5.6 | |
about 2 months ago | about 2 months ago | |
Go | Go | |
MIT License | MIT License |
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.
sqddl
Posts with mentions or reviews of sqddl.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-25.
-
Advice needed for generating schema-struct diff
My CLI tool sqddl is exactly what you're asking for. Check out https://bokwoon.neocities.org/sqddl#automigrate.
-
Data Version Control?
https://github.com/bokwoon95/sqddl (However you need to install Go)
-
Golang Postgres Schema Builder?
Oh hey, do I have the package for you. My package (https://github.com/bokwoon95/sqddl) converts a slice of ddl.Table structs into working DDL. Check it out:
-
Golang equivalent of C# Entity framework?
Represent tables using structs: https://github.com/bokwoon95/sqddl/blob/main/ddl/testdata/tables.go.
- Generate SQL migrations for Go using table structs
-
A struct mapper, query builder and migration tool for Go.
Finally it comes with a migration tool, sqddl, that supports a code-first workflow where you define table structs in Go and the tool figures out the DDL statements required to reach that destination schema from a source schema. It's basically GORM's automigrate, except instead of passing in table structs one-by-one for reflection it parses all table structs on the level of Go source files so adding a new table is as simple as defining a new table struct in your Go code. You can view a runnable playground example here: https://go.dev/play/p/S0jptJmsn70 (N.B. you might need to hit run a second time if it times out).
goqu
Posts with mentions or reviews of goqu.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-03.
-
newbie here looking for a framework
For SQL, I'd probably go with goqu http://doug-martin.github.io/goqu/
- Open-sourcing SQX, a way to build flexible database models in Go
-
Best sqlc alternative for dynamic queries?
I use goqu (https://github.com/doug-martin/goqu)
-
ORM or no ORM (and which ones)?
SQL Builders (think squirrel or goqu)
-
Golang Postgres Schema Builder?
I've been looking for a package that allows me to build Postgres DDL statements in Golang. I'm currently using Goqu (https://github.com/doug-martin/goqu) for building statements and it works great, however it does not have support for building schemas. Basic things like creating tables, creating indexes. A great one in JavaScript can be found here: (https://knexjs.org/guide/schema-builder.html#essentials) I have been unable to find anything in Go, does anyone know of any packages like this?
-
GET method to get records from SQL database
Then use something like https://github.com/doug-martin/goqu to build the SQL.
-
ORM in Golang?
Try this
- Best SQL builder.
-
ORM vs SQL Builder in Go
We've been using goqu and it's super nice! although there are a ton of other query builders that could better fit your use-case.
-
escaping text in Go
If the statement is too dynamic to use query parameters I'd ideally use a dynamic query builder rather than concatenating strings. Goqu is a lib like that but I haven't yet used it personally https://github.com/doug-martin/goqu
What are some alternatives?
When comparing sqddl and goqu you can also consider the following projects:
sq - sq is a type-safe data mapper and query builder for Go.
Squirrel - Fluent SQL generation for golang
go_sql_benchmarks
pgx - PostgreSQL driver and toolkit for Go
kago - KaGo
sqlc - Generate type-safe code from SQL
ent - An entity framework for Go
chproxy - Open-Source ClickHouse http proxy and load balancer
dolt - Dolt – Git for Data
jet - Type safe SQL builder with code generation and automatic query result data mapping
sqrl - Fluent SQL generation for golang
sqlx - general purpose extensions to golang's database/sql