Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AndQuery ¶
type AndQuery struct {
And []WhereQuery `json:"and"`
}
type GroupByQueryItem ¶
type OrQuery ¶
type OrQuery struct {
Or []WhereQuery `json:"or"`
}
type Query ¶
type Query struct {
UserId string `json:"_userId"`
Interval time.Duration `json:"interval"`
SelectFields []SelectQueryItem `json:"select"`
WhereQuery WhereQuery `json:"where"`
GroupByQuery []GroupByQueryItem `json:"groupBy"`
}
type SelectQueryItem ¶
type SelectQueryItem struct {
Column string `json:"column"`
Operation string `json:"operation"`
As string `json:"as"`
}
*
{
"column": "PaymentAmount",
"operation": "sum",
"as": "PaymentAmountSum"
}
type TerminalQuery ¶
type WhereQuery ¶
type WhereQuery struct {
TerminalQuery
AndQuery
OrQuery
}
Where -> T | And | Or
And -> Where* Or -> Where*
func (*WhereQuery) GetColumnListFromQuery ¶
func (w *WhereQuery) GetColumnListFromQuery(list *[][]string)
func (*WhereQuery) Validate ¶
func (w *WhereQuery) Validate() error
Click to show internal directories.
Click to hide internal directories.