DefaultKeyspace
final class DefaultKeyspace implements Keyspace (View source)
A PHP representation of a keyspace
Methods
Returns keyspace name
Returns replication class name
Returns replication options
Returns whether the keyspace has durable writes enabled
Returns all tables defined in this keyspace
Get all user types
Get materialized view by name
Gets all materialized views
Get all functions
Get all aggregates
Details
string
name()
Returns keyspace name
string
replicationClassName()
Returns replication class name
Map
replicationOptions()
Returns replication options
string
hasDurableWrites()
Returns whether the keyspace has durable writes enabled
Table|null
table(string $name)
Returns a table by name
array
tables()
Returns all tables defined in this keyspace
UserType|null
userType(string $name)
Get user type by name
array
userTypes()
Get all user types
MaterializedView|null
materializedView(string $name)
Get materialized view by name
array
materializedViews()
Gets all materialized views
array
functions()
Get all functions
Aggregate|null
aggregate(string $name, string|Type ...$params)
Get an aggregate by name and signature
array
aggregates()
Get all aggregates