jmoiron/sqlx
general purpose extensions to golang's database/sql
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
No releases in the last 90 days; the most recent was 926 days ago, with 76 contributors on GitHub.
Use Cases & Benefits
- Provides extensions to Go's database/sql for easier and more powerful database interactions.
- Enhances database/sql with struct marshalling, named parameters, and convenient query methods without breaking existing interfaces.
- Use for simplifying data mapping from SQL rows to Go structs and slices in Go applications.
- Use for executing named parameter queries and batch inserts with structs or maps for cleaner and safer SQL code.
- Use for integrating advanced SQL features into existing Go codebases while maintaining compatibility with database/sql.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
MIT
Permissive: commercial use, modification and redistribution are allowed with attribution.
Community files
- README: present
Watch-outs
- Warning: No commits in over a year (last push Aug 2024).
General guidance from repository metadata, not legal advice. How we score
From the README
sqlx is a library which provides a set of extensions on go's standard
database/sqllibrary. The sqlx versions ofsql.DB,sql.TX,sql.Stmt, et al. all leave the underlying interfaces untouched, so that their interfaces are a superset on the standard ones. This makes it relatively painless to integrate existing codebases using database/sql with sqlx.In addition to the godoc API documentation, there is also some user documentation that explains how to use
database/sqlalong with sqlx.DB.Connx returns an
sqlx.Conn, which is ansql.Conn-alike consistent with sqlx's wrapping of other types.
BindDriverallows users to control the bindvars that sqlx will use for drivers, and add new drivers at runtime. This results in a very slight performance hit when resolving the driver into a bind type (~40ns per call), but it allows users to specify what bindtype their driver uses even when sqlx has not been updated to know about it by default.Compatibility with the most recent two versions of Go is a requirement for any new changes. Compatibility beyond that is not guaranteed.
Versioning is done with Go modules. Breaking changes (eg. removing deprecated API) will get major version number bumps.
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
Forks
1.1K+2
Open issues
397-2
Compared with peers in Database
Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| thedotmack/claude-mem | 113.6K | +8.8K | 35 | today |
| t8y2/dbx | 29.1K | +1.0K | 40 | today |
| gitroomhq/postiz-app | 41.0K | +865 | 64 | 12 days ago |
| supabase/supabase | 114.6K | +268 | 60 | 90 days ago |
| juicedata/juicefs | 14.7K | +105 | 64 | 14 days ago |
| jmoiron/sqlx | 17.7K | — | 35 | 926 days ago |
| Category median | 41.0K | +865 | 60 | — |
Discover Repositories
Search across tracked repositories by name or description