Versions in this module Expand all Collapse all v0 v0.1.1 Feb 26, 2022 Changes in this version type Record + func (r Record) Set(column string, value Value) Record type Table + func (t Table) Delete(where Condition) Table + func (t Table) Insert(record Record) Table + func (t Table) Record(index int) Record + func (t Table) Update(record Record, where Condition) Table v0.1.0 Feb 26, 2022 Changes in this version + type And []Condition + func (a And) Condition(record GroupedRecord) (bool, error) + type ArrayAgg struct + Distinct bool + Expression Select + func (a ArrayAgg) Select(table SelectedTable) (string, []Value, error) + func (a ArrayAgg) Variable(record SelectedRecord) (Value, error) + type As struct + Expression Select + Name string + func (a As) Select(table SelectedTable) (string, []Value, error) + type Asc struct + Expression Variable + NullsLast bool + func (a Asc) OrderBy(i, j SelectedRecord) (int, error) + type Concat []Variable + func (c Concat) Select(table SelectedTable) (string, []Value, error) + func (c Concat) Variable(record SelectedRecord) (Value, error) + type Condition interface + Condition func(record GroupedRecord) (bool, error) + type Count string + func (c Count) Select(table SelectedTable) (string, []Value, error) + func (c Count) Variable(record SelectedRecord) (Value, error) + type CountAll struct + func (CountAll) Select(table SelectedTable) (string, []Value, error) + func (CountAll) Variable(record SelectedRecord) (Value, error) + type Cube []string + func (c Cube) GroupBy() (GroupingSets, error) + type Desc struct + Expression Variable + NullsLast bool + func (d Desc) OrderBy(i, j SelectedRecord) (int, error) + type Equals [2]Variable + func (e Equals) Condition(record GroupedRecord) (bool, error) + type Greater [2]Variable + func (g Greater) Condition(record GroupedRecord) (bool, error) + type GroupBy interface + GroupBy func() (GroupingSets, error) + type GroupedRecord struct + Err error + Grouped Table + Source Record + type GroupedTable struct + Err error + Grouped []Table + Source Table + func (t GroupedTable) Copy() GroupedTable + func (t GroupedTable) Having(condition Condition) GroupedTable + func (t GroupedTable) Select(selects ...Select) SelectedTable + func (t GroupedTable) UnionAll(table GroupedTable) GroupedTable + type GroupingSets [][]string + func (gs GroupingSets) Cart(bb GroupingSets) GroupingSets + func (gs GroupingSets) GroupBy() (GroupingSets, error) + type Ident string + func (i Ident) GroupBy() (GroupingSets, error) + func (i Ident) Select(table SelectedTable) (string, []Value, error) + func (i Ident) Variable(record SelectedRecord) (Value, error) + type Join interface + Join func(left Query) Table + type LeftJoin struct + On Condition + Right Query + func (lj LeftJoin) Join(left Query) Table + type Less [2]Variable + func (l Less) Condition(record GroupedRecord) (bool, error) + type Literal struct + Value Value + func (l Literal) Select(table SelectedTable) (string, []Value, error) + func (l Literal) Variable(record SelectedRecord) (Value, error) + type Or [2]Condition + func (o Or) Condition(record GroupedRecord) (bool, error) + type OrderBy interface + OrderBy func(i, j SelectedRecord) (int, error) + type Query interface + Query func() Table + type Record struct + Columns []string + Err error + Values []Value + func (r *Record) UnmarshalJSON(b []byte) error + func (r Record) MarshalJSON() ([]byte, error) + func (r Record) Scan(dest interface{}) error + func (r Record) ScanColumn(column string, dest interface{}) error + type Select interface + Select func(table SelectedTable) (string, []Value, error) + type SelectedRecord struct + Err error + Grouped Table + Selected Record + Source Record + type SelectedTable struct + Err error + Grouped []Table + Selected Table + Source Table + 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 struct + Columns []string + Data [][]Value + Err error + func From(table interface{}) Table + func (t *Table) UnmarshalJSON(b []byte) error + func (t Table) As(name string) Table + func (t Table) Copy() Table + func (t Table) GroupBy(groups ...GroupBy) GroupedTable + func (t Table) Join(joins ...Join) Table + func (t Table) MarshalJSON() ([]byte, error) + func (t Table) Query() Table + 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) Where(condition Condition) Table + type Value interface + func Copy(value Value) (Value, error) + type Variable interface + Variable func(record SelectedRecord) (Value, error)