Top 1.6% dependent packages on proxy.golang.org
Top 0.8% dependent repos on proxy.golang.org
Top 7.4% forks on proxy.golang.org
Top 0.3% docker downloads on proxy.golang.org
proxy.golang.org : github.com/keegancsmith/sqlf
Package sqlf generates parameterized SQL statements in Go, sprintf style. A simple example: sqlf.Sprintf does not return a string. It returns *sqlf.Query which has methods for a parameterized SQL query and arguments. You then pass that to db.Query, db.Exec, etc. This is not like using fmt.Sprintf, which could expose you to malformed SQL or SQL injection attacks. sqlf.Query can be passed as an argument to sqlf.Sprintf. It will "flatten" the query string, while preserving the correct variable binding. This allows you to easily compose and build SQL queries. See the below examples to find out more.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/keegancsmith/sqlf
Keywords:
go
, golang
, sprintf-style
, sql
License: MIT
Latest release: almost 2 years ago
First release: over 7 years ago
Namespace: github.com/keegancsmith
Dependent packages: 11
Dependent repositories: 51
Stars: 97 on GitHub
Forks: 7 on GitHub
Docker dependents: 26
Docker downloads: 37,440,238
See more repository details: repos.ecosyste.ms
Last synced: 6 days ago