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

Method LeftRight

rel/sql.go:904–909  ·  view source on GitHub ↗

Return left, right values if is of form `table.column` and also return true/false for if it even has left/right

()

Source from the content-addressed store, hash-verified

902// Return left, right values if is of form `table.column` and
903// also return true/false for if it even has left/right
904func (m *Column) LeftRight() (string, string, bool) {
905 if m.right == "" {
906 m.left, m.right, _ = expr.LeftRight(m.As)
907 }
908 return m.left, m.right, m.left != ""
909}
910
911func (m *PreparedStatement) Keyword() lex.TokenType { return lex.TokenPrepare }
912func (m *PreparedStatement) String() string {

Callers 13

CopyRewriteMethod · 0.95
UnAliasedFieldNamesMethod · 0.45
UnAliasedColumnsMethod · 0.45
findFromAliasesMethod · 0.45
UnAliasedColumnsMethod · 0.45
ColumnPositionsMethod · 0.45
TestSqlRewriteFunction · 0.45
RewriteSqlSourceFunction · 0.45
rewriteIntoProjectionFunction · 0.45
rewriteWhereFunction · 0.45
joinNodesForFromFunction · 0.45
columnsFromJoinFunction · 0.45

Calls 1

LeftRightFunction · 0.92

Tested by 1

TestSqlRewriteFunction · 0.36