Documentation ¶
Index ¶
- type And
- type ArrayAgg
- type As
- type Asc
- type Concat
- type Condition
- type Count
- type CountAll
- type Cube
- type Desc
- type Equals
- type Greater
- type GroupBy
- type GroupedRecord
- type GroupedTable
- type GroupingSets
- type Ident
- type Join
- type LeftJoin
- type Less
- type Literal
- type Or
- type OrderBy
- type Query
- type Record
- type Select
- type SelectedRecord
- type SelectedTable
- func (t SelectedTable) Distinct() SelectedTable
- func (t SelectedTable) First() Record
- func (t SelectedTable) Limit(limit uint64) SelectedTable
- func (t SelectedTable) Offset(offset uint64) SelectedTable
- func (t SelectedTable) OrderBy(orders ...OrderBy) SelectedTable
- func (t SelectedTable) Query() Table
- func (t SelectedTable) Record(index int) SelectedRecord
- func (t SelectedTable) Scan(dest interface{}) error
- func (t SelectedTable) ScanColumn(column string, dest interface{}) error
- type Table
- func (t Table) As(name string) Table
- func (t Table) Copy() Table
- func (t Table) Delete(where Condition) Table
- func (t Table) GroupBy(groups ...GroupBy) GroupedTable
- func (t Table) Insert(record Record) Table
- func (t Table) Join(joins ...Join) Table
- func (t Table) MarshalJSON() ([]byte, error)
- func (t Table) Query() Table
- func (t Table) Record(index int) Record
- func (t Table) Records() []Record
- func (t Table) Scan(dest interface{}) error
- func (t Table) ScanColumn(column string, dest interface{}) error
- func (t Table) Select(selects ...Select) SelectedTable
- func (t Table) UnionAll(table Table) Table
- func (t *Table) UnmarshalJSON(b []byte) error
- func (t Table) Update(record Record, where Condition) Table
- func (t Table) Where(condition Condition) Table
- type Value
- type Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition interface {
Condition(record GroupedRecord) (bool, error)
}
type GroupBy ¶
type GroupBy interface {
GroupBy() (GroupingSets, error)
}
type GroupedRecord ¶
type GroupedTable ¶
func (GroupedTable) Copy ¶
func (t GroupedTable) Copy() GroupedTable
func (GroupedTable) Having ¶
func (t GroupedTable) Having(condition Condition) GroupedTable
func (GroupedTable) Select ¶
func (t GroupedTable) Select(selects ...Select) SelectedTable
func (GroupedTable) UnionAll ¶
func (t GroupedTable) UnionAll(table GroupedTable) GroupedTable
type GroupingSets ¶
type GroupingSets [][]string
func (GroupingSets) Cart ¶
func (gs GroupingSets) Cart(bb GroupingSets) GroupingSets
func (GroupingSets) GroupBy ¶
func (gs GroupingSets) GroupBy() (GroupingSets, error)
type Ident ¶
type Ident string
func (Ident) GroupBy ¶
func (i Ident) GroupBy() (GroupingSets, error)
type OrderBy ¶
type OrderBy interface {
OrderBy(i, j SelectedRecord) (int, error)
}
type SelectedRecord ¶
type SelectedTable ¶
func (SelectedTable) Distinct ¶
func (t SelectedTable) Distinct() SelectedTable
func (SelectedTable) First ¶
func (t SelectedTable) First() Record
func (SelectedTable) Limit ¶
func (t SelectedTable) Limit(limit uint64) SelectedTable
func (SelectedTable) Offset ¶
func (t SelectedTable) Offset(offset uint64) SelectedTable
func (SelectedTable) OrderBy ¶
func (t SelectedTable) OrderBy(orders ...OrderBy) SelectedTable
func (SelectedTable) Query ¶
func (t SelectedTable) Query() Table
func (SelectedTable) Record ¶
func (t SelectedTable) Record(index int) SelectedRecord
func (SelectedTable) Scan ¶
func (t SelectedTable) Scan(dest interface{}) error
func (SelectedTable) ScanColumn ¶
func (t SelectedTable) ScanColumn(column string, dest interface{}) error
type Table ¶
func (Table) GroupBy ¶
func (t Table) GroupBy(groups ...GroupBy) GroupedTable
func (Table) MarshalJSON ¶
func (Table) ScanColumn ¶
func (Table) Select ¶
func (t Table) Select(selects ...Select) SelectedTable
func (*Table) UnmarshalJSON ¶
type Variable ¶
type Variable interface {
Variable(record SelectedRecord) (Value, error)
}
Click to show internal directories.
Click to hide internal directories.