Class: OccamsRecord::BindsConverter::Positional

Inherits:
Abstract
  • Object
show all
Defined in:
lib/occams-record/binds_converter/positional.rb

Overview

Converts Rails-style positional binds (?) into native Ruby format (%s).

Constant Summary

Constants inherited from Abstract

Abstract::ESCAPE

Instance Method Summary collapse

Methods inherited from Abstract

#to_s

Constructor Details

#initialize(sql) ⇒ Positional

Returns a new instance of Positional.



7
8
9
# File 'lib/occams-record/binds_converter/positional.rb', line 7

def initialize(sql)
  super(sql, "?".freeze)
end