Source File
relation.go
Belonging Package
github.com/uptrace/bun/schema
package schemaimport ()const (InvalidRelation = iotaHasOneRelationBelongsToRelationHasManyRelationManyToManyRelation)type Relation struct {Type intField *FieldJoinTable *TableBaseFields []*FieldJoinFields []*FieldPolymorphicField *FieldPolymorphicValue stringM2MTable *TableM2MBaseFields []*FieldM2MJoinFields []*Field}func ( *Relation) () string {return fmt.Sprintf("relation=%s", .Field.GoName)}
![]() |
The pages are generated with Golds v0.3.6. (GOOS=darwin 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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |