dat
go-sql-builder-benchmarks
dat | go-sql-builder-benchmarks | |
---|---|---|
2 | 2 | |
609 | 4 | |
- | - | |
0.0 | 2.9 | |
over 3 years ago | 9 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
go-sql-builder-benchmarks
-
Do you use generics?
However, from my benchmarks, Bob is generally faster at query building than comparable packages see benchmarks. For the ORM portions, I'm still working on the benchmarks, but it seemed quite good in my initial tests.
-
TypeSQL: 2x Faster SQL Query builder with complete spec support.
Curiously, I decided to benchmark the performance against the currently popular and maintained query builders and it turned out to be generally 2x as fast. See Benchmarks.
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
sqlx - general purpose extensions to golang's database/sql
pgweb - Cross-platform client for PostgreSQL databases
sage - Trie data structure for storing and retrieving HTTP route values. Used for building Go HTTP router packages.
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
typesql - SQL Query Builder for Go
rqlite - The lightweight, distributed relational database built on SQLite.
btree - AVL balanced generic binary trees in Go
Tile38 - Real-time Geospatial and Geofencing
goqu - SQL builder and query library for golang