Documentation
¶
Index ¶
Constants ¶
View Source
const ( FieldTypeId FieldType = "id" FieldTypeString = "string" FieldTypeInt8 = "int8" FieldTypeInt16 = "int16" FieldTypeInt32 = "int32" FieldTypeInt64 = "int64" FieldTypeUInt8 = "uint8" FieldTypeUInt16 = "uint16" FieldTypeUInt32 = "uint32" FieldTypeUInt64 = "uint64" FieldTypeFloat64 = "float64" FieldTypeBool = "bool" FieldTypeEnum = "enum" FieldTypeTimestamp = "timestamp" FieldTypeDatetime = "datetime" FieldTypeBytes = "bytes" FieldTypeText = "text" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type FieldType ¶
type FieldType string
func (FieldType) AutoIncrable ¶
func (FieldType) HasDefault ¶
type Index ¶
type Index struct { IsSparse bool IsUnique bool Fields IndexFields }
type IndexField ¶
type IndexFields ¶
type IndexFields []IndexField
func (IndexFields) FuncArgs ¶
func (this IndexFields) FuncArgs() string
func (IndexFields) FuncTypedArgs ¶
func (this IndexFields) FuncTypedArgs() string
type Object ¶
type Object struct { Package string Name string Engine string DB string Table string Indexes []Index Partition Partition PrimaryKey Fields Fields Fields FieldMap map[string]Field }
func (*Object) ColumnsJoin ¶
func (*Object) TableIdentifier ¶
Click to show internal directories.
Click to hide internal directories.