A statement that has been prepared cluster-side (It has been pre-parsed and cached).

A prepared statement is read-only and it is thread-safe to concurrently bind new statements.

Functions

void

cass_prepared_free

( prepared )

Frees a prepared instance.

Parameters:
Name Type Details
in prepared
CassStatement *

cass_prepared_bind

( prepared )

Creates a bound statement from a pre-prepared statement.

Parameters:
Name Type Details
in prepared
Returns:
Type Details
CassStatement *

Returns a bound statement that must be freed.

See Also:
CassError

cass_prepared_parameter_name

( prepared, index, name, name_length )

Gets the name of a parameter at the specified index.

Parameters:
Name Type Details
in prepared
in index
out name
out name_length
Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.

const CassDataType *

cass_prepared_parameter_data_type

( prepared, index )

Gets the data type of a parameter at the specified index.

Parameters:
Name Type Details
in prepared
in index
Returns:
Type Details
const CassDataType *

Returns a reference to the data type of the parameter. Do not free this reference as it is bound to the lifetime of the prepared.

const CassDataType *

cass_prepared_parameter_data_type_by_name

( prepared, name )

Gets the data type of a parameter for the specified name.

Parameters:
Name Type Details
in prepared
in name
Returns:
Type Details
const CassDataType *

Returns a reference to the data type of the parameter. Do not free this reference as it is bound to the lifetime of the prepared.

const CassDataType *

cass_prepared_parameter_data_type_by_name_n

( prepared, name, name_length )

Same as CassPrepared::cass_prepared_parameter_data_type_by_name, but with lengths for string parameters.

Parameters:
Name Type Details
in prepared
in name
in name_length
Returns:
Type Details
const CassDataType *

Returns a reference to the data type of the parameter. Do not free this reference as it is bound to the lifetime of the prepared.

See Also: