class

Lustra::Expression::Node::Variable

Inherits Lustra::Expression::Node < Lustra::Expression::JSONB::Node < Lustra::Expression::Geometric::Node < Reference < Object

A variable AST node. It's what's created under the hood when you use a non-existent variable:

where { users.id != nil }

will produce this tree:

# => double_operator('<>')
#   # => variable('id', parent: 'users')
#   # => null

Constructors

new(name : String, parent : Variable | Nil = nil)
Source

Instance methods

resolve
Source

Macros

method_missing(call)
Source