An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/ido50/sqlz

Package sqlz (pronounced "sequelize") is an un-opinionated, un-obtrusive SQL query builder for Go projects, based on github.com/jmoiron/sqlx. As opposed to other query builders, sqlz does not mean to bridge the gap between different SQL servers and implementations by providing a unified interface. Instead, it aims to support an extended SQL syntax that may be implementation-specific. For example, if you wish to use PostgreSQL-specific features such as JSON operators and upsert statements, sqlz means to support these without caring if the underlying database backend really is PostgreSQL. In other words, sqlz builds whatever queries you want it to build. sqlz is easy to integrate into existing code, as it does not require you to create your database connections through the sqlz API; in fact, it doesn't supply one. You can either use your existing `*sql.DB` connection or an `*sqlx.DB` connection, so you can start writing new queries with sqlz without having to modify any existing code. sqlz leverages sqlx for easy loading of query results. Please make sure you are familiar with how sqlx works in order to understand how row scanning is performed. You may need to add `db` struct tags to your Go structures. sqlz provides a comfortable API for running queries in a transaction, and will automatically commit or rollback the transaction as necessary.

Ecosystem
proxy.golang.org
Latest Release
v1.3.0
about 1 year ago
Versions
7
Dependent Packages
5
Dependent Repos
10
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/ido50/sqlz
spec
License Apache-2.0
Namespace github.com/ido50
First Release over 5 years ago
Last Synced 7 days ago
Repository
Stars 51 on GitHub
Forks 26 on GitHub
Docker Dependents 5
Docker Downloads 669,679
Rankings on proxy.golang.org
Overall Top 3.0%
Dependent packages Top 2.5%
Dependent repos Top 1.7%
Forks Top 4.5%
Docker downloads Top 0.6%