Class: Rooq::Dialect::RenderedQuery

Inherits:
Object
  • Object
show all
Defined in:
lib/rooq/dialect/postgresql.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sql, params) ⇒ RenderedQuery

Returns a new instance of RenderedQuery.



524
525
526
527
528
# File 'lib/rooq/dialect/postgresql.rb', line 524

def initialize(sql, params)
  @sql = sql.freeze
  @params = params.freeze
  freeze
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



522
523
524
# File 'lib/rooq/dialect/postgresql.rb', line 522

def params
  @params
end

#sqlObject (readonly)

Returns the value of attribute sql.



522
523
524
# File 'lib/rooq/dialect/postgresql.rb', line 522

def sql
  @sql
end