Documentation ¶
Index ¶
- func AvgAggregator(table exp.AliasedExpression, fields []builders.Field) (goqu.Expression, error)
- func BuildQuery(ctx context.Context, builder Builder) (string, []any, error)
- func Collect[T any](ctx context.Context, querier pgxscan.Querier, toFunc pgx.RowToFunc[T], ...) ([]T, error)
- func Eq(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
- func ExecuteQuery(ctx context.Context, querier pgxscan.Querier, ...) error
- func Gt(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
- func Gte(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
- func ILike(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
- func In(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
- func IsNull(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
- func Like(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
- func Lt(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
- func Lte(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
- func MaxAggregator(table exp.AliasedExpression, fields []builders.Field) (goqu.Expression, error)
- func MinAggregator(table exp.AliasedExpression, fields []builders.Field) (goqu.Expression, error)
- func Neq(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
- func NotIn(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
- func SumAggregator(table exp.AliasedExpression, fields []builders.Field) (goqu.Expression, error)
- type Builder
- type Driver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvgAggregator ¶ added in v0.3.0
func AvgAggregator(table exp.AliasedExpression, fields []builders.Field) (goqu.Expression, error)
func BuildQuery ¶ added in v0.3.0
func Eq ¶
func Eq(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
func ExecuteQuery ¶ added in v0.3.0
func Gt ¶
func Gt(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
func Gte ¶
func Gte(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
func ILike ¶
func ILike(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
func In ¶
func In(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
func IsNull ¶
func IsNull(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
func Like ¶
func Like(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
func Lt ¶
func Lt(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
func Lte ¶
func Lte(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
func MaxAggregator ¶
func MaxAggregator(table exp.AliasedExpression, fields []builders.Field) (goqu.Expression, error)
func MinAggregator ¶
func MinAggregator(table exp.AliasedExpression, fields []builders.Field) (goqu.Expression, error)
func Neq ¶
func Neq(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
func NotIn ¶
func NotIn(table exp.AliasedExpression, key string, value interface{}) goqu.Expression
func SumAggregator ¶ added in v0.3.0
func SumAggregator(table exp.AliasedExpression, fields []builders.Field) (goqu.Expression, error)
Types ¶
type Builder ¶
type Builder struct { Schema *ast.Schema Logger log.Logger TableNameGenerator builders.TableNameGenerator Operators map[string]builders.Operator AggregatorOperators map[string]builders.AggregatorOperator CaseConverter builders.ColumnCaseConverter }
func NewBuilder ¶
Click to show internal directories.
Click to hide internal directories.