| 52 | } |
| 53 | |
| 54 | type 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 | |
| 87 | func NewQuery(db DB, model ...interface{}) *Query { |
| 88 | ctx := context.Background() |
nothing calls this directly
no outgoing calls
no test coverage detected