Class describing a database schema. This object hold ALL the information
for the named database including tables, constraints, functions, triggers and sequences. Methods are provided, however to allow you to obtain the information for an individual table (@see getschema_table()), rather than having to read in the whole schema. For all other info, you must use the getschema() method to read all information in, then access it via the arrays and methods provided.
Located in /schema-defs.php (line 915)
SchemaObject | --schema
Class | Description |
---|---|
![]() |
Class describing a Postgres database schema. |
Inherited from SchemaObject
SchemaObject::$name
SchemaObject::$schema
Create a schema (database) of given name. The name should be a valid existing database name that is currently connected. It will be selected to ensure the correct data is obtained.
Add a constraint to the schema information.
Add a function to the schema information.
Add a sequence to the schema information.
Return database capabilities. There are specific capabilities which the diff code needs to query, and this method should be overridden in the specific database module to answer those questions.
Returns true if named constraint exists.
Produce the SQL required to morph the schema described in the passed dbschema object $db, into the schema we have in this current object.
The resulting SQL is commented. This virtual function is database specific.
Acquire all of the schema details.
Override this method for your specific database type.
Acquire the schema details of a specific database table. This method is provided to cater for the common requirement of acquiring details for a specific table, without having to endure the overhead of reading all of the database schema metadata to get it.
Override this method for your specific database type.
Populates schema sequences.
Override this method for your specific database type.
Populates schema tables.
Override this method for your specific database type.
Populates schema triggers.
Override this method for your specific database type.
Acquire the database version.
Override this method for your specific database type.
Inherited From SchemaObject
SchemaObject::SchemaObject()
Documentation generated by phpDocumentor 1.3.0RC3