{"modulePath":"github.com/viant/sqlparser","version":"v0.13.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package query\n\n## Types\n\n```go\ntype From struct {\n\texpr.Raw\n\tAlias    string\n\tX        node.Node\n\tComments string\n}\n```\nFrom represetns from\n\n```go\ntype GroupBy struct {\n\tItems List\n}\n```\nGroupBy represetns a group by\n\n```go\ntype Item struct {\n\tExpr      node.Node\n\tAlias     string\n\tComments  string\n\tDataType  string\n\tRaw       string\n\tMeta      interface{}\n\tTag       string\n\tDirection string\n}\n```\nItem represents an inte,\n\n```go\nfunc NewItem(expr node.Node) *Item\n```\nNewItem returns an item\n\n```go\ntype Join struct {\n\tnode.Span\n\tOnSpan   node.Span\n\tKind     string\n\tAlias    string\n\tRaw      string\n\tWith     node.Node\n\tOn       *expr.Qualify\n\tComments string\n}\n```\n\n```go\nfunc NewJoin(raw string) *Join\n```\n\n```go\ntype List []*Item\n```\nList represents a list\n\n```go\nfunc (l *List) Append(item *Item)\n```\nAppend appends to the list\n\n```go\nfunc (l List) IsStarExpr() bool\n```\nIsStarExpr returns true if start expr\n\n```go\ntype Order struct {\n\tItem\n\tKind string\n}\n```\nOrder represents an order node\n\n```go\ntype Select struct {\n\tList    List\n\tFrom    From\n\tJoins   []*Join\n\tQualify *expr.Qualify\n\tGroupBy List\n\tHaving  *expr.Qualify\n\t// QualifyClause filters window results; Qualify above is the WHERE clause.\n\tQualifyClause *expr.Qualify\n\tOrderBy       List\n\tWindow        *expr.Raw\n\tLimit         *expr.Literal\n\tOffset        *expr.Literal\n\t// ForUpdate locks the physical rows selected by this SELECT.\n\tForUpdate     bool\n\tKind          string\n\tUnion         *Union\n\tWithRecursive bool\n\tWithSelects   WithSelects\n}\n```\nSelect represent a select\n\n```go\nfunc (s *Select) IsNested() bool\n```\nIsNested returns true is select uses nested query\n\n```go\nfunc (s *Select) NestedSelect() *Select\n```\n\n```go\ntype Union struct {\n\tKind string\n\tRaw  string\n\tX    *Select\n}\n```\nUnion represents an union\n\n```go\ntype WithSelect struct {\n\tRaw   string\n\tAlias string\n\tX     *Select\n}\n```\nWithSelects represents WithSelect list\n\n```go\ntype WithSelects []*WithSelect\n```\nWithSelects represents with selects\n\n```go\nfunc (w WithSelects) Select(alias string) *WithSelect\n```\nSelect returns with select\n\n","path":"github.com/viant/sqlparser/query","name":"query","synopsis":"","isRedistributable":true}
