Method: Cequel::Metal::Keyspace.sanitize
- Defined in:
- lib/cequel/metal/keyspace.rb
.sanitize(statement, bind_vars) ⇒ String
Combine a statement with bind vars into a fully-fledged CQL query. This will no longer be needed once the CQL driver supports bound values natively.
79 80 81 82 |
# File 'lib/cequel/metal/keyspace.rb', line 79 def self.sanitize(statement, bind_vars) each_bind_var = bind_vars.each statement.gsub('?') { Type.quote(each_bind_var.next) } end |