A session is used to execute queries. In addition to executing standard CQL queries via the #execute and #execute_async methods, it executes graph queries via the #execute_graph_async and #execute_graph methods.

See Also:

Inherits

Object

Methods

execute_graph_async

(graph_statement, options = {})

Execute a graph statement asynchronously.

Parameters:
Name Type Details
graph_statement (String or Dse::Graph::Statement) a graph statement
options Hash (defaults to: {}) a customizable set of options. All of the options supported by Cassandra::Session#execute_async are valid here. However, there are some extras, noted below.
Keys for options:
Key Type Details
:arguments Hash Parameters for the graph statement. NOTE: Unlike #execute and #execute_async, this must be a hash of <parameter-name,value>.
:graph_name String name of graph to use in graph statements
:graph_source String graph traversal source
:graph_language String language used in graph queries
:graph_read_consistency Cassandra::CONSISTENCIES read consistency level for graph statements. Overrides the standard statement consistency level
:graph_write_consistency Cassandra::CONSISTENCIES write consistency level for graph statements. Overrides the standard statement consistency level
:execution_profile (String or Symbol) default: :default_graph name of Graph::ExecutionProfile from which to obtain certain query options.
Returns:
Type Details
Cassandra::Future<Cassandra::Result>
See Also:

execute_graph

(statement, options = {})

Execute a graph statement synchronously.

Returns:
Type Details
Cassandra::Result a Cassandra result containing individual JSON results.
See Also: