Module: Bmg::Sql::SelectStar

Includes:
Expr
Defined in:
lib/bmg/sql/nodes/select_star.rb

Constant Summary collapse

STAR =
"*".freeze

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, #flatten, #group_by?, #join?, #limit_or_offset?, #order_by?, #ordering, #set_operator?, #with_insert, #with_push, #with_update

Instance Method Details

#desaliaser(*args, &bl) ⇒ Object



8
9
10
11
12
# File 'lib/bmg/sql/nodes/select_star.rb', line 8

def desaliaser(*args, &bl)
  ->(a){
    Predicate::Grammar.sexpr [ :qualified_identifier, last[1], a.to_s ]
  }
end

#has_computed_attributes?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/bmg/sql/nodes/select_star.rb', line 14

def has_computed_attributes?
  false
end

#to_sql(buffer, dialect) ⇒ Object



18
19
20
21
22
# File 'lib/bmg/sql/nodes/select_star.rb', line 18

def to_sql(buffer, dialect)
  last.to_sql(buffer, dialect)
  buffer << DOT << STAR
  buffer
end