Method: Cequel::Metal::Keyspace#prepare_statement
- Defined in:
- lib/cequel/metal/keyspace.rb
#prepare_statement(statement) ⇒ Cassandra::Statement::Prepared
Wraps the prepare statement in the default retry strategy
230 231 232 233 234 235 236 237 238 239 240 |
# File 'lib/cequel/metal/keyspace.rb', line 230 def prepare_statement(statement) cql = case statement when Statement statement.cql else statement end error_policy.execute_stmt(self) do client.prepare(cql) end end |