Versions in this module Expand all Collapse all v6 v6.1.0 Jun 9, 2019 Changes in this version + func SetColumnRenameFunction(new_function func(string) string) v6.0.0 Jun 7, 2019 Changes in this version + const CROSS_JOIN + const FOR_KEY_SHARE + const FOR_NOLOCK + const FOR_NO_KEY_UPDATE + const FOR_SHARE + const FOR_UPDATE + const FULL_JOIN + const FULL_OUTER_JOIN + const INNER_JOIN + const INTERSECT + const INTERSECT_ALL + const LEFT_JOIN + const LEFT_OUTER_JOIN + const NATURAL_FULL_JOIN + const NATURAL_JOIN + const NATURAL_LEFT_JOIN + const NATURAL_RIGHT_JOIN + const NOWAIT + const NO_NULLS + const NULLS_FIRST + const NULLS_LAST + const ON_COND + const RIGHT_JOIN + const RIGHT_OUTER_JOIN + const SKIP_LOCKED + const SORT_ASC + const SORT_DESC + const UNION + const UNION_ALL + const USING_COND + const WAIT + func And(expressions ...Expression) expressionList + func HasAdapter(dialect string) bool + func NewGoquError(message string, args ...interface{}) error + func On(expressions ...Expression) joinExpression + func Or(expressions ...Expression) expressionList + func RegisterAdapter(dialect string, factory func(ds *Dataset) Adapter) + func Using(expressions ...interface{}) joinExpression + type Adapter interface + AliasedExpressionSql func(buf *SqlBuilder, aliased AliasedExpression) error + BooleanExpressionSql func(buf *SqlBuilder, operator BooleanExpression) error + CastExpressionSql func(buf *SqlBuilder, casted CastExpression) error + ColumnListSql func(buf *SqlBuilder, columnList ColumnList) error + CommonTableExpressionSql func(buf *SqlBuilder, commonTable CommonTableExpression) error + CommonTablesSql func(buf *SqlBuilder, ctes []CommonTableExpression) error + CompoundExpressionSql func(buf *SqlBuilder, compound CompoundExpression) error + CompoundsSql func(buf *SqlBuilder, compounds []CompoundExpression) error + DatasetSql func(buf *SqlBuilder, builder Dataset) error + DefaultValuesSql func(buf *SqlBuilder) error + DeleteBeginSql func(buf *SqlBuilder) error + ExpressionListSql func(buf *SqlBuilder, expressionList ExpressionList) error + ExpressionMapSql func(buf *SqlBuilder, ex Ex) error + ExpressionOrMapSql func(buf *SqlBuilder, ex ExOr) error + ForSql func(buf *SqlBuilder, lockingClause Lock) error + FromSql func(buf *SqlBuilder, from ColumnList) error + GroupBySql func(buf *SqlBuilder, groupBy ColumnList) error + HavingSql func(buf *SqlBuilder, having ExpressionList) error + InsertBeginSql func(buf *SqlBuilder, o ConflictExpression) error + InsertColumnsSql func(buf *SqlBuilder, cols ColumnList) error + InsertValuesSql func(buf *SqlBuilder, values [][]interface{}) error + JoinSql func(buf *SqlBuilder, joins JoiningClauses) error + LimitSql func(buf *SqlBuilder, limit interface{}) error + Literal func(buf *SqlBuilder, i interface{}) error + LiteralBool func(buf *SqlBuilder, b bool) error + LiteralBytes func(buf *SqlBuilder, bs []byte) error + LiteralExpressionSql func(buf *SqlBuilder, literal LiteralExpression) error + LiteralFloat func(buf *SqlBuilder, f float64) error + LiteralInt func(buf *SqlBuilder, i int64) error + LiteralNil func(buf *SqlBuilder) error + LiteralString func(buf *SqlBuilder, s string) error + LiteralTime func(buf *SqlBuilder, t time.Time) error + OffsetSql func(buf *SqlBuilder, offset uint) error + OnConflictSql func(buf *SqlBuilder, o ConflictExpression) error + OrderSql func(buf *SqlBuilder, order ColumnList) error + OrderedExpressionSql func(buf *SqlBuilder, order OrderedExpression) error + PlaceHolderSql func(buf *SqlBuilder, i interface{}) error + QuoteIdentifier func(buf *SqlBuilder, ident IdentifierExpression) error + RangeExpressionSql func(buf *SqlBuilder, operator RangeExpression) error + ReturningSql func(buf *SqlBuilder, cols ColumnList) error + SelectDistinctSql func(buf *SqlBuilder, cols ColumnList) error + SelectSql func(buf *SqlBuilder, cols ColumnList) error + SliceValueSql func(buf *SqlBuilder, slice reflect.Value) error + SourcesSql func(buf *SqlBuilder, from ColumnList) error + SqlFunctionExpressionSql func(buf *SqlBuilder, sqlFunc SqlFunctionExpression) error + SupportConflictUpdateWhere func() bool + SupportsConflictTarget func() bool + SupportsInsertIgnoreSyntax func() bool + SupportsLimitOnDelete func() bool + SupportsLimitOnUpdate func() bool + SupportsOrderByOnDelete func() bool + SupportsOrderByOnUpdate func() bool + SupportsReturn func() bool + SupportsWithCTE func() bool + SupportsWithRecursiveCTE func() bool + TruncateSql func(buf *SqlBuilder, cols ColumnList, opts TruncateOptions) error + UpdateBeginSql func(buf *SqlBuilder) error + UpdateExpressionSql func(buf *SqlBuilder, update UpdateExpression) error + UpdateExpressionsSql func(buf *SqlBuilder, updates ...UpdateExpression) error + WhereSql func(buf *SqlBuilder, where ExpressionList) error + func NewAdapter(dialect string, dataset *Dataset) Adapter + func NewDefaultAdapter(ds *Dataset) Adapter + type AliasMethods interface + As func(interface{}) AliasedExpression + type AliasedExpression interface + Aliased func() Expression + GetAs func() IdentifierExpression + type BooleanExpression interface + Lhs func() Expression + Op func() BooleanOperation + Rhs func() interface{} + type BooleanMethods interface + Is func(interface{}) BooleanExpression + IsFalse func() BooleanExpression + IsNot func(interface{}) BooleanExpression + IsNotFalse func() BooleanExpression + IsNotNull func() BooleanExpression + IsNotTrue func() BooleanExpression + IsNull func() BooleanExpression + IsTrue func() BooleanExpression + type BooleanOperation int + const EQ_OP + const GTE_OP + const GT_OP + const IN_OP + const IS_NOT_OP + const IS_OP + const I_LIKE_OP + const LIKE_OP + const LTE_OP + const LT_OP + const NEQ_OP + const NOT_IN_OP + const NOT_I_LIKE_OP + const NOT_LIKE_OP + const REGEXP_I_LIKE_OP + const REGEXP_LIKE_OP + const REGEXP_NOT_I_LIKE_OP + const REGEXP_NOT_LIKE_OP + type CastExpression interface + Casted func() Expression + Type func() LiteralExpression + func Cast(e Expression, t string) CastExpression + type CastMethods interface + Cast func(val string) CastExpression + type ColumnList interface + Append func(...Expression) ColumnList + Columns func() []Expression + type CommonTableExpression interface + IsRecursive func() bool + Name func() LiteralExpression + SubQuery func() SqlExpression + func With(recursive bool, name string, subQuery SqlExpression) CommonTableExpression + type ComparisonMethods interface + Eq func(interface{}) BooleanExpression + Gt func(interface{}) BooleanExpression + Gte func(interface{}) BooleanExpression + Lt func(interface{}) BooleanExpression + Lte func(interface{}) BooleanExpression + Neq func(interface{}) BooleanExpression + type CompoundExpression interface + Rhs func() SqlExpression + Type func() compoundType + func Intersect(rhs SqlExpression) CompoundExpression + func IntersectAll(rhs SqlExpression) CompoundExpression + func Union(rhs SqlExpression) CompoundExpression + func UnionAll(rhs SqlExpression) CompoundExpression + type Conflict struct + func DoNothing() *Conflict + func (c Conflict) Updates() *ConflictUpdate + type ConflictExpression interface + Updates func() *ConflictUpdate + type ConflictUpdate struct + Target string + Update interface{} + WhereClause ExpressionList + func DoUpdate(target string, update interface{}) *ConflictUpdate + func (c *ConflictUpdate) Where(expressions ...Expression) *ConflictUpdate + func (c ConflictUpdate) TargetColumn() string + func (c ConflictUpdate) Updates() *ConflictUpdate + type CrudExec struct + Args []interface{} + Sql string + func (me CrudExec) Exec() (sql.Result, error) + func (me CrudExec) ExecContext(ctx context.Context) (sql.Result, error) + func (me CrudExec) ScanStruct(i interface{}) (bool, error) + func (me CrudExec) ScanStructContext(ctx context.Context, i interface{}) (bool, error) + func (me CrudExec) ScanStructs(i interface{}) error + func (me CrudExec) ScanStructsContext(ctx context.Context, i interface{}) error + func (me CrudExec) ScanVal(i interface{}) (bool, error) + func (me CrudExec) ScanValContext(ctx context.Context, i interface{}) (bool, error) + func (me CrudExec) ScanVals(i interface{}) error + func (me CrudExec) ScanValsContext(ctx context.Context, i interface{}) error + type Database struct + Db *sql.DB + Dialect string + func New(dialect string, db *sql.DB) *Database + func (me *Database) Begin() (*TxDatabase, error) + func (me *Database) Exec(query string, args ...interface{}) (sql.Result, error) + func (me *Database) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + func (me *Database) From(from ...interface{}) *Dataset + func (me *Database) Logger(logger Logger) + func (me *Database) Prepare(query string) (*sql.Stmt, error) + func (me *Database) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) + func (me *Database) Query(query string, args ...interface{}) (*sql.Rows, error) + func (me *Database) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + func (me *Database) QueryRow(query string, args ...interface{}) *sql.Row + func (me *Database) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row + func (me *Database) ScanStruct(i interface{}, query string, args ...interface{}) (bool, error) + func (me *Database) ScanStructContext(ctx context.Context, i interface{}, query string, args ...interface{}) (bool, error) + func (me *Database) ScanStructs(i interface{}, query string, args ...interface{}) error + func (me *Database) ScanStructsContext(ctx context.Context, i interface{}, query string, args ...interface{}) error + func (me *Database) ScanVal(i interface{}, query string, args ...interface{}) (bool, error) + func (me *Database) ScanValContext(ctx context.Context, i interface{}, query string, args ...interface{}) (bool, error) + func (me *Database) ScanVals(i interface{}, query string, args ...interface{}) error + func (me *Database) ScanValsContext(ctx context.Context, i interface{}, query string, args ...interface{}) error + func (me *Database) Trace(op, sql string, args ...interface{}) + type Dataset struct + func From(table ...interface{}) *Dataset + func (me *Dataset) Adapter() Adapter + func (me *Dataset) As(alias string) *Dataset + func (me *Dataset) ClearLimit() *Dataset + func (me *Dataset) ClearOffset() *Dataset + func (me *Dataset) ClearOrder() *Dataset + func (me *Dataset) ClearSelect() *Dataset + func (me *Dataset) ClearWhere() *Dataset + func (me *Dataset) Clone() Expression + func (me *Dataset) Count() (int64, error) + func (me *Dataset) CountContext(ctx context.Context) (int64, error) + func (me *Dataset) CrossJoin(table Expression) *Dataset + func (me *Dataset) Delete() *CrudExec + func (me *Dataset) Expression() Expression + func (me *Dataset) ForKeyShare(waitOption WaitOption) *Dataset + func (me *Dataset) ForNoKeyUpdate(waitOption WaitOption) *Dataset + func (me *Dataset) ForShare(waitOption WaitOption) *Dataset + func (me *Dataset) ForUpdate(waitOption WaitOption) *Dataset + func (me *Dataset) From(from ...interface{}) *Dataset + func (me *Dataset) FromSelf() *Dataset + func (me *Dataset) FullJoin(table Expression, condition joinExpression) *Dataset + func (me *Dataset) FullOuterJoin(table Expression, condition joinExpression) *Dataset + func (me *Dataset) GetClauses() clauses + func (me *Dataset) GroupBy(groupBy ...interface{}) *Dataset + func (me *Dataset) Having(expressions ...Expression) *Dataset + func (me *Dataset) InnerJoin(table Expression, condition joinExpression) *Dataset + func (me *Dataset) Insert(i ...interface{}) *CrudExec + func (me *Dataset) InsertConflict(c ConflictExpression, i ...interface{}) *CrudExec + func (me *Dataset) InsertIgnore(i ...interface{}) *CrudExec + func (me *Dataset) Intersect(other *Dataset) *Dataset + func (me *Dataset) IntersectAll(other *Dataset) *Dataset + func (me *Dataset) Join(table Expression, condition joinExpression) *Dataset + func (me *Dataset) LeftJoin(table Expression, condition joinExpression) *Dataset + func (me *Dataset) LeftOuterJoin(table Expression, condition joinExpression) *Dataset + func (me *Dataset) Limit(limit uint) *Dataset + func (me *Dataset) LimitAll() *Dataset + func (me *Dataset) Literal(buf *SqlBuilder, val interface{}) error + func (me *Dataset) NaturalFullJoin(table Expression) *Dataset + func (me *Dataset) NaturalJoin(table Expression) *Dataset + func (me *Dataset) NaturalLeftJoin(table Expression) *Dataset + func (me *Dataset) NaturalRightJoin(table Expression) *Dataset + func (me *Dataset) Offset(offset uint) *Dataset + func (me *Dataset) Order(order ...OrderedExpression) *Dataset + func (me *Dataset) OrderAppend(order ...OrderedExpression) *Dataset + func (me *Dataset) Pluck(i interface{}, col string) error + func (me *Dataset) PluckContext(ctx context.Context, i interface{}, col string) error + func (me *Dataset) Prepared(prepared bool) *Dataset + func (me *Dataset) Returning(returning ...interface{}) *Dataset + func (me *Dataset) RightJoin(table Expression, condition joinExpression) *Dataset + func (me *Dataset) RightOuterJoin(table Expression, condition joinExpression) *Dataset + func (me *Dataset) ScanStruct(i interface{}) (bool, error) + func (me *Dataset) ScanStructContext(ctx context.Context, i interface{}) (bool, error) + func (me *Dataset) ScanStructs(i interface{}) error + func (me *Dataset) ScanStructsContext(ctx context.Context, i interface{}) error + func (me *Dataset) ScanVal(i interface{}) (bool, error) + func (me *Dataset) ScanValContext(ctx context.Context, i interface{}) (bool, error) + func (me *Dataset) ScanVals(i interface{}) error + func (me *Dataset) ScanValsContext(ctx context.Context, i interface{}) error + func (me *Dataset) Select(selects ...interface{}) *Dataset + func (me *Dataset) SelectAppend(selects ...interface{}) *Dataset + func (me *Dataset) SelectDistinct(selects ...interface{}) *Dataset + func (me *Dataset) SetAdapter(adapter Adapter) *Dataset + func (me *Dataset) ToDeleteSql() (string, []interface{}, error) + func (me *Dataset) ToInsertConflictSql(o ConflictExpression, rows ...interface{}) (string, []interface{}, error) + func (me *Dataset) ToInsertIgnoreSql(rows ...interface{}) (string, []interface{}, error) + func (me *Dataset) ToInsertSql(rows ...interface{}) (string, []interface{}, error) + func (me *Dataset) ToSql() (string, []interface{}, error) + func (me *Dataset) ToTruncateSql() (string, []interface{}, error) + func (me *Dataset) ToTruncateWithOptsSql(opts TruncateOptions) (string, []interface{}, error) + func (me *Dataset) ToUpdateSql(update interface{}) (string, []interface{}, error) + func (me *Dataset) Union(other *Dataset) *Dataset + func (me *Dataset) UnionAll(other *Dataset) *Dataset + func (me *Dataset) Update(i interface{}) *CrudExec + func (me *Dataset) Where(expressions ...Expression) *Dataset + func (me *Dataset) With(name string, subquery *Dataset) *Dataset + func (me *Dataset) WithRecursive(name string, subquery *Dataset) *Dataset + type DefaultAdapter struct + AndFragment []byte + AsFragment []byte + AscFragment []byte + BooleanOperatorLookup map[BooleanOperation][]byte + CascadeFragment []byte + ConflictDoNothingFragment []byte + ConflictDoUpdateFragment []byte + ConflictFragment []byte + ConflictTargetSupported bool + ConflictUpdateWhereSupported bool + DefaultValuesFragment []byte + DeleteClause []byte + DescFragment []byte + DistinctFragment []byte + EscapedRunes map[rune][]byte + False []byte + ForKeyShareFragment []byte + ForNoKeyUpdateFragment []byte + ForShareFragment []byte + ForUpdateFragment []byte + FromFragment []byte + GroupByFragment []byte + HavingFragment []byte + IdentityFragment []byte + IncludePlaceholderNum bool + InsertClause []byte + InsertIgnoreClause []byte + InsertIgnoreSyntaxSupported bool + IntersectAllFragment []byte + IntersectFragment []byte + JoinTypeLookup map[JoinType][]byte + LimitFragment []byte + NowaitFragment []byte + Null []byte + NullsFirstFragment []byte + NullsLastFragment []byte + OffsetFragment []byte + OrFragment []byte + OrderByFragment []byte + PlaceHolderRune rune + QuoteRune rune + RangeOperatorLookup map[RangeOperation][]byte + RecursiveFragment []byte + RestrictFragment []byte + ReturningFragment []byte + SelectClause []byte + SetFragment []byte + SetOperatorRune rune + SkipLockedFragment []byte + StringQuote rune + TimeFormat string + True []byte + TruncateClause []byte + UnionAllFragment []byte + UnionFragment []byte + UpdateClause []byte + UseLiteralIsBools bool + ValuesFragment []byte + WhereFragment []byte + WithCTERecursiveSupported bool + WithCTESupported bool + WithFragment []byte + func (me *DefaultAdapter) AliasedExpressionSql(buf *SqlBuilder, aliased AliasedExpression) error + func (me *DefaultAdapter) BooleanExpressionSql(buf *SqlBuilder, operator BooleanExpression) error + func (me *DefaultAdapter) CastExpressionSql(buf *SqlBuilder, cast CastExpression) error + func (me *DefaultAdapter) ColumnListSql(buf *SqlBuilder, columnList ColumnList) error + func (me *DefaultAdapter) CommonTableExpressionSql(buf *SqlBuilder, cte CommonTableExpression) error + func (me *DefaultAdapter) CommonTablesSql(buf *SqlBuilder, ctes []CommonTableExpression) error + func (me *DefaultAdapter) CompoundExpressionSql(buf *SqlBuilder, compound CompoundExpression) error + func (me *DefaultAdapter) CompoundsSql(buf *SqlBuilder, compounds []CompoundExpression) error + func (me *DefaultAdapter) DatasetSql(buf *SqlBuilder, dataset Dataset) error + func (me *DefaultAdapter) DefaultValuesSql(buf *SqlBuilder) error + func (me *DefaultAdapter) DeleteBeginSql(buf *SqlBuilder) error + func (me *DefaultAdapter) ExpressionListSql(buf *SqlBuilder, expressionList ExpressionList) error + func (me *DefaultAdapter) ExpressionMapSql(buf *SqlBuilder, ex Ex) error + func (me *DefaultAdapter) ExpressionOrMapSql(buf *SqlBuilder, ex ExOr) error + func (me *DefaultAdapter) ForSql(buf *SqlBuilder, lockingClause Lock) error + func (me *DefaultAdapter) FromSql(buf *SqlBuilder, from ColumnList) error + func (me *DefaultAdapter) GroupBySql(buf *SqlBuilder, groupBy ColumnList) error + func (me *DefaultAdapter) HavingSql(buf *SqlBuilder, having ExpressionList) error + func (me *DefaultAdapter) InsertBeginSql(buf *SqlBuilder, o ConflictExpression) error + func (me *DefaultAdapter) InsertColumnsSql(buf *SqlBuilder, cols ColumnList) error + func (me *DefaultAdapter) InsertValuesSql(buf *SqlBuilder, values [][]interface{}) error + func (me *DefaultAdapter) JoinSql(buf *SqlBuilder, joins JoiningClauses) error + func (me *DefaultAdapter) LimitSql(buf *SqlBuilder, limit interface{}) error + func (me *DefaultAdapter) Literal(buf *SqlBuilder, val interface{}) error + func (me *DefaultAdapter) LiteralBool(buf *SqlBuilder, b bool) error + func (me *DefaultAdapter) LiteralBytes(buf *SqlBuilder, bs []byte) error + func (me *DefaultAdapter) LiteralExpressionSql(buf *SqlBuilder, literal LiteralExpression) error + func (me *DefaultAdapter) LiteralFloat(buf *SqlBuilder, f float64) error + func (me *DefaultAdapter) LiteralInt(buf *SqlBuilder, i int64) error + func (me *DefaultAdapter) LiteralNil(buf *SqlBuilder) error + func (me *DefaultAdapter) LiteralString(buf *SqlBuilder, s string) error + func (me *DefaultAdapter) LiteralTime(buf *SqlBuilder, t time.Time) error + func (me *DefaultAdapter) OffsetSql(buf *SqlBuilder, offset uint) error + func (me *DefaultAdapter) OnConflictSql(buf *SqlBuilder, o ConflictExpression) error + func (me *DefaultAdapter) OrderSql(buf *SqlBuilder, order ColumnList) error + func (me *DefaultAdapter) OrderedExpressionSql(buf *SqlBuilder, order OrderedExpression) error + func (me *DefaultAdapter) PlaceHolderSql(buf *SqlBuilder, i interface{}) error + func (me *DefaultAdapter) QuoteIdentifier(buf *SqlBuilder, ident IdentifierExpression) error + func (me *DefaultAdapter) RangeExpressionSql(buf *SqlBuilder, operator RangeExpression) error + func (me *DefaultAdapter) ReturningSql(buf *SqlBuilder, returns ColumnList) error + func (me *DefaultAdapter) SelectDistinctSql(buf *SqlBuilder, cols ColumnList) error + func (me *DefaultAdapter) SelectSql(buf *SqlBuilder, cols ColumnList) error + func (me *DefaultAdapter) SliceValueSql(buf *SqlBuilder, slice reflect.Value) error + func (me *DefaultAdapter) SourcesSql(buf *SqlBuilder, from ColumnList) error + func (me *DefaultAdapter) SqlFunctionExpressionSql(buf *SqlBuilder, sqlFunc SqlFunctionExpression) error + func (me *DefaultAdapter) SupportConflictUpdateWhere() bool + func (me *DefaultAdapter) SupportsConflictTarget() bool + func (me *DefaultAdapter) SupportsConflictUpdateWhere() bool + func (me *DefaultAdapter) SupportsInsertIgnoreSyntax() bool + func (me *DefaultAdapter) SupportsLimitOnDelete() bool + func (me *DefaultAdapter) SupportsLimitOnUpdate() bool + func (me *DefaultAdapter) SupportsOrderByOnDelete() bool + func (me *DefaultAdapter) SupportsOrderByOnUpdate() bool + func (me *DefaultAdapter) SupportsReturn() bool + func (me *DefaultAdapter) SupportsWithCTE() bool + func (me *DefaultAdapter) SupportsWithRecursiveCTE() bool + func (me *DefaultAdapter) TruncateSql(buf *SqlBuilder, from ColumnList, opts TruncateOptions) error + func (me *DefaultAdapter) UpdateBeginSql(buf *SqlBuilder) error + func (me *DefaultAdapter) UpdateExpressionSql(buf *SqlBuilder, update UpdateExpression) error + func (me *DefaultAdapter) UpdateExpressionsSql(buf *SqlBuilder, updates ...UpdateExpression) error + func (me *DefaultAdapter) WhereSql(buf *SqlBuilder, where ExpressionList) error + type DistinctMethods interface + Distinct func() SqlFunctionExpression + type EncodeError struct + func (me EncodeError) Error() string + type Ex map[string]interface + func (me Ex) Clone() Expression + func (me Ex) Expression() Expression + func (me Ex) ToExpressions() (ExpressionList, error) + type ExOr map[string]interface + func (me ExOr) Clone() Expression + func (me ExOr) Expression() Expression + func (me ExOr) ToExpressions() (ExpressionList, error) + type Expression interface + Clone func() Expression + Expression func() Expression + type ExpressionList interface + Append func(...Expression) ExpressionList + Expressions func() []Expression + Type func() ExpressionListType + type ExpressionListType int + const AND_TYPE + const OR_TYPE + type GoquError struct + func (me GoquError) Error() string + type IdentifierExpression interface + All func() IdentifierExpression + Col func(interface{}) IdentifierExpression + GetCol func() interface{} + GetSchema func() string + GetTable func() string + Schema func(string) IdentifierExpression + Table func(string) IdentifierExpression + func I(ident string) IdentifierExpression + type InMethods interface + In func(...interface{}) BooleanExpression + NotIn func(...interface{}) BooleanExpression + type JoinCondition int + type JoinOnExpression interface + On func() ExpressionList + type JoinType int + type JoinUsingExpression interface + Using func() ColumnList + type JoiningClause struct + Condition joinExpression + IsConditioned bool + JoinType JoinType + Table Expression + func (me JoiningClause) Clone() JoiningClause + type JoiningClauses []JoiningClause + func (me JoiningClauses) Clone() JoiningClauses + type LiteralExpression interface + Args func() []interface{} + Literal func() string + func Default() LiteralExpression + func L(val string, args ...interface{}) LiteralExpression + func Literal(val string, args ...interface{}) LiteralExpression + func Star() LiteralExpression + type Lock struct + Strength LockStrength + WaitOption WaitOption + type LockStrength int + type Logger interface + Printf func(format string, v ...interface{}) + type Op map[string]interface + type OrderedExpression interface + Direction func() sort_direction + NullSortType func() null_sort_type + NullsFirst func() OrderedExpression + NullsLast func() OrderedExpression + SortExpression func() Expression + type OrderedMethods interface + Asc func() OrderedExpression + Desc func() OrderedExpression + type RangeExpression interface + Lhs func() Expression + Op func() RangeOperation + Rhs func() RangeVal + type RangeMethods interface + Between func(RangeVal) RangeExpression + NotBetween func(RangeVal) RangeExpression + type RangeOperation int + const BETWEEN_OP + const NBETWEEN_OP + type RangeVal struct + End interface{} + Start interface{} + type Record map[string]interface + type SqlBuilder struct + CurrentArgPosition int + IsPrepared bool + func NewSqlBuilder(isPrepared bool) *SqlBuilder + func (me *SqlBuilder) ToSql() (string, []interface{}) + func (me *SqlBuilder) WriteArg(i interface{}) + type SqlExpression interface + ToSql func() (string, []interface{}, error) + type SqlFunctionExpression interface + Args func() []interface{} + Name func() string + func AVG(col interface{}) SqlFunctionExpression + func COALESCE(vals ...interface{}) SqlFunctionExpression + func COUNT(col interface{}) SqlFunctionExpression + func DISTINCT(col interface{}) SqlFunctionExpression + func FIRST(col interface{}) SqlFunctionExpression + func Func(name string, args ...interface{}) SqlFunctionExpression + func LAST(col interface{}) SqlFunctionExpression + func MAX(col interface{}) SqlFunctionExpression + func MIN(col interface{}) SqlFunctionExpression + func SUM(col interface{}) SqlFunctionExpression + type StringMethods interface + ILike func(interface{}) BooleanExpression + Like func(interface{}) BooleanExpression + NotILike func(interface{}) BooleanExpression + NotLike func(interface{}) BooleanExpression + type TruncateOptions struct + Cascade bool + Identity string + Restrict bool + type TxDatabase struct + Dialect string + Tx *sql.Tx + func (me *TxDatabase) Commit() error + func (me *TxDatabase) Exec(query string, args ...interface{}) (sql.Result, error) + func (me *TxDatabase) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + func (me *TxDatabase) From(cols ...interface{}) *Dataset + func (me *TxDatabase) Logger(logger Logger) + func (me *TxDatabase) Prepare(query string) (*sql.Stmt, error) + func (me *TxDatabase) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) + func (me *TxDatabase) Query(query string, args ...interface{}) (*sql.Rows, error) + func (me *TxDatabase) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + func (me *TxDatabase) QueryRow(query string, args ...interface{}) *sql.Row + func (me *TxDatabase) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row + func (me *TxDatabase) Rollback() error + func (me *TxDatabase) ScanStruct(i interface{}, query string, args ...interface{}) (bool, error) + func (me *TxDatabase) ScanStructContext(ctx context.Context, i interface{}, query string, args ...interface{}) (bool, error) + func (me *TxDatabase) ScanStructs(i interface{}, query string, args ...interface{}) error + func (me *TxDatabase) ScanStructsContext(ctx context.Context, i interface{}, query string, args ...interface{}) error + func (me *TxDatabase) ScanVal(i interface{}, query string, args ...interface{}) (bool, error) + func (me *TxDatabase) ScanValContext(ctx context.Context, i interface{}, query string, args ...interface{}) (bool, error) + func (me *TxDatabase) ScanVals(i interface{}, query string, args ...interface{}) error + func (me *TxDatabase) ScanValsContext(ctx context.Context, i interface{}, query string, args ...interface{}) error + func (me *TxDatabase) Trace(op, sql string, args ...interface{}) + func (me *TxDatabase) Wrap(fn func() error) error + type UpdateExpression interface + Col func() IdentifierExpression + Val func() interface{} + type WaitOption int Other modules containing this package github.com/doug-martin/goqu github.com/doug-martin/goqu/v7 github.com/doug-martin/goqu/v8 github.com/doug-martin/goqu/v9