interface Session
A session is used to prepare and execute statements.
Implemented by
Methods
Cassandra\Schema schema
( )Returns current schema.
NOTE: the returned Cassandra\Schema instance will not be updated as the actual schema changes, instead an updated instance should be requested by calling Session::schema() again.
Cassandra\Rows execute
(Cassandra\Statement $statement, Cassandra\ExecutionOptions $options = null )
Executes a given statement and returns a result.
Cassandra\Future executeAsync
(Cassandra\Statement $statement, Cassandra\ExecutionOptions $options = null )
Executes a given statement and returns a future result.
Note that this method ignores timeout specified in the Cassandra\ExecutionOptions, you can provide one to Future::get() instead.
Creates a prepared statement from a given CQL string.
Note that this method only uses the ExecutionOptions::$timeout option, all other options will be ignored.
Asynchronously prepares a statement and returns a future prepared statement.
Note that all options passed to this method will be ignored.
void close
(float $timeout = null )
Closes current session and all of its connections.
Cassandra\Future closeAsync
( )Asynchronously closes current session once all pending requests have finished.
