dat
goqu
dat | goqu | |
---|---|---|
2 | 23 | |
609 | 2,245 | |
- | - | |
0.0 | 5.6 | |
over 3 years ago | about 2 months ago | |
Go | Go | |
GNU General Public License v3.0 or later | 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.
dat
-
TypeSQL: 2x Faster SQL Query builder with complete spec support.
If you already know SQL you should be able to pick up the library with minimal effort. Eg. dat
-
Twelve Years of Go
There are ORMs available for Golang, but my experience has been better with packages like sqlx [1] or dat [2]. We've since been using SQLX for pretty much all DBMS related work, and regret nothing. In my experience SQLX gave us the right balance between abstraction and control.
[1] http://jmoiron.github.io/sqlx/
[2] https://github.com/mgutz/dat
goqu
-
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?
noms - The versioned, forkable, syncable database
Squirrel - Fluent SQL generation for golang
xo - Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server
pgx - PostgreSQL driver and toolkit for Go
pgweb - Cross-platform client for PostgreSQL databases
sqlc - Generate type-safe code from SQL
tidb - TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://tidbcloud.com/free-trial
chproxy - Open-Source ClickHouse http proxy and load balancer
rqlite - The lightweight, distributed relational database built on SQLite.
jet - Type safe SQL builder with code generation and automatic query result data mapping
Tile38 - Real-time Geospatial and Geofencing
sqrl - Fluent SQL generation for golang