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

Method writeToString

expr/node.go:1578–1591  ·  view source on GitHub ↗
(w DialectWriter, negate bool)

Source from the content-addressed store, hash-verified

1576 m.writeToString(w, false)
1577}
1578func (m *TriNode) writeToString(w DialectWriter, negate bool) {
1579 m.Args[0].WriteDialect(w)
1580 io.WriteString(w, " ")
1581 if negate {
1582 io.WriteString(w, "NOT ")
1583 }
1584 switch m.Operator.T {
1585 case lex.TokenBetween:
1586 io.WriteString(w, "BETWEEN ")
1587 }
1588 m.Args[1].WriteDialect(w)
1589 io.WriteString(w, " AND ")
1590 m.Args[2].WriteDialect(w)
1591}
1592func (m *TriNode) Collapse() Node { return m }
1593func (m *TriNode) Negated() bool { return m.negated }
1594func (m *TriNode) Validate() error {

Callers 4

StringMethod · 0.95
StringNegateMethod · 0.95
WriteNegateMethod · 0.95
WriteDialectMethod · 0.95

Calls 1

WriteDialectMethod · 0.65

Tested by

no test coverage detected