class Dse
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.
CONSISTENCY_ONE
= 1
Consistency level ONE guarantees that data has been written to at least one Replica node.
CONSISTENCY_TWO
= 2
Consistency level TWO guarantees that data has been written to at least two Replica nodes.
CONSISTENCY_THREE
= 3
Consistency level THREE guarantees that data has been written to at least three Replica nodes.
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
.
CONSISTENCY_ALL
= 5
Consistency level ALL guarantees that data has been written to all Replica nodes.
CONSISTENCY_LOCAL_QUORUM
= 6
Same as CONSISTENCY_QUORUM
, but confined to the local data center. This consistency level works only with NetworkTopologyStrategy
replication.
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.
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
option of the Dse\ExecutionOptions
instance.
Consistency level SERIAL, when set, ensures that a Paxos commit fails if any of the replicas is down.
CONSISTENCY_LOCAL_SERIAL
= 9
Same as CONSISTENCY_SERIAL
, but confined to the local data center. This consistency level works only with NetworkTopologyStrategy
replication.
CONSISTENCY_LOCAL_ONE
= 10
Same as CONSISTENCY_ONE
, but confined to the local data center. This consistency level works only with NetworkTopologyStrategy
replication.
VERIFY_NONE
= 0
Perform no verification of nodes when using SSL encryption.
VERIFY_PEER_CERT
= 1
Verify presence and validity of SSL certificates.
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.
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.
TYPE_ASCII
= ‘ascii’
When using a map, collection or set of type ascii, all of its elements must be strings.
TYPE_VARCHAR
= ‘varchar’
When using a map, collection or set of type varchar, all of its elements must be strings.
TYPE_BIGINT
= ‘bigint’
When using a map, collection or set of type bigint, all of its elements must be instances of Dse\Bigint
.
TYPE_SMALLINT
= ‘smallint’
When using a map, collection or set of type smallint, all of its elements must be instances of Dse\Inet
.
TYPE_TINYINT
= ‘tinyint’
When using a map, collection or set of type tinyint, all of its elements must be instances of Dse\Inet
.
TYPE_BLOB
= ‘blob’
When using a map, collection or set of type blob, all of its elements must be instances of Dse\Blob
.
TYPE_BOOLEAN
= ‘boolean’
When using a map, collection or set of type bool, all of its elements must be boolean.
TYPE_COUNTER
= ‘counter’
When using a map, collection or set of type counter, all of its elements must be instances of Dse\Bigint
.
TYPE_DECIMAL
= ‘decimal’
When using a map, collection or set of type decimal, all of its elements must be instances of Dse\Decimal
.
TYPE_DOUBLE
= ‘double’
When using a map, collection or set of type double, all of its elements must be doubles.
TYPE_FLOAT
= ‘float’
When using a map, collection or set of type float, all of its elements must be instances of Float.
TYPE_INT
= ‘int’
When using a map, collection or set of type int, all of its elements must be ints.
TYPE_TIMESTAMP
= ‘timestamp’
When using a map, collection or set of type timestamp, all of its elements must be instances of Dse\Timestamp
.
TYPE_UUID
= ‘uuid’
When using a map, collection or set of type uuid, all of its elements must be instances of Dse\Uuid
.
TYPE_VARINT
= ‘varint’
When using a map, collection or set of type varint, all of its elements must be instances of Dse\Varint
.
TYPE_TIMEUUID
= ‘timeuuid’
When using a map, collection or set of type timeuuid, all of its elements must be instances of Dse\Timeuuid
.
TYPE_INET
= ‘inet’
When using a map, collection or set of type inet, all of its elements must be instances of Dse\Inet
.
VERSION
= ‘1.0.0’
The current version of the extension.
CPP_DRIVER_VERSION
= ‘2.5.0’
The version of the cpp-driver library used to build the cpp-driver-dse driver library.
CPP_DRIVER_DSE_VERSION
= ‘1.1.0’
The version of the cpp-driver-dse library used to build the php-driver-dse extension.
Methods
Cluster\Builder
cluster
( )Creates a new cluster builder for constructing a Dse\Cluster
object.
- Static
- This method is static
SSLOptions\Builder
ssl
( )Creates a new ssl builder for constructing a Dse\SSLOptions
object.
- Static
- This method is static
Graph\Options
graphOptions
( )Creates a new graph options builder for constructing a Graph\Options
object.
- Static
- This method is static