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

Method AppendTemplate

orm/select.go:51–53  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

49}
50
51func (q *SelectQuery) AppendTemplate(b []byte) ([]byte, error) {
52 return q.AppendQuery(dummyFormatter{}, b)
53}
54
55func (q *SelectQuery) AppendQuery(fmter QueryFormatter, b []byte) (_ []byte, err error) { //nolint:gocyclo
56 b = appendComment(b, q.q.comment)

Callers 1

TestLongSelectFormatterFunction · 0.95

Calls 1

AppendQueryMethod · 0.95

Tested by 1

TestLongSelectFormatterFunction · 0.76