|
Doctrine 1.2.4
|
Inherits Doctrine_DataDict.
Public Member Functions | |
| getCharsetFieldDeclaration ($charset) | |
| getCollationFieldDeclaration ($collation) | |
| getConnection () | |
| getIntegerDeclaration ($name, $field) | |
| getModuleName () | |
| getNativeDeclaration ($field) | |
| getPortableDeclaration (array $field) | |
| parseBoolean ($value) | |
| Doctrine_DataDict_Mysql::getCharsetFieldDeclaration | ( | $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.
| string | $charset | name of the charset |
Definition at line 445 of file Mysql.php.
| Doctrine_DataDict_Mysql::getCollationFieldDeclaration | ( | $collation | ) |
Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE.
| string | $collation | name of the collation |
Definition at line 458 of file Mysql.php.
|
inherited |
getConnection returns the connection object this module uses
Definition at line 68 of file Module.php.
| Doctrine_DataDict_Mysql::getIntegerDeclaration | ( | $name, | |
| $field | |||
| ) |
Obtain DBMS specific SQL code portion needed to declare an integer type field to be used in statements like CREATE TABLE.
| string | $name | name the field to be declared. |
| string | $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: |
unsigned Boolean flag that indicates whether the field should be declared as unsigned integer if possible.
default Integer 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.
Definition at line 488 of file Mysql.php.
|
inherited |
getModuleName returns the name of this module
Definition at line 79 of file Module.php.
| Doctrine_DataDict_Mysql::getNativeDeclaration | ( | $field | ) |
Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
| 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.
Definition at line 134 of file Mysql.php.
| Doctrine_DataDict_Mysql::getPortableDeclaration | ( | array | $field | ) |
Maps a native array description of a field to a MDB2 datatype and length
| array | $field | native field description |
Definition at line 256 of file Mysql.php.
|
inherited |
parseBoolean parses a literal boolean value and returns proper sql equivalent
| string | $value | boolean value to be parsed |
Definition at line 44 of file DataDict.php.