Graph statement for executing graph queries. This represents a graph query string, graph options and graph values used to execute a graph query.

Functions

DseGraphStatement *

dse_graph_statement_new

( const char * query, const DseGraphOptions * options )

Creates a new instance of graph statement.

Parameters:
Name Type Details
in query const char *
in options const DseGraphOptions *

Optional. Use NULL for a system query with the default graph language and source.

Returns:
Type Details
DseGraphStatement *

Returns a instance of graph statement that must be freed.

DseGraphStatement *

dse_graph_statement_new_n

( const char * query, size_t query_length, const DseGraphOptions * options )

Same as DseGraphStatement::dse_graph_statement_new, but with lengths for string parameters.

Parameters:
Name Type Details
in query const char *
in query_length size_t
in options const DseGraphOptions *

Optional. Use NULL for a system query with the default graph language and source.

Returns:
Type Details
DseGraphStatement *

same as DseGraphStatement::dse_graph_statement_new

void

dse_graph_statement_free

( DseGraphStatement * statement )

Frees a graph statement instance.

Parameters:
Name Type Details
in statement DseGraphStatement *
CassError

dse_graph_statement_bind_values

( DseGraphStatement * statement, const DseGraphObject * values )

Bind the values to a graph query.

Parameters:
Name Type Details
in statement DseGraphStatement *
in values const DseGraphObject *
Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.

CassError

dse_graph_statement_set_timestamp

( DseGraphStatement * statement, cass_int64_t timestamp )

Sets the graph statement’s timestamp.

Parameters:
Name Type Details
in statement DseGraphStatement *
in timestamp cass_int64_t
Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.