MCPcopy Create free account
hub / github.com/upper/db / Empty

Method Empty

internal/adapter/logical_expr.go:89–97  ·  view source on GitHub ↗

Empty returns true if this condition has no elements. False otherwise.

()

Source from the content-addressed store, hash-verified

87
88// Empty returns true if this condition has no elements. False otherwise.
89func (g *LogicalExprGroup) Empty() bool {
90 if g.fn != nil {
91 return false
92 }
93 if g.prev != nil {
94 return g.prev.Empty()
95 }
96 return true
97}
98
99func (g *LogicalExprGroup) Frame(fn func(*[]LogicalExpr) error) *LogicalExprGroup {
100 return &LogicalExprGroup{prev: g, op: g.op, fn: fn}

Callers

nothing calls this directly

Calls 1

EmptyMethod · 0.65

Tested by

no test coverage detected