{"modulePath":"github.com/justtrackio/gosoline","version":"v0.69.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sql\n\n## Constants\n\n```go\nconst (\n\tBoolAnd       = \"AND\"\n\tBoolOr        = \"OR\"\n\tDirectionAsc  = \"ASC\"\n\tDirectionDesc = \"DESC\"\n\tOpEq          = \"=\"\n\tOpGt          = \"\u003e\"\n\tOpGte         = \"\u003e=\"\n\tOpIs          = \"IS\"\n\tOpIsNot       = \"IS NOT\"\n\tOpLike        = \"~\"\n\tOpLt          = \"\u003c\"\n\tOpLte         = \"\u003c=\"\n\tOpMemberOf    = \"MEMBER OF\"\n\tOpNeq         = \"!=\"\n\tOpNotLike     = \"!~\"\n\tOpNotMemberOf = \"NOT MEMBER OF\"\n\tOpRawLike     = \"LIKE\"\n\tOpRawNotLike  = \"NOT LIKE\"\n)\n```\n\n## Types\n\n```go\ntype Filter struct {\n\tGroups  []Filter      `json:\"groups\"`\n\tMatches []FilterMatch `json:\"matches\"`\n\tBool    string        `json:\"bool\" validate:\"oneof=AND OR\"`\n}\n```\n\n```go\ntype FilterMatch struct {\n\tValues    []any  `json:\"values\"`\n\tDimension string `json:\"dimension\"`\n\tOperator  string `json:\"operator\" validate:\"oneof='=' '!=' 'IS' 'IS NOT' '~' '!~' 'LIKE' 'NOT LIKE' 'MEMBER OF' 'NOT MEMBER OF' '\u003c' '\u003e' '\u003c=' '\u003e='\"`\n}\n```\n\n```go\ntype Input struct {\n\tFilter  Filter   `json:\"filter\"`\n\tGroupBy []string `json:\"groupBy\"`\n\tOrder   []Order  `json:\"order\"`\n\tPage    *Page    `json:\"page\"`\n}\n```\n\n```go\nfunc NewInput() *Input\n```\n\n```go\ntype Order struct {\n\tDirection string `json:\"direction\" validate:\"oneof=ASC DESC\"`\n\tField     string `json:\"field\"`\n}\n```\n\n```go\ntype OrmQueryBuilder struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewOrmQueryBuilder(metadata db_repo.Metadata) *OrmQueryBuilder\n```\n\n```go\nfunc (qb OrmQueryBuilder) Build(inp *Input) (*db_repo.QueryBuilder, error)\n```\n\n```go\ntype Page struct {\n\tLimit  int `json:\"limit\"`\n\tOffset int `json:\"offset\"`\n}\n```\n\n```go\ntype RawQueryBuilder struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewRawQueryBuilder(metadata db_repo.Metadata) *RawQueryBuilder\n```\n\n```go\nfunc (qb RawQueryBuilder) Build(inp *Input) (*db.RawQueryBuilder, error)\n```\n\n","path":"github.com/justtrackio/gosoline/pkg/httpserver/sql","name":"sql","synopsis":"","isRedistributable":true}
