Class: PGB::ColumnReference

Inherits:
Expression show all
Defined in:
lib/pgb/column_reference.rb

Instance Method Summary collapse

Methods included from SQLDisplayable

#inspect, #to_s

Constructor Details

#initialize(table, column) ⇒ ColumnReference

Returns a new instance of ColumnReference.



5
6
7
# File 'lib/pgb/column_reference.rb', line 5

def initialize(table, column)
  @value = "#{to_identifier(table)}.#{to_identifier(column)}"
end

Instance Method Details

#to_sqlObject



9
10
11
# File 'lib/pgb/column_reference.rb', line 9

def to_sql
  value
end