Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnMeta ¶
type ColumnMeta struct { TableCat string TableSchemeName string TableName string ColumnName string DataType int32 DataTypeName string ColumnSize int32 DecimalDigits int32 NumPrecRadix int32 Nullable int32 Remarks string ColumnDef string SqlDataType int32 SqlDatetimeSub int32 CharOctetLength int32 OrdinalPosition int32 IsNullable string IsAutoIncrement string }
type Row ¶
type Row struct {
Fields []*Field
}
func (*Row) NonPrimaryKeys ¶
func (*Row) PrimaryKeys ¶
type TableMeta ¶
type TableMeta struct { 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 NewTableRecords ¶
func NewTableRecords(meta TableMeta) *TableRecords
func (*TableRecords) PKFields ¶
func (records *TableRecords) PKFields() []*Field
Click to show internal directories.
Click to hide internal directories.