Class | Description |
---|---|
![]() |
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. |
Array of constraints on this table
Array of field objects
Array of indexes on this table
Array of field attnum's which are primary keys in table
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 table.
Return SQL to drop a column from the table. The $column passed is actually a field object.
Returns field object of given attnum (order number)
Returns a candidate label field name according to some fairly simple heuristics. This would be a field suitable for displaying in a listbox which is somewhat more informative than a keyfield. If nothing is found then the key is used as fallback.
Returns list of names of non-keyfields as array
Acquires the schema from database metadata.
NB: Override this function to get schema info per DB type.
Create a new field in the table with given parameters.
Return SQL to set the default for given field on this table.
Return SQL to set the NULL/NOT NULL constraint..
Inherited From SchemaObject
SchemaObject::SchemaObject()
Documentation generated by phpDocumentor 1.3.0RC3