Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregate ¶
type Aggregate interface {
Aggregate() enum.AggregateType
}
type Attribute ¶
type Attribute struct {
Table string
Name string
AggregateType enum.AggregateType
FunctionType enum.FunctionType
}
type FunctionType ¶
type FunctionType interface {
GetType() enum.FunctionType
}
type Join ¶
type Join struct {
Table Table
FirstArgument JoinArgument
JoinOperation enum.JoinType
SecondArgument JoinArgument
}
type JoinArgument ¶
type Query ¶
type Query struct {
Type enum.QueryType
Attributes []Attribute
Tables []Table
Joins []Join //Select
Limit int //Select
Offset int //Select
OrderBy *OrderBy //Select
WhereOperations []Where //Select, Update and Delete
WhereIndex int //Start of where position arguments $1, $2...
Arguments []any
ReturningId *Attribute //Insert
BatchSizeQuery int //Insert
SizeArguments int //Insert
RawSql string
Header QueryHeader
}
type QueryHeader ¶ added in v0.2.0
type ValueOperation ¶
type ValueOperation interface {
GetValue() any
}
Click to show internal directories.
Click to hide internal directories.