string getCharsetFieldDeclaration(
string
$charset
)
|
|
Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE.
Parameters:
string |
$charset: |
name of the charset |
API Tags:
Return: | DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration. |
Access: | public |
string getCollationFieldDeclaration(
string
$collation
)
|
|
Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE.
Parameters:
string |
$collation: |
name of the collation |
API Tags:
Return: | DBMS specific SQL code portion needed to set the COLLATION of a field declaration. |
Access: | public |
string getNativeDeclaration(
array
$field
)
|
|
Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
Parameters:
array |
$field: |
associative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows: length Integer value that determines the maximum length of the text field. If this argument is missing the field should be declared to have the longest length allowed by the DBMS. default Text value to be used as default for this field. notnull Boolean flag that indicates whether this field is constrained to not be set to null. |
API Tags:
Return: | DBMS specific SQL code portion that should be used to declare the specified field. |
Access: | public |
array getPortableDeclaration(
array
$field
)
|
|
Maps a native array description of a field to a Doctrine datatype and length
Parameters:
array |
$field: |
native field description |
API Tags:
Return: | containing the various possible types, length, sign, fixed |
Access: | public |