Documentation ¶
Index ¶
- func CheckType(t string) error
- func SetAddExpr(e Expr)
- func SetCreateExpr(e Expr)
- func SetDropIndexExpr(e Expr)
- func SetIndexExpr(e Expr)
- func SetModifyExpr(e Expr)
- func SetPrimaryExpr(e Expr)
- func SetUniqueExpr(e Expr)
- type Add
- type Builder
- type Constructor
- func GetAddExpr(table string, fields Fields) Constructor
- func GetCreateExpr(table string, fields Fields) Constructor
- func GetDropIndexExpr(table string, IndexName string, fields Fields) Constructor
- func GetIndexExpr(table string, IndexName string, fields Fields) Constructor
- func GetModifyExpr(table string, fields Fields) Constructor
- func GetPriMaryExpr(table string, fields Fields) Constructor
- func GetUniqueExpr(table string, IndexName string, fields Fields) Constructor
- type Create
- type Del
- type DialSpeaker
- type Dialect
- type Dialector
- type Drop
- type DropIndex
- type Expr
- type Field
- type Fields
- type Index
- type Modify
- type Primary
- type StructBuilder
- type Type
- type Unique
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetAddExpr ¶
func SetAddExpr(e Expr)
func SetCreateExpr ¶
func SetCreateExpr(e Expr)
func SetDropIndexExpr ¶
func SetDropIndexExpr(e Expr)
func SetIndexExpr ¶
func SetIndexExpr(e Expr)
func SetModifyExpr ¶
func SetModifyExpr(e Expr)
func SetPrimaryExpr ¶
func SetPrimaryExpr(e Expr)
func SetUniqueExpr ¶
func SetUniqueExpr(e Expr)
Types ¶
type Builder ¶
type Builder interface { StructBuilder }
type Constructor ¶
type Constructor interface { Set(table string, index string, fields ...*Field) Build(builder Builder) GetTable() string GetIndex() string }
func GetAddExpr ¶
func GetAddExpr(table string, fields Fields) Constructor
func GetCreateExpr ¶
func GetCreateExpr(table string, fields Fields) Constructor
func GetDropIndexExpr ¶
func GetDropIndexExpr(table string, IndexName string, fields Fields) Constructor
func GetIndexExpr ¶
func GetIndexExpr(table string, IndexName string, fields Fields) Constructor
func GetModifyExpr ¶
func GetModifyExpr(table string, fields Fields) Constructor
func GetPriMaryExpr ¶
func GetPriMaryExpr(table string, fields Fields) Constructor
func GetUniqueExpr ¶
func GetUniqueExpr(table string, IndexName string, fields Fields) Constructor
type DialSpeaker ¶
type Dialect ¶
type Dialect struct {
// contains filtered or unexported fields
}
func (*Dialect) Transform ¶
func (d *Dialect) Transform(f *Field) DialSpeaker
type Expr ¶
type Expr func() Constructor
type StructBuilder ¶
Click to show internal directories.
Click to hide internal directories.