Module: Bmg::Sql::Literal

Includes:
Expr, Predicate::Expr
Defined in:
lib/bmg/sql/nodes/literal.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 Predicate::Expr

#to_sql_literal

Methods included from Expr

#each_child, #flatten, #group_by?, #join?, #limit_or_offset?, #order_by?, #ordering, #set_operator?, #with_insert, #with_push, #with_update

Instance Method Details

#is_computed?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/bmg/sql/nodes/literal.rb', line 11

def is_computed?
  false
end

#to_sql(buffer, dialect) ⇒ Object



15
16
17
18
# File 'lib/bmg/sql/nodes/literal.rb', line 15

def to_sql(buffer, dialect)
  to_sql_literal(buffer, last)
  buffer
end

#would_be_nameObject



7
8
9
# File 'lib/bmg/sql/nodes/literal.rb', line 7

def would_be_name
  nil
end