interface 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.

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.