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

Struct Association

association.go:14–19  ·  view source on GitHub ↗

Association Mode contains some helper methods to handle relationship things easily.

Source from the content-addressed store, hash-verified

12
13// Association Mode contains some helper methods to handle relationship things easily.
14type Association struct {
15 DB *DB
16 Relationship *schema.Relationship
17 Unscope bool
18 Error error
19}
20
21func (db *DB) Association(column string) *Association {
22 association := &Association{DB: db, Unscope: db.Statement.Unscoped}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected