final class DefaultSchema implements Schema (View source)

A PHP representation of a schema

Methods

keyspace(string $name)

Returns a Keyspace instance by name.

array
keyspaces()

Returns all keyspaces defined in the schema.

int
version()

Get the version of the schema snapshot

Details

Keyspace keyspace(string $name)

Returns a Keyspace instance by name.

Parameters

string $name

Name of the keyspace to get

Return Value

Keyspace

Keyspace instance or null

array keyspaces()

Returns all keyspaces defined in the schema.

Return Value

array

An array of Keyspace instances.

int version()

Get the version of the schema snapshot

Return Value

int

Version of the schema.