Method: TestProf::AnyFixture::Dump::PostgreSQL#compile_sql
- Defined in:
- lib/test_prof/any_fixture/dump/postgresql.rb
#compile_sql(sql, binds) ⇒ Object
25 26 27 |
# File 'lib/test_prof/any_fixture/dump/postgresql.rb', line 25 def compile_sql(sql, binds) sql.gsub(/\$\d+/) { binds.shift.gsub("\n", "' || chr(10) || '") } end |