Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToPositional ¶ added in v0.0.11
func ToPositional(placeholder string, expr Expression) (string, []any, error)
Types ¶
type Compiler ¶ added in v0.3.0
type Delete ¶ added in v0.0.3
type Delete struct {
From string
Where Expression
}
type Expression ¶
func If ¶
func If(condition bool, then Expression) Expression
func IfElse ¶ added in v0.0.4
func IfElse(condition bool, then, els Expression) Expression
type ExpressionError ¶ added in v0.0.11
type ExpressionError struct {
Err error
}
ExpressionError is returned if expressions are nil.
func (ExpressionError) Error ¶ added in v0.0.11
func (e ExpressionError) Error() string
func (ExpressionError) Unwrap ¶ added in v0.2.0
func (e ExpressionError) Unwrap() error
type Joiner ¶ added in v0.3.0
type Joiner struct {
Sep string
Expressions []Expression
}
func Append ¶
func Append(expressions ...Expression) Joiner
func Join ¶
func Join(sep string, expressions ...Expression) Joiner
type NumberOfArgumentsError ¶ added in v0.0.11
type NumberOfArgumentsError struct {
Got, Want int
}
NumberOfArgumentsError is returned if arguments doesn't match the number of placeholders.
func (NumberOfArgumentsError) Error ¶ added in v0.0.11
func (e NumberOfArgumentsError) Error() string
type Query ¶ added in v0.0.6
type Query struct {
With Expression
Select Expression
From Expression
Where Expression
GroupBy Expression
Having Expression
Window Expression
OrderBy Expression
Limit uint64
Offset uint64
}
type Update ¶ added in v0.0.3
type Update struct {
Table string
Sets []Expression
Where Expression
}
Click to show internal directories.
Click to hide internal directories.