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

Method LeftRight

expr/node.go:1143–1148  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1141// Return left, right values if is of form `table.column` or `schema`.`table` and
1142// also return true/false for if it even has left & right syntax
1143func (m *IdentityNode) LeftRight() (string, string, bool) {
1144 if m.left == "" {
1145 m.left, m.right, _ = LeftRight(m.Text)
1146 }
1147 return m.left, m.right, m.left != ""
1148}
1149
1150func NewNull(operator lex.Token) *NullNode {
1151 return &NullNode{}

Callers 2

LeftStringsMethod · 0.45
NewWhereFinalFunction · 0.45

Calls 1

LeftRightFunction · 0.85

Tested by

no test coverage detected