query

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default(previous string, def string) string

func DropTable

func DropTable(name string) error

func NotNull

func NotNull(previous string) string

func PK

func PK() string

func Table

func Table(name string, rows []Row) error

func Unique

func Unique(previous string) string

Types

type Row

type Row struct {
	Name        string
	Type        string
	Constraints string
}

func Binary

func Binary(name string, length int, constraints string) Row

func Blob

func Blob(name string, constraints string) Row

func Char

func Char(name string, length int, constraints string) Row

func Date

func Date(name string, constraints string) Row

func DateTime

func DateTime(name string, constraints string) Row

func Decimal

func Decimal(name string, digits int, decimals int, constraints string) Row

func Enum

func Enum(name string, values []string, constraints string) Row

func Integer

func Integer(name string, constraints string) Row

func Json

func Json(name string, constraints string) Row

func LongBlob

func LongBlob(name string, constraints string) Row

func LongText

func LongText(name string, constraints string) Row

func MediumBlob

func MediumBlob(name string, constraints string) Row

func MediumText

func MediumText(name string, constraints string) Row

func RowInternal

func RowInternal(name string, typ string, constraints string) Row

func Set

func Set(name string, values []string, constraints string) Row

func SmallInt

func SmallInt(name string, constraints string) Row

func Text

func Text(name string, constraints string) Row

func Time

func Time(name string, constraints string) Row

func Timestamp

func Timestamp(name string, constraints string) Row

func TinyBlob

func TinyBlob(name string, constraints string) Row

func TinyText

func TinyText(name string, constraints string) Row

func VarChar

func VarChar(name string, length int, constraints string) Row

func Year

func Year(name string, constraints string) Row

func (Row) Build

func (r Row) Build() string

merges name type and mods in one string

Jump to

Keyboard shortcuts

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