keyspaces() публичный Метод

Returns all keyspaces defined in the schema.
public keyspaces ( ) : array
Результат array An array of `Cassandra\Keyspace` instances.
 /**
  * Schema metadata support can be disabled.
  *
  * This test will ensure that the PHP driver supports the ability to enable
  * and disable the schema metadata when creating a session object.
  *
  * @test
  * @ticket PHP-61
  */
 public function testDisableSchemaMetadata()
 {
     // Create a new session with schema metadata disabled
     $cluster = \Cassandra::cluster()->withContactPoints(Integration::IP_ADDRESS)->withSchemaMetadata(false)->build();
     $session = $cluster->connect();
     // Get the schema from the new session
     $schema = $session->schema();
     // Ensure the new session has no schema metadata
     $this->assertCount(0, $schema->keyspaces());
     $this->assertNotEquals($this->schema->keyspaces(), $schema->keyspaces());
 }