interface Session
A session is used to prepare and execute statements.
Implemented by
Methods
Execute a query.
Available execution options:
Option Name | Option Type | Option Details |
---|---|---|
arguments | array | An array or positional or named arguments |
consistency | int | A consistency constant e.g Dse::CONSISTENCY_ONE, Dse::CONSISTENCY_QUORUM, etc. |
timeout | int | A number of rows to include in result for paging |
paging_state_token | string | A string token use to resume from the state of a previous result set |
retry_policy |
Cassandra\RetryPolicy
|
A retry policy that is used to handle server-side failures for this request |
serial_consistency | int | Either Dse::CONSISTENCY_SERIAL or Dse::CONSISTENCY_LOCAL_SERIAL |
timestamp | int|string | Either an integer or integer string timestamp that represents the number of microseconds since the epoch |
execute_as | string | User to execute statement as |
Execute a query asynchronously. This method returns immediately, but the query continues execution in the background.
Prepare a query for execution.
Asynchronously prepare a query for execution.
null
close
(double
$timeout )
Close the session and all its connections.
Cassandra\FutureClose
closeAsync
( )Asynchronously close the session and all its connections.
array
metrics
( )Get performance and diagnostic metrics.
Cassandra\Schema
schema
( )Get a snapshot of the cluster’s current schema.