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 string
FirstArgument JoinArgument
JoinOperation enum.JoinType
SecondArgument JoinArgument
}
type JoinArgument ¶
type Operation ¶
type Operation struct {
Type enum.WhereType
Arg any
Value ValueOperation
Operator enum.OperatorType
Attribute string
Table string
Function enum.FunctionType
AttributeValue string
AttributeValueTable string
}
type Query ¶
type Query struct {
Type enum.QueryType
Attributes []Attribute
Tables []string
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
}
type ValueOperation ¶
type ValueOperation interface {
GetValue() any
}
Click to show internal directories.
Click to hide internal directories.