All Projects → tj → Go Pg Escape

tj / Go Pg Escape

Escape sql queries

Programming Languages

go
31211 projects - #10 most used programming language

go-pg-escape

Escape Postgres queries.

View the docs.

Installation

$ go get github.com/tj/go-pg-escape

Example

s := Escape("SELECT %I FROM %I WHERE %I=%L", "some stuff", "some table", "some column", "some value")
exp := `SELECT "some stuff" FROM "some table" WHERE "some column"='some value'`
assert.Equal(t, exp, s)

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].