pub unsafe extern "C" fn cass_statement_set_host(
    statement: *mut CassStatement,
    host: *const c_char,
    port: c_int
) -> CassError
Expand description

Sets a specific host that should run the query.

In general, this should not be used, but it can be useful in the following situations:

  • To query node-local tables such as system and virtual tables.
  • To apply a sequence of schema changes where it makes sense for all the changes to be applied on a single node.

@public @memberof CassStatement

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