Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColumnGoType ¶
func ColumnGoType(ct *sql.ColumnType) (reflect.Type, error)
Types ¶
type Col ¶
type Col struct { Name string Type reflect.Type // Overrides for sql types SQLType string SQLDef string }
Col represets a column in a table
type Table ¶
type Table struct {
Columns []Col
}
Table represents an sql table definition.
func (Table) NormalizeRows ¶
NormalizeRows returns a slice of rows based on definition d.
func (Table) RowValues ¶
RowValues returns a slice of values from the given rows. |row1|row2|row3| => |row1[0]|row1[1]|row2[0]|row2[1]|row3[0]|row3[1]|
Click to show internal directories.
Click to hide internal directories.