Implements

Methods

Dse\Rows

execute

( mixed $statement, mixed $options )

Execute a query.

Parameters:
Name Type Details
$statement string|Dse\Statement

Execute a query.

$options array|Dse\ExecutionOptions

Execute a query.

Returns:
Type Details
Dse\Rows

Execute a query.

Dse\FutureRows

executeAsync

( mixed $statement, mixed $options )

Execute a query asynchronously. This method returns immediately, but the query continues execution in the background.

Parameters:
Name Type Details
$statement string|Dse\Statement

Execute a query asynchronously. This method returns immediately, but the query continues execution in the background.

$options array|Dse\ExecutionOptions

Execute a query asynchronously. This method returns immediately, but the query continues execution in the background.

Returns:
Type Details
Dse\FutureRows

Execute a query asynchronously. This method returns immediately, but the query continues execution in the background.

Dse\PreparedStatement

prepare

( string $cql, Dse\ExecutionOptions $options )

Prepare a query for execution.

Parameters:
Name Type Details
$cql string

Prepare a query for execution.

$options Dse\ExecutionOptions

Prepare a query for execution.

Returns:
Type Details
Dse\PreparedStatement

Prepare a query for execution.

Dse\FuturePreparedStatement

prepareAsync

( string $cql, Dse\ExecutionOptions $options )

Asynchronously prepare a query for execution.

Parameters:
Name Type Details
$cql string

Asynchronously prepare a query for execution.

$options Dse\ExecutionOptions

Asynchronously prepare a query for execution.

Returns:
Type Details
Dse\FuturePreparedStatement

Asynchronously prepare a query for execution.

null

close

( double $timeout )

Close the session and all its connections.

Parameters:
Name Type Details
$timeout double

Close the session and all its connections.

Returns:
Type Details
null

Close the session and all its connections.

Dse\FutureClose

closeAsync

( )

Asynchronously close the session and all its connections.

Returns:
Type Details
Dse\FutureClose

Asynchronously close the session and all its connections.

Dse\Schema

schema

( )

Get a snapshot of the cluster’s current schema.

Returns:
Type Details
Dse\Schema

Get a snapshot of the cluster’s current schema.

Graph\ResultSet

executeGraph

( mixed $statement, array $options )

Execute graph queries.

Parameters:
Name Type Details
$statement string|Graph\Statement

Execute graph queries.

$options array

Execute graph queries.

Returns:
Type Details
Graph\ResultSet

Execute graph queries.

Graph\FutureResultSet

executeGraphAsync

( mixed $statement, array $options )

Asynchronously execute a graph query.

Parameters:
Name Type Details
$statement string|Graph\Statement

Asynchronously execute a graph query.

$options array

Asynchronously execute a graph query.

Returns:
Type Details
Graph\FutureResultSet

Asynchronously execute a graph query.