Class: Rooq::DSL::Subquery
- Inherits:
-
Object
- Object
- Rooq::DSL::Subquery
- Defined in:
- lib/rooq/dsl/select_query.rb
Instance Attribute Summary collapse
-
#alias_name ⇒ Object
readonly
Returns the value of attribute alias_name.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Instance Method Summary collapse
-
#in(values) ⇒ Object
Allow subquery to be used in conditions.
-
#initialize(query, alias_name) ⇒ Subquery
constructor
A new instance of Subquery.
Constructor Details
#initialize(query, alias_name) ⇒ Subquery
Returns a new instance of Subquery.
204 205 206 207 208 |
# File 'lib/rooq/dsl/select_query.rb', line 204 def initialize(query, alias_name) @query = query @alias_name = alias_name freeze end |
Instance Attribute Details
#alias_name ⇒ Object (readonly)
Returns the value of attribute alias_name.
202 203 204 |
# File 'lib/rooq/dsl/select_query.rb', line 202 def alias_name @alias_name end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
202 203 204 |
# File 'lib/rooq/dsl/select_query.rb', line 202 def query @query end |