Class describing a database field of a table.
Located in /schema-defs.php (line 571)
SchemaObject | --dbfield
Class | Description |
---|---|
![]() |
Class describing a database field of a Postgres table. |
Inherited from SchemaObject
SchemaObject::$name
SchemaObject::$schema
Return true if field constraints match those passed in.
Return SQL to create this field in a table. This represents a portion of the CREATE TABLE script pertaining to this field and it comprises field name, type, and constraints.
Return SQL to create all constraints for this field..
Dump field description to stdout.
Return the generic type of the field. The generic types are as
follows: text Fixed or varying length strings numeric Integers, real numbers or money datetime Times, dates date-times logical Boolean or bit field (true/false)
You should override this method to return the appropriate generic field types from this list, for your database type. NB: Override this function to get schema info per DB type.
Return true if the field is of an integer class.
NB: Override this function to get schema info per DB type.
Return true if the field is of a 'serial' class. This is a pseudo class of types which encapsulates integer fields which are able to auto-increment themselves when records are inserted.
NB: Override this function to get schema info per DB type.
Inherited From SchemaObject
SchemaObject::SchemaObject()
Documentation generated by phpDocumentor 1.3.0RC3