Class: Rasti::DB::NQL::Nodes::Comparisons::Base

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/rasti/db/nql/nodes/comparisons/base.rb

Instance Method Summary collapse

Instance Method Details

#computed_attributes(collection_class) ⇒ Object



12
13
14
# File 'lib/rasti/db/nql/nodes/comparisons/base.rb', line 12

def computed_attributes(collection_class)
  attribute.computed_attributes(collection_class)
end

#dependency_tablesObject



8
9
10
# File 'lib/rasti/db/nql/nodes/comparisons/base.rb', line 8

def dependency_tables
  attribute.tables.empty? ? [] : [attribute.tables.join('.')]
end

#filter_condition(collection_class) ⇒ Object



16
17
18
# File 'lib/rasti/db/nql/nodes/comparisons/base.rb', line 16

def filter_condition(collection_class)
  DB.nql_filter_condition_for comparison_name, attribute.identifier(collection_class), argument
end