MCPcopy
hub / github.com/go-gorm/gorm / Statement

Struct Statement

statement.go:22–51  ·  statement.go::Statement

Statement statement

Source from the content-addressed store, hash-verified

20
21// Statement statement
22type Statement struct {
23 *DB
24 TableExpr *clause.Expr
25 Table string
26 Model interface{}
27 Unscoped bool
28 Dest interface{}
29 ReflectValue reflect.Value
30 Clauses map[string]clause.Clause
31 BuildClauses []string
32 Distinct bool
33 Selects []string // selected columns
34 Omits []string // omit columns
35 ColumnMapping map[string]string // map columns
36 Joins []join
37 Preloads map[string][]interface{}
38 Settings sync.Map
39 ConnPool ConnPool
40 Schema *schema.Schema
41 Context context.Context
42 RaiseErrorOnNotFound bool
43 SkipHooks bool
44 SQL strings.Builder
45 Vars []interface{}
46 CurDestIndex int
47 attrs []interface{}
48 assigns []interface{}
49 scopes []func(*DB) *DB
50 Result *result
51}
52
53type join struct {
54 Name string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected