PHP Interface Cassandra\Keyspace

Show file Open project: datastax/php-driver

Public Methods

Method Description
hasDurableWrites ( ) : string Returns whether the keyspace has durable writes enabled
name ( ) : string Returns keyspace name
replicationClassName ( ) : string Returns replication class name
replicationOptions ( ) : Cassandra\Map Returns replication options
table ( string $name ) : Cassandra\Table | null Returns a table by name
tables ( ) : array Returns all tables defined in this keyspace

Method Details

hasDurableWrites() public method

Returns whether the keyspace has durable writes enabled
public hasDurableWrites ( ) : string
return string Whether durable writes are enabled

name() public method

Returns keyspace name
public name ( ) : string
return string Name

replicationClassName() public method

Returns replication class name
public replicationClassName ( ) : string
return string Replication class

replicationOptions() public method

Returns replication options
public replicationOptions ( ) : Cassandra\Map
return Cassandra\Map Replication options

table() public method

Returns a table by name
public table ( string $name ) : Cassandra\Table | null
$name string Table name
return Cassandra\Table | null Table instance or null

tables() public method

Returns all tables defined in this keyspace
public tables ( ) : array
return array An array of `Cassandra\Table` instances