Class: Sequel::Postgres::AutoParameterize::PlaceholderLiteralizer

Inherits:
Dataset::PlaceholderLiteralizer show all
Defined in:
lib/sequel/extensions/pg_auto_parameterize.rb

Overview

PlacholderLiteralizer subclass with support for stored auto parameters.

Instance Method Summary collapse

Methods inherited from Dataset::PlaceholderLiteralizer

#all, #append_sql, #each, #first, #freeze, #get, loader, #sql, #with_dataset

Constructor Details

#initialize(dataset, fragments, final_sql, arity) ⇒ PlaceholderLiteralizer

Returns a new instance of PlaceholderLiteralizer.



185
186
187
188
189
190
# File 'lib/sequel/extensions/pg_auto_parameterize.rb', line 185

def initialize(dataset, fragments, final_sql, arity)
  s = dataset.sql.dup
  s.clear
  @sql_origin = s.freeze
  super
end