Documentation ¶
Index ¶
Constants ¶
View Source
const ( BoolAnd = "AND" BoolOr = "OR" DirectionAsc = "ASC" DirectionDesc = "DESC" OpEq = "=" OpGt = ">" OpGte = ">=" OpIs = "IS" OpIsNot = "IS NOT" OpLike = "~" OpLt = "<" OpLte = "<=" OpMemberOf = "MEMBER OF" OpNeq = "!=" OpNotLike = "!~" OpNotMemberOf = "NOT MEMBER OF" OpRawLike = "LIKE" OpRawNotLike = "NOT LIKE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct { Groups []Filter `json:"groups"` Matches []FilterMatch `json:"matches"` Bool string `json:"bool" validate:"oneof=AND OR"` }
type FilterMatch ¶
type Input ¶
type OrmQueryBuilder ¶
type OrmQueryBuilder struct {
// contains filtered or unexported fields
}
func NewOrmQueryBuilder ¶
func NewOrmQueryBuilder(metadata db_repo.Metadata) *OrmQueryBuilder
func (OrmQueryBuilder) Build ¶
func (qb OrmQueryBuilder) Build(inp *Input) (*db_repo.QueryBuilder, error)
type RawQueryBuilder ¶
type RawQueryBuilder struct {
// contains filtered or unexported fields
}
func NewRawQueryBuilder ¶
func NewRawQueryBuilder(metadata db_repo.Metadata) *RawQueryBuilder
func (RawQueryBuilder) Build ¶
func (qb RawQueryBuilder) Build(inp *Input) (*db.RawQueryBuilder, error)
Click to show internal directories.
Click to hide internal directories.