Class: atkPgsqlDDL
Source Location: /db/class.atkpgsqlddl.inc
Class atkPgsqlDDL
Method Summary
| An |
buildAlter() |
Build one or more ALTER TABLE queries and return them as an array of strings. |
| void |
getGenericType() |
Convert an database specific type to an ATK generic datatype. |
| void |
getType() |
Convert an ATK generic datatype to a database specific type. |
| bool |
needsSize() |
Method to determine whether a given generic field type needs to have a size defined. |
Methods
Build one or more ALTER TABLE queries and return them as an array of strings.
API Tags:
| Return: | array of ALTER TABLE queries. |
Redefinition of:
- atkDDL::buildAlter()
- Build one or more ALTER TABLE queries and return them as an array of strings.
void getGenericType(
string
$type
)
|
|
Convert an database specific type to an ATK generic datatype.
Parameters:
|
string |
$type: |
The database specific datatype to convert. |
Redefinition of:
- atkDDL::getGenericType()
- Convert an database specific type to an ATK generic datatype.
void getType(
string
$generictype
)
|
|
Convert an ATK generic datatype to a database specific type.
Parameters:
|
string |
$generictype: |
The datatype to convert. |
Redefinition of:
- atkDDL::getType()
- Convert an ATK generic datatype to a database specific type.
bool needsSize(
string
$generictype
)
|
|
Method to determine whether a given generic field type needs to have a size defined.
Parameters:
|
string |
$generictype: |
The type of field. |
API Tags:
| Return: | true if a size should be specified for the given field type. false if a size does not have to be specified. |
Redefinition of:
- atkDDL::needsSize()
- Method to determine whether a given generic field type needs to have a size defined.