pub unsafe extern "C" fn cass_statement_add_key_index(
    statement: *mut CassStatement,
    index: usize
) -> CassError
Expand description

Adds a key index specifier to this a statement. When using token-aware routing, this can be used to tell the driver which parameters within a non-prepared, parameterized statement are part of the partition key.

Use consecutive calls for composite partition keys.

This is not necessary for prepared statements, as the key parameters are determined in the metadata processed in the prepare phase.

@public @memberof CassStatement

@param[in] statement @param[in] index @return CASS_OK if successful, otherwise an error occurred.