Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RelationTypeNames = []string{ OneToOne: "one to one", OneToMany: "one to many", ManyToMany: "many to many", }
Functions ¶
This section is empty.
Types ¶
type RelationType ¶
type RelationType int
const ( // Every one country can have only one capital and // every one capital can only have one country OneToOne RelationType = iota // Every user has many addresses but // each one of those addresses can only have one user OneToMany // Many orders can have many products and // any product can belong to any order ManyToMany )
func FromString ¶
func FromString(rts string) RelationType
func (RelationType) String ¶
func (rt RelationType) String() string
Click to show internal directories.
Click to hide internal directories.