Documentation ¶
Index ¶
Constants ¶
View Source
const PrimaryKeyName = "PRIMARY"
PrimaryKeyName defines primary key name.
Variables ¶
This section is empty.
Functions ¶
func CastValues ¶
CastValues casts values based on columns type.
func CheckNotNull ¶
CheckNotNull checks if row has nil value set to a column with NotNull flag set.
func ColDescFieldNames ¶
ColDescFieldNames returns the fields name in result set for desc and show columns.
Types ¶
type Col ¶
type Col struct {
model.ColumnInfo
}
Col provides meta data describing a table column.
func FindOnUpdateCols ¶
FindOnUpdateCols finds columns have OnUpdateNow flag.
func (*Col) CheckNotNull ¶
CheckNotNull checks if nil value set to a column with NotNull flag is set.
type ColDesc ¶
type ColDesc struct { Field string Type string Collation string Null string Key string DefaultValue interface{} Extra string Privileges string Comment string }
ColDesc describes column information like MySQL desc and show columns do.
type IndexedCol ¶
IndexedCol defines an index with info.
func (*IndexedCol) FetchValues ¶
func (idx *IndexedCol) FetchValues(r []interface{}) ([]interface{}, error)
FetchValues fetches indexed values from a row.
Click to show internal directories.
Click to hide internal directories.