Query holds the state for the built up query
| 24 | |
| 25 | // Query holds the state for the built up query |
| 26 | type Query struct { |
| 27 | dialect *drivers.Dialect |
| 28 | rawSQL rawSQL |
| 29 | |
| 30 | load []string |
| 31 | loadMods map[string]Applicator |
| 32 | |
| 33 | delete bool |
| 34 | update map[string]any |
| 35 | withs []argClause |
| 36 | selectCols []string |
| 37 | count bool |
| 38 | from []string |
| 39 | joins []join |
| 40 | where []where |
| 41 | groupBy []string |
| 42 | orderBy []argClause |
| 43 | having []argClause |
| 44 | limit *int |
| 45 | offset int |
| 46 | forlock string |
| 47 | distinct string |
| 48 | comment string |
| 49 | |
| 50 | // This field is a hack to allow a query to strip out the reference |
| 51 | // to deleted at is null. |
| 52 | removeSoftDelete bool |
| 53 | } |
| 54 | |
| 55 | // Applicator exists only to allow |
| 56 | // query mods into the query struct around |
nothing calls this directly
no outgoing calls
no test coverage detected