MCPcopy Create free account
hub / github.com/araddon/qlbridge / SqlSelect

Struct SqlSelect

rel/sql.go:85–109  ·  view source on GitHub ↗

SqlSelect SQL Select statement

Source from the content-addressed store, hash-verified

83 }
84 // SqlSelect SQL Select statement
85 SqlSelect struct {
86 Db string // If provided a use "dbname"
87 Raw string // full original raw statement
88 Star bool // for select * from ...
89 Distinct bool // Distinct flag?
90 Columns Columns // An array (ordered) list of columns
91 From []*SqlSource // From, Join
92 Into *SqlInto // Into "table"
93 Where *SqlWhere // Expr Node, or *SqlSelect
94 Having expr.Node // Filter results
95 GroupBy Columns
96 OrderBy Columns
97 Limit int
98 Offset int
99 Alias string // Non-Standard sql, alias/name of sql another way of expression Prepared Statement
100 With u.JsonHelper // Non-Standard SQL for properties/config info, similar to Cassandra with, purse json
101 proj *Projection // Projected fields
102 isAgg bool // is this an aggregate query? has group-by, or aggregate selector expressions (count, cardinality etc)
103 finalized bool // have we already finalized, ie formalized left/right aliases
104 schemaqry bool // is this a schema qry? ie select @@max_packet etc
105
106 // Memoized sql, we assume this is an immuteable struct so if this is populated use it
107 pb *SqlStatementPb
108 fingerprintid int64
109 }
110 // SqlSource is a table name, sub-query, or join as used in
111 // SELECT <columns> FROM <SQLSOURCE>
112 // - SELECT .. FROM table_name

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected