Module: Alf::Sql::ColumnName

Includes:
Expr
Defined in:
lib/alf/sql/nodes/column_name.rb

Constant Summary

Constants included from Expr

Expr::AND, Expr::AS, Expr::COMMA, Expr::DOT, Expr::EQUAL, Expr::EXISTS, Expr::FALSE, Expr::GREATER, Expr::GREATER_OR_EQUAL, Expr::IN, Expr::LEFT_PARENTHESE, Expr::LESS, Expr::LESS_OR_EQUAL, Expr::NOT, Expr::NOT_EQUAL, Expr::OR, Expr::QUOTE, Expr::RIGHT_PARENTHESE, Expr::SPACE, Expr::TRUE

Instance Method Summary collapse

Methods included from Expr

#each_child, #join?, #limit_or_offset?, #ordering, #set_operator?, #with_insert, #with_push, #with_update

Instance Method Details

#as_nameObject



10
11
12
# File 'lib/alf/sql/nodes/column_name.rb', line 10

def as_name
  last
end

#qualifierObject



6
7
8
# File 'lib/alf/sql/nodes/column_name.rb', line 6

def qualifier
  nil
end

#to_sql(buffer = "") ⇒ Object



18
19
20
21
# File 'lib/alf/sql/nodes/column_name.rb', line 18

def to_sql(buffer = "")
  buffer << last
  buffer
end

#would_be_nameObject



14
15
16
# File 'lib/alf/sql/nodes/column_name.rb', line 14

def would_be_name
  last
end