MCPcopy Create free account
hub / github.com/go-pg/pg / SafeQuery

Function SafeQuery

orm/format.go:35–37  ·  view source on GitHub ↗

nolint

(query string, params ...interface{})

Source from the content-addressed store, hash-verified

33
34//nolint
35func SafeQuery(query string, params ...interface{}) *SafeQueryAppender {
36 return &SafeQueryAppender{query, params}
37}
38
39func (q *SafeQueryAppender) AppendQuery(fmter QueryFormatter, b []byte) ([]byte, error) {
40 return fmter.FormatQuery(b, q.query, q.params...), nil

Callers 15

SafeQueryFunction · 0.92
format_test.goFile · 0.92
TableExprMethod · 0.70
DistinctOnMethod · 0.70
ColumnExprMethod · 0.70
SetMethod · 0.70
ValueMethod · 0.70
JoinMethod · 0.70
GroupExprMethod · 0.70
HavingMethod · 0.70
OrderExprMethod · 0.70
OnConflictMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…