A PHP representation of a schema

Implements

Methods

Cassandra\Keyspace

keyspace

( string $name )

Returns a Cassandra\Keyspace instance by name.

Parameters:
Name Type Details
$name string

Name of the keyspace to get

Returns:
Type Details
Cassandra\Keyspace

Cassandra\Keyspace instance or null

array

keyspaces

( )

Returns all keyspaces defined in the schema.

Returns:
Type Details
array

An array of Keyspace instances.

int

version

( )

Get the version of the schema snapshot

Returns:
Type Details
int

Version of the schema.