index

package
v0.0.0-...-5be5922 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ForeignKeyOptionConstMax = None

Functions

This section is empty.

Types

type Definition

type Definition string

type ForeignKeyOption

type ForeignKeyOption int
const (
	ForeignKeyDeleteRestrict ForeignKeyOption = iota
	ForeignKeyDeleteCascade
	ForeignKeyDeleteSetNull
	ForeignKeyDeleteSetDefault
	ForeignKeyDeleteNoAction
	ForeignKeyUpdateRestrict
	ForeignKeyUpdateCascade
	ForeignKeyUpdateSetNull
	ForeignKeyUpdateSetDefault
	ForeignKeyUpdateNoAction
	None
)

func (ForeignKeyOption) String

func (i ForeignKeyOption) String() string

type Methods

type Methods interface {
	PrimaryKey(columns ...interface{}) Definition
	Unique(columns ...interface{}) Definition
	Complex(columns ...interface{}) Definition
	ForeignKey(myColumn interface{}, foreignColumn interface{}, options ...ForeignKeyOption) Definition
	Spatial(columns ...interface{}) Definition
	Fulltext(columns ...string) Definition
}

Jump to

Keyboard shortcuts

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