{"repo":"ido50/sqlz","free":true,"listed":false,"github":"https://github.com/ido50/sqlz","clone":"git clone https://github.com/ido50/sqlz.git","description":"SQL Query Builder for Go","language":"Go","stars":68,"topics":["golang","go","sql","sqlx","query-builder","database"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"sqlz Flexible SQL query builder for Go --- sqlz (pronounced \"sequelize\") is an un-opinionated, un-obtrusive SQL query builder for Go projects, based on 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. Install Usage Once installed, you can import sqlz into your Go packages. To build and execute queries with sqlz, you need to pass","default_branch":null,"files":null,"tree":[],"storefront":"/r/ido50","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ido50/sqlz/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}