Source File
association.go
Belonging Package
gorm.io/gorm/clause
package clause// AssociationOpType represents association operation typestype AssociationOpType intconst (OpUnlink AssociationOpType = iota // Unlink associationOpDelete // Delete association recordsOpUpdate // Update association recordsOpCreate // Create association records with assignments)// Association represents an association operationtype Association struct {Association string // Association nameType AssociationOpType // Operation typeConditions []Expression // Filter conditionsSet []Assignment // Assignment operations (for Update and Create)Values []interface{} // Values for Create operation}// AssociationAssigner is an interface for association operation providerstype AssociationAssigner interface {AssociationAssignments() []Association}// Assignments implements the Assigner interface so that AssociationOperation can be used as a Set method parameterfunc ( Association) () []Assignment {return []Assignment{}}// AssociationAssignments implements the AssociationAssigner interfacefunc ( Association) () []Association {return []Association{}}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |