Class describing a Postgres database schema.
Located in /pg-schema-defs.php (line 973)
SchemaObject | --schema | --DB_schema
Inherited from schema
schema::$constraints
schema::$database_server
schema::$database_version
schema::$functions
schema::$indexes
schema::$sequences
schema::$tables
schema::$triggers
Inherited from SchemaObject
SchemaObject::$name
SchemaObject::$schema
Create a schema (database) of given name & type. The name should be a valid existing database name that is currently connected.
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.
Populates our array of functions with all user functions in this schema.
Acquire the schema details of a specific Postgres 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.
Populates our array of sequences with all user sequences in this schema.
Populates our array of tables with all tables in this schema.
Populates our array of triggers with all user triggers in this schema.
Acquire the Postgres database version. We make some gross assumptions here with regard to standard local Postgres setup. Change as necessary.
Currently we have a shot at either the Debian standard location which is '/usr/lib/postgresql', or the 'other' standard of '/usr/bin'. To-do: acquire Postgres binaries location in a more robust way.
Inherited From schema
schema::schema()
schema::addconstraint()
schema::addfunction()
schema::addsequence()
schema::addtable()
schema::addtrigger()
schema::capable_of()
schema::constraint_exists()
schema::diff()
schema::dump()
schema::getconstraint()
schema::getfunction()
schema::getindex()
schema::getschema()
schema::getschema_table()
schema::getsequence()
schema::getsequences()
schema::gettable()
schema::gettables()
schema::gettrigger()
schema::gettriggers()
schema::getversion()
schema::index_exists()
schema::set_dbversion()
Inherited From SchemaObject
SchemaObject::SchemaObject()
Documentation generated by phpDocumentor 1.3.0RC3