Documentation
¶
Index ¶
- func CreateDataList(rows []Row) []any
- func CreateDataScalar(rows []Row) any
- func ParseRows(dbRows *sql.Rows) ([]*Column, []*Row)
- func ResolveTypes(resolver database.SQLDialect, rowValue any, column Column) (any, error)
- type Body
- type Column
- type Kind
- type List
- type Object
- type Row
- type Scalar
- type Table
- func (dt *Table) ClearRows() error
- func (dt *Table) ColumnDatabaseTypeStrings() []string
- func (dt *Table) ColumnNames() []string
- func (dt *Table) ColumnSlices() (names []string, types []string, dbTypes []string)
- func (dt *Table) ColumnTypeStrings() []string
- func (dt *Table) Columns() []*Column
- func (dt Table) Get() any
- func (dt *Table) GetColumnRows(columnIndex int) (rows []string, columnWidth int)
- func (dt *Table) GetRowColumn(row, column int) (string, error)
- func (dt *Table) GetRowString(index int) string
- func (dt *Table) GetRowStrings(index int) []string
- func (dt *Table) GetRowStringsAll() [][]string
- func (dt *Table) NumColumns() int
- func (dt *Table) NumRows() int
- func (dt *Table) Rows() []*Row
- func (dt Table) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDataList ¶
func CreateDataScalar ¶
func ResolveTypes ¶
Types ¶
type List ¶
type List struct {
Values []any
DBTypeName string
DBField string
ScanType reflect.Type
ActualType reflect.Type
DBKind string
}
func RowsToList ¶
type Table ¶
type Table struct {
Resolver database.SQLDialect
// contains filtered or unexported fields
}
func (*Table) ColumnDatabaseTypeStrings ¶
func (*Table) ColumnNames ¶
func (*Table) ColumnSlices ¶
func (*Table) ColumnTypeStrings ¶
func (*Table) GetColumnRows ¶
func (*Table) GetRowString ¶
func (*Table) GetRowStrings ¶
func (*Table) GetRowStringsAll ¶
func (*Table) NumColumns ¶
Click to show internal directories.
Click to hide internal directories.