relationtype

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2020 License: Unlicense Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL