Class describing a Postgres database table. Inherits the standard dbtable class properties and methods, but adds in the getschema specifics for acquiring Postgres table info from the metadata, and provides a specific create() method.
Located in /pg-schema-defs.php (line 509)
SchemaObject | --dbtable | --DB_dbtable
Inherited from dbtable
dbtable::$constraints
dbtable::$fields
dbtable::$indexes
dbtable::$pkey
Inherited from SchemaObject
SchemaObject::$name
SchemaObject::$schema
Construct a table of given name and array of primary key fields.
Return SQL which will create a column in this table. The $column passed in is actually a field object.
Return the SQL which will create this Postgres table.
NB: We also create the indexes and constraints which pertain to this table at the same time.
Return the SQL which will create the constraints on this table.
Usually this SQL has to come after all table creates have been done, so that references to tables are all honoured, hence a separate method here.
Return the SQL which will create the indexes on this table.
Acquires the table fields and constraints which apply to it.
NB: This function is apt for Postgres. Over-ride for other db types
Create a new field in the table with given parameters.
Return SQL to set the NULL/NOT NULL constraint..
Inherited From dbtable
dbtable::dbtable()
dbtable::addcolumn()
dbtable::addfield()
dbtable::create()
dbtable::drop()
dbtable::dropcolumn()
dbtable::dump()
dbtable::getfield()
dbtable::getfieldbynum()
dbtable::getfieldnum()
dbtable::getkeyfieldnames()
dbtable::getlabelfield()
dbtable::getnonkeyfieldnames()
dbtable::getschema()
dbtable::newfield()
dbtable::setdefault()
dbtable::setnullconstraint()
Inherited From SchemaObject
SchemaObject::SchemaObject()
Documentation generated by phpDocumentor 1.3.0RC3