Schema
class Schema implements DatabaseObject (View source)
Class Schema
Properties
$name |
Methods
Create a collection within the schema.
Drop collection from schema
Check if exists in database Checks if the current object (schema, table, collection, or view) exists in the schema object.
Get a collection from the schema.
Get a collection, but as a Table object instead of a Collection object.
Fetch a list of collections for this schema.
Get the name of the schema.
Get a new Session object from the Schema object.
Get schema tables
Details
Collection
createCollection(string $name)
Create a collection within the schema.
bool
dropCollection(string $collection_name)
Drop collection from schema
bool
existsInDatabase()
Check if exists in database Checks if the current object (schema, table, collection, or view) exists in the schema object.
Collection
getCollection(string $name)
Get a collection from the schema.
Table
getCollectionAsTable(string $name)
Get a collection, but as a Table object instead of a Collection object.
array
getCollections()
Fetch a list of collections for this schema.
string
getName()
Get the name of the schema.
Session
getSession()
Get a new Session object from the Schema object.
Table
getTable(string $name)
Fetch a Table object for the provided table in the schema.
array
getTables()
Get schema tables