Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildLockKey ¶
func BuildLockKey(lockKeyRecords *TableRecords) string
Types ¶
type ColumnMeta ¶
type ColumnMeta struct { TableCat string TableSchemeName string TableName string ColumnName string DataType int32 DataTypeName string ColumnSize int64 DecimalDigits int64 NumPrecRadix int64 Nullable int32 Remarks string ColumnDef string SqlDataType int32 SqlDatetimeSub int32 CharOctetLength int64 OrdinalPosition int64 IsNullable string IsAutoIncrement string }
type Row ¶
type Row struct {
Fields []*Field
}
func (*Row) NonPrimaryKeys ¶
func (*Row) PrimaryKeys ¶
type TableMeta ¶
type TableMeta struct { SchemaName string TableName string Columns []string AllColumns map[string]ColumnMeta AllIndexes map[string]IndexMeta }
func (TableMeta) GetPrimaryKeyMap ¶
func (meta TableMeta) GetPrimaryKeyMap() map[string]ColumnMeta
func (TableMeta) GetPrimaryKeyOnlyName ¶
type TableRecords ¶
func BuildBinaryRecords ¶ added in v0.1.1
func BuildBinaryRecords(meta TableMeta, result *mysql.Result) *TableRecords
func BuildTextRecords ¶ added in v0.1.1
func BuildTextRecords(meta TableMeta, result *mysql.Result) *TableRecords
func NewTableRecords ¶
func NewTableRecords(meta TableMeta) *TableRecords
func (*TableRecords) PKFields ¶
func (records *TableRecords) PKFields() []*Field
Click to show internal directories.
Click to hide internal directories.