Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllColsContained ¶
func AllColsContained(set ReferredCols, cols []string) bool
Types ¶
type AstWalker ¶
type AstWalker struct { UnknownNodes []interface{} Fn func(ctx interface{}, node interface{}) (stop bool) }
type ReferredCols ¶
func ColNamesInSelect ¶
func ColNamesInSelect(sql string) (referredCols ReferredCols, err error)
ColNamesInSelect finds all referred variables in a Select Statement. (variables = sub-expressions, placeholders, indexed vars, etc.) Implementation limits:
- Table with AS is not normalized.
- Columns referred from outer query are not translated.
func (ReferredCols) ToList ¶
func (rc ReferredCols) ToList() []string
Click to show internal directories.
Click to hide internal directories.