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

Struct Query

orm/query.go:54–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54type Query struct {
55 ctx context.Context
56 db DB
57 stickyErr error
58
59 model Model
60 tableModel TableModel
61 flags queryFlag
62
63 with []withQuery
64 tables []QueryAppender
65 distinctOn []*SafeQueryAppender
66 columns []QueryAppender
67 set []QueryAppender
68 modelValues map[string]*SafeQueryAppender
69 extraValues []*columnValue
70 where []queryWithSepAppender
71 updWhere []queryWithSepAppender
72 group []QueryAppender
73 having []*SafeQueryAppender
74 union []*union
75 joins []QueryAppender
76 joinAppendOn func(app *condAppender)
77 order []QueryAppender
78 limit int
79 offset int
80 selFor *SafeQueryAppender
81
82 onConflict *SafeQueryAppender
83 returning []*SafeQueryAppender
84 comment string
85}
86
87func NewQuery(db DB, model ...interface{}) *Query {
88 ctx := context.Background()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected