pub unsafe extern "C" fn cass_statement_set_keyspace(
    statement: *mut CassStatement,
    keyspace: *const c_char
) -> CassError
Expand description

Sets the statement’s keyspace. This is used for token-aware routing and when using protocol v5 or greater it also overrides the session’s current keyspace for the statement.

This is not necessary and will not work for bound statements, as the keyspace is determined by the prepared statement metadata.

@public @memberof CassStatement

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