package
0.0.0-20241212002435-a4aaf8ca5232
Repository: https://github.com/chrislusf/gleam.git
Documentation: pkg.go.dev

# Packages

# Functions

CastValue casts a value based on column type.
CastValues casts values based on columns type.
CheckNotNull checks if row has nil value set to a column with NotNull flag set.
CheckOnce checks if there are duplicated column names in cols.
ColDescFieldNames returns the fields name in result set for desc and show columns.
FindCol finds column in cols by name.
FindCols finds columns in cols by names.
FindOnUpdateCols finds columns which have OnUpdateNow flag.
GetColDefaultValue gets default value of the column.
GetZeroValue gets zero value for given column type.
NewColDesc returns a new ColDesc for a column.
ToColumn converts a *model.ColumnInfo to *Column.

# Variables

ErrColumnStateCantNone returns for column none state.
ErrColumnStateNonPublic returns for column non-public state.
ErrIndexOutBound returns for index column offset out of bound.
ErrIndexStateCantNone returns for index none state.
ErrInvalidRecordKey returns for invalid record key.
ErrRowNotFound returns for row not found.
ErrTableStateCantNone returns for table none state.
ErrUnsupportedOp returns for unsupported operation.
MockTableFromMeta only serves for test.

# Structs

ColDesc describes column information like MySQL desc and show columns do.

# Interfaces

Table is used to retrieve and modify rows in table.

# Type aliases

Column provides meta data describing a table column.