The main entry point to the DataStax Enterprise PHP Driver.

Use Dse::cluster() to build a cluster instance. Use Dse::ssl() to build SSL options instance. Use Dse::graphOptions() to build a graph options instance.

Constants

CONSISTENCY_ANY

= 0

Consistency level ANY means the request is fulfilled as soon as the data has been written on the Coordinator. Requests with this consistency level are not guranteed to make it to Replica nodes.

See Also:

CONSISTENCY_ONE

= 1

Consistency level ONE guarantees that data has been written to at least one Replica node.

See Also:

CONSISTENCY_TWO

= 2

Consistency level TWO guarantees that data has been written to at least two Replica nodes.

See Also:

CONSISTENCY_THREE

= 3

Consistency level THREE guarantees that data has been written to at least three Replica nodes.

See Also:

CONSISTENCY_QUORUM

= 4

Consistency level QUORUM guarantees that data has been written to at least the majority of Replica nodes. How many nodes exactly are a majority depends on the replication factor of a given keyspace and is calculated using the formula ceil(RF / 2 + 1), where ceil is a mathematical ceiling function and RF is the replication factor used. For example, for a replication factor of 5, the majority is ceil(5 / 2 + 1) = 3.

See Also:

CONSISTENCY_ALL

= 5

Consistency level ALL guarantees that data has been written to all Replica nodes.

See Also:

CONSISTENCY_LOCAL_QUORUM

= 6

Same as CONSISTENCY_QUORUM, but confined to the local data center. This consistency level works only with NetworkTopologyStrategy replication.

See Also:

CONSISTENCY_EACH_QUORUM

= 7

Consistency level EACH_QUORUM guarantees that data has been written to at least a majority Replica nodes in all datacenters. This consistency level works only with NetworkTopologyStrategy replication.

See Also:

CONSISTENCY_SERIAL

= 8

This is a serial consistency level, it is used in conditional updates, e.g. (CREATE|INSERT ... IF NOT EXISTS), and should be specified as the serial_consistency execution option when invoking session.execute or session.execute_async.

Consistency level SERIAL, when set, ensures that a Paxos commit fails if any of the replicas is down.

See Also:

CONSISTENCY_LOCAL_SERIAL

= 9

Same as CONSISTENCY_SERIAL, but confined to the local data center. This consistency level works only with NetworkTopologyStrategy replication.

See Also:

CONSISTENCY_LOCAL_ONE

= 10

Same as CONSISTENCY_ONE, but confined to the local data center. This consistency level works only with NetworkTopologyStrategy replication.

See Also:

VERIFY_NONE

= 0

Perform no verification of nodes when using SSL encryption.

See Also:

VERIFY_PEER_CERT

= 1

Verify presence and validity of SSL certificates.

See Also:

VERIFY_PEER_IDENTITY

= 2

Verify that the IP address matches the SSL certificate’s common name or one of its subject alternative names. This implies the certificate is also present.

See Also:

BATCH_LOGGED

= 0

BATCH_UNLOGGED

= 1

BATCH_COUNTER

= 2

LOG_DISABLED

= 0

Used to disable logging.

LOG_CRITICAL

= 1

Allow critical level logging.

LOG_ERROR

= 2

Allow error level logging.

LOG_WARN

= 3

Allow warning level logging.

LOG_INFO

= 4

Allow info level logging.

LOG_DEBUG

= 5

Allow debug level logging.

LOG_TRACE

= 6

Allow trace level logging.

TYPE_TEXT

= ‘text’

When using a map, collection or set of type text, all of its elements must be strings.

See Also:

TYPE_ASCII

= ‘ascii’

When using a map, collection or set of type ascii, all of its elements must be strings.

See Also:

TYPE_VARCHAR

= ‘varchar’

When using a map, collection or set of type varchar, all of its elements must be strings.

See Also:

TYPE_BIGINT

= ‘bigint’

When using a map, collection or set of type bigint, all of its elements must be instances of Dse\Bigint.

See Also:

TYPE_SMALLINT

= ‘smallint’

When using a map, collection or set of type smallint, all of its elements must be instances of Dse\Inet.

See Also:

TYPE_TINYINT

= ‘tinyint’

When using a map, collection or set of type tinyint, all of its elements must be instances of Dse\Inet.

See Also:

TYPE_BLOB

= ‘blob’

When using a map, collection or set of type blob, all of its elements must be instances of Dse\Blob.

See Also:

TYPE_BOOLEAN

= ‘boolean’

When using a map, collection or set of type bool, all of its elements must be boolean.

See Also:

TYPE_COUNTER

= ‘counter’

When using a map, collection or set of type counter, all of its elements must be instances of Dse\Bigint.

See Also:

TYPE_DECIMAL

= ‘decimal’

When using a map, collection or set of type decimal, all of its elements must be instances of Dse\Decimal.

See Also:

TYPE_DOUBLE

= ‘double’

When using a map, collection or set of type double, all of its elements must be doubles.

See Also:

TYPE_FLOAT

= ‘float’

When using a map, collection or set of type float, all of its elements must be instances of Dse\Float.

See Also:

TYPE_INT

= ‘int’

When using a map, collection or set of type int, all of its elements must be ints.

See Also:

TYPE_TIMESTAMP

= ‘timestamp’

When using a map, collection or set of type timestamp, all of its elements must be instances of Dse\Timestamp.

See Also:

TYPE_UUID

= ‘uuid’

When using a map, collection or set of type uuid, all of its elements must be instances of Dse\Uuid.

See Also:

TYPE_VARINT

= ‘varint’

When using a map, collection or set of type varint, all of its elements must be instances of Dse\Varint.

See Also:

TYPE_TIMEUUID

= ‘timeuuid’

When using a map, collection or set of type timeuuid, all of its elements must be instances of Dse\Timeuuid.

See Also:

TYPE_INET

= ‘inet’

When using a map, collection or set of type inet, all of its elements must be instances of Dse\Inet.

See Also:

VERSION

= ‘1.0.0’

The current version of the extension.

CPP_DRIVER_VERSION

= ‘2.6.0-dev’

The version of the cpp-driver library used to build the cpp-dse-driver driver library.

CPP_DRIVER_DSE_VERSION

= ‘1.2.0’

The version of the cpp-dse-driver library used to build the php-dse-driver extension.

Methods

static Cluster\Builder

cluster

( )

Creates a new cluster builder for constructing a Dse\Cluster object.

Static
This method is static
Returns:
Type Details
Cluster\Builder

A cluster builder object with default settings

static SSLOptions\Builder

ssl

( )

Creates a new ssl builder for constructing a Dse\SSLOptions object.

Static
This method is static
Returns:
Type Details
SSLOptions\Builder

A SSL options builder with default settings

static Graph\Options

graphOptions

( )

Creates a new graph options builder for constructing a Graph\Options object.

Static
This method is static
Returns:
Type Details
Graph\Options

A graph options builder with default settings