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

Function queryString

orm/select_test.go:512–517  ·  view source on GitHub ↗
(model QueryAppender)

Source from the content-addressed store, hash-verified

510}
511
512func queryString(model QueryAppender) string {
513 fmter := NewFormatter().WithModel(model)
514 b, err := model.AppendQuery(fmter, nil)
515 Expect(err).NotTo(HaveOccurred())
516 return string(b)
517}
518
519func TestLongSelectFormatter(t *testing.T) {
520 type Model struct {

Callers 9

dropTableQueryStringFunction · 0.70
insertQueryStringFunction · 0.70
deleteQueryStringFunction · 0.70
update_test.goFile · 0.70
updateQueryStringFunction · 0.70
select_test.goFile · 0.70
selectQueryStringFunction · 0.70
createTableQueryStringFunction · 0.70

Calls 3

NewFormatterFunction · 0.85
WithModelMethod · 0.80
AppendQueryMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…