PHP Class evseevnn\Cassandra\Database

Afficher le fichier Open project: evseevnn/php-cassandra-binary Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( array $nodes, string $keyspace = '', array $options = [] )
applyBatch ( $consistency = ConsistencyEnum::CONSISTENCY_QUORUM ) Exec transaction
beginBatch ( ) Start transaction
beginCounterBatch ( ) Start counter transaction
beginUnloggedBatch ( ) Start unlogged transaction
connect ( ) : boolean Connect to database
disconnect ( ) : boolean Disconnect to database
query ( string $cql, array $values = [], integer $consistency = ConsistencyEnum::CONSISTENCY_QUORUM ) : array | null Send query into database
setKeyspace ( string $keyspace )

Private Methods

Méthode Description
appendQueryToStack ( string $cql, array $values )

Method Details

__construct() public méthode

public __construct ( array $nodes, string $keyspace = '', array $options = [] )
$nodes array
$keyspace string
$options array

applyBatch() public méthode

Exec transaction
public applyBatch ( $consistency = ConsistencyEnum::CONSISTENCY_QUORUM )

beginBatch() public méthode

Start transaction
public beginBatch ( )

beginCounterBatch() public méthode

Start counter transaction
public beginCounterBatch ( )

beginUnloggedBatch() public méthode

Start unlogged transaction
public beginUnloggedBatch ( )

connect() public méthode

Connect to database
public connect ( ) : boolean
Résultat boolean

disconnect() public méthode

Disconnect to database
public disconnect ( ) : boolean
Résultat boolean

query() public méthode

Send query into database
public query ( string $cql, array $values = [], integer $consistency = ConsistencyEnum::CONSISTENCY_QUORUM ) : array | null
$cql string
$values array
$consistency integer
Résultat array | null

setKeyspace() public méthode

public setKeyspace ( string $keyspace )
$keyspace string