Documentation ¶
Index ¶
Constants ¶
View Source
const ( NOTNULL = iota + 100 UNIQUE PK FK CHECK AI )
Constance define the constrains.
View Source
const ( SetNull = iota + 2000 Cascade Restrict NoAction SetDefault )
Constants used to mange the referential integrity between the child and parent tables by using the ON DELETE and ON UPDATE clauses
View Source
const ( VARCHAR = iota + 1000 TIMESTAMP BIT BOOLEAN CHAR DATE DATETIME DECIMAL ENUM INT JSON TIME )
Variables ¶
This section is empty.
Functions ¶
func GetConstrain ¶
Get helper function used to get the constance value.
func GetReferenceOpt ¶
Types ¶
type Constrain ¶
type Constrain struct {
Cons []int
}
func NewConstrain ¶
func NewConstrain(cons interface{}) *Constrain
type DataType ¶
type DataType struct {
// contains filtered or unexported fields
}
func NewDataType ¶
type FieldService ¶
type FieldService interface { GetKey() string GetValue() interface{} }
func NewField ¶
func NewField(key string, value interface{}) FieldService
type Row ¶
type Row []FieldService
type RowService ¶
type RowsService ¶
Click to show internal directories.
Click to hide internal directories.