Versions in this module Expand all Collapse all v1 v1.1.0 Mar 9, 2018 v1.0.0 Feb 27, 2018 Changes in this version + const PairArrayMode + const PairAssociativeMode + const PairUnknownMode + type Array struct + Values []Expression + func NewArray() Array + func NewArrayBool(values []bool) Array + func NewArrayFloat32(values []float32) Array + func NewArrayFloat64(values []float64) Array + func NewArrayInt(values []int) Array + func NewArrayInt16(values []int16) Array + func NewArrayInt32(values []int32) Array + func NewArrayInt64(values []int64) Array + func NewArrayInt8(values []int8) Array + func NewArrayString(values []string) Array + func NewArrayUint(values []uint) Array + func NewArrayUint16(values []uint16) Array + func NewArrayUint32(values []uint32) Array + func NewArrayUint64(values []uint64) Array + func NewArrayUint8(values []uint8) Array + func (array *Array) AddRaw(value Raw) + func (array *Array) AddValue(value Value) + func (array *Array) AddValues(values []Expression) + func (array Array) IsEmpty() bool + func (array Array) Write(ctx *types.Context) + type Between struct + And LogicalOperator + From Expression + Identifier Identifier + Operator ComparisonOperator + To Expression + func NewBetween(identifier Identifier, from, to Expression) Between + func NewNotBetween(identifier Identifier, from, to Expression) Between + func (between Between) IsEmpty() bool + func (between Between) Write(ctx *types.Context) + type BoolEncoder interface + Bool func() bool + type Column struct + Alias string + Name string + func NewColumn(name string) Column + func NewColumnAlias(name, alias string) Column + func (column Column) As(alias string) Column + func (column Column) Asc() Order + func (column Column) Desc() Order + func (column Column) IsEmpty() bool + func (column Column) Write(ctx *types.Context) + type ComparisonOperator struct + Operator types.ComparisonOperator + func NewComparisonOperator(operator types.ComparisonOperator) ComparisonOperator + func (operator ComparisonOperator) IsEmpty() bool + func (operator ComparisonOperator) Write(ctx *types.Context) + type ConflictAction interface + type ConflictNoAction struct + func NewConflictNoAction() ConflictNoAction + func (ConflictNoAction) IsEmpty() bool + func (ConflictNoAction) Write(ctx *types.Context) + type ConflictTarget struct + Columns []Column + func NewConflictTarget(columns []Column) ConflictTarget + func (target ConflictTarget) IsEmpty() bool + func (target ConflictTarget) Write(ctx *types.Context) + type ConflictUpdateAction struct + Set Set + func NewConflictUpdateAction(set Set) ConflictUpdateAction + func (action ConflictUpdateAction) IsEmpty() bool + func (action ConflictUpdateAction) Write(ctx *types.Context) + type Delete struct + From From + Returning Returning + Using Using + Where Where + func NewDelete() Delete + func (delete Delete) IsEmpty() bool + func (delete Delete) Write(ctx *types.Context) + type Expression interface + func NewArrayExpression(values ...interface{}) Expression + func NewExpression(arg interface{}) Expression + type From struct + Only bool + Table Table + func NewFrom(table Table, only bool) From + func (from From) IsEmpty() bool + func (from From) Write(ctx *types.Context) + type GroupBy struct + Columns []Column + func NewGroupBy(columns []Column) GroupBy + func (group GroupBy) IsEmpty() bool + func (group GroupBy) Write(ctx *types.Context) + type Having struct + Condition Expression + func NewHaving(expression Expression) Having + func (having Having) And(right Expression) Having + func (having Having) IsEmpty() bool + func (having Having) Or(right Expression) Having + func (having Having) Write(ctx *types.Context) + type Identifier struct + Identifier string + func NewIdentifier(identifier string) Identifier + func (identifier Identifier) Between(from, to interface{}) Between + func (identifier Identifier) Equal(value interface{}) InfixExpression + func (identifier Identifier) GreaterThan(value interface{}) InfixExpression + func (identifier Identifier) GreaterThanOrEqual(value interface{}) InfixExpression + func (identifier Identifier) ILike(value interface{}) InfixExpression + func (identifier Identifier) In(value ...interface{}) In + func (identifier Identifier) Is(value interface{}) InfixExpression + func (identifier Identifier) IsEmpty() bool + func (identifier Identifier) IsNot(value interface{}) InfixExpression + func (identifier Identifier) IsNull(value bool) InfixExpression + func (identifier Identifier) LessThan(value interface{}) InfixExpression + func (identifier Identifier) LessThanOrEqual(value interface{}) InfixExpression + func (identifier Identifier) Like(value interface{}) InfixExpression + func (identifier Identifier) NotBetween(from, to interface{}) Between + func (identifier Identifier) NotEqual(value interface{}) InfixExpression + func (identifier Identifier) NotILike(value interface{}) InfixExpression + func (identifier Identifier) NotIn(value ...interface{}) In + func (identifier Identifier) NotLike(value interface{}) InfixExpression + func (identifier Identifier) Write(ctx *types.Context) + type In struct + Identifier Identifier + Operator ComparisonOperator + Value Expression + func NewIn(identifier Identifier, value Expression) In + func NewNotIn(identifier Identifier, value Expression) In + func (in In) And(value Expression) InfixExpression + func (in In) IsEmpty() bool + func (in In) Or(value Expression) InfixExpression + func (in In) Write(ctx *types.Context) + type InfixExpression struct + Left Expression + Operator Operator + Right Expression + func NewInfixExpression(left Expression, operator Operator, right Expression) InfixExpression + func (expression InfixExpression) And(value Expression) InfixExpression + func (expression InfixExpression) IsEmpty() bool + func (expression InfixExpression) Or(value Expression) InfixExpression + func (expression InfixExpression) Write(ctx *types.Context) + type Insert struct + Columns []Column + Into Into + OnConflict OnConflict + Returning Returning + Values Values + func NewInsert() Insert + func (insert Insert) IsEmpty() bool + func (insert Insert) Write(ctx *types.Context) + type Int64Encoder interface + Int64 func() int64 + type Into struct + Table Table + func NewInto(table Table) Into + func (into Into) IsEmpty() bool + func (into Into) Write(ctx *types.Context) + type Join struct + Condition On + Table Table + Type types.JoinType + func NewInnerJoin(table Table, condition On) Join + func NewJoin(kind types.JoinType, table Table, condition On) Join + func NewLeftJoin(table Table, condition On) Join + func NewRightJoin(table Table, condition On) Join + func (join Join) IsEmpty() bool + func (join Join) Write(ctx *types.Context) + type Limit struct + Count int64 + func NewLimit(count int64) Limit + func (limit Limit) IsEmpty() bool + func (limit Limit) Write(ctx *types.Context) + type LogicalOperator struct + Operator types.LogicalOperator + func NewAndOperator() LogicalOperator + func NewLogicalOperator(operator types.LogicalOperator) LogicalOperator + func NewOrOperator() LogicalOperator + func (operator LogicalOperator) IsEmpty() bool + func (operator LogicalOperator) Write(ctx *types.Context) + type Offset struct + Start int64 + func NewOffset(start int64) Offset + func (offset Offset) IsEmpty() bool + func (offset Offset) Write(ctx *types.Context) + type On struct + Left Column + Right Column + func NewOn(left, right Column) On + func (on On) IsEmpty() bool + func (on On) Write(ctx *types.Context) + type OnConflict struct + Action ConflictAction + Target ConflictTarget + func NewOnConflict(target ConflictTarget, action ConflictAction) OnConflict + func (conflict OnConflict) IsEmpty() bool + func (conflict OnConflict) Write(ctx *types.Context) + type Operator interface + type Order struct + Expression string + Type types.OrderType + func NewOrder(expression string, kind types.OrderType) Order + func (order Order) IsEmpty() bool + func (order Order) Write(ctx *types.Context) + type OrderBy struct + Orders []Order + func NewOrderBy(orders []Order) OrderBy + func (order OrderBy) IsEmpty() bool + func (order OrderBy) Write(ctx *types.Context) + type PairContainer struct + Columns []Column + Expressions []Expression + Map map[Column]Expression + Mode PairMode + func NewPairContainer() PairContainer + func (pairs *PairContainer) Add(column Column, expression Expression) + func (pairs *PairContainer) Set(column Column) + func (pairs *PairContainer) Use(expression Expression) + func (pairs PairContainer) IsEmpty() bool + func (pairs PairContainer) Values() ([]Column, []Expression) + func (pairs PairContainer) Write(ctx *types.Context) + func (pairs PairContainer) WriteArray(ctx *types.Context) + func (pairs PairContainer) WriteAssociative(ctx *types.Context) + type PairMode uint8 + type Prefix struct + Prefix string + func NewPrefix(prefix string) Prefix + func (prefix Prefix) IsEmpty() bool + func (prefix Prefix) Write(ctx *types.Context) + type Raw struct + Value string + func NewRaw(value string) Raw + func (raw Raw) IsEmpty() bool + func (raw Raw) Write(ctx *types.Context) + type Returning struct + Columns []Column + func NewReturning(columns []Column) Returning + func (returning Returning) IsEmpty() bool + func (returning Returning) Write(ctx *types.Context) + type Select struct + Columns []Column + Distinct bool + From From + GroupBy GroupBy + Having Having + Joins []Join + Limit Limit + Offset Offset + OrderBy OrderBy + Prefix Prefix + Suffix Suffix + Where Where + func NewSelect() Select + func (selekt Select) IsEmpty() bool + func (selekt Select) Write(ctx *types.Context) + type Set struct + Pairs PairContainer + func NewSet() Set + func (set Set) IsEmpty() bool + func (set Set) Write(ctx *types.Context) + type Statement interface + IsEmpty func() bool + Write func(ctx *types.Context) + type StatementEncoder interface + Statement func() Statement + type StringEncoder interface + String func() string + type Suffix struct + Suffix string + func NewSuffix(suffix string) Suffix + func (suffix Suffix) IsEmpty() bool + func (suffix Suffix) Write(ctx *types.Context) + type Table struct + Alias string + Name string + func NewTable(name string) Table + func NewTableAlias(name, alias string) Table + func (table Table) As(alias string) Table + func (table Table) IsEmpty() bool + func (table Table) Write(ctx *types.Context) + type TimeEncoder interface + Time func() time.Time + type Update struct + From From + Only bool + Returning Returning + Set Set + Table Table + Where Where + func NewUpdate(table Table) Update + func (update Update) IsEmpty() bool + func (update Update) Write(ctx *types.Context) + type Using struct + Tables []Table + func NewUsing(tables []Table) Using + func (using Using) IsEmpty() bool + func (using Using) Write(ctx *types.Context) + type Value struct + Value interface{} + func NewValue(value interface{}) Value + func NewValueFromValuer(valuer driver.Valuer) Value + func (value Value) IsEmpty() bool + func (value Value) Write(ctx *types.Context) + type Values struct + Values Expression + func NewValues(values Expression) Values + func (values Values) IsEmpty() bool + func (values Values) Write(ctx *types.Context) + type Where struct + Condition Expression + func NewWhere(expression Expression) Where + func (where Where) And(right Expression) Where + func (where Where) IsEmpty() bool + func (where Where) Or(right Expression) Where + func (where Where) Write(ctx *types.Context) Incompatible versions in this module v2.2.4+incompatible Aug 1, 2019 v2.2.3+incompatible Aug 1, 2019 v2.2.0+incompatible Sep 21, 2018 v2.1.1+incompatible Jul 23, 2018 v2.0.0+incompatible Apr 17, 2018