class Doctrine_DataDict_Mssql extends Doctrine_DataDict (View source)

Properties

protected Doctrine_Connection $conn from Doctrine_Connection_Module
protected string $moduleName from Doctrine_Connection_Module

Methods

__construct(Doctrine_Connection $conn = null)

No description

getConnection()

getConnection returns the connection object this module uses

string
getModuleName()

getModuleName returns the name of this module

string
parseBoolean(string $value)

parseBoolean parses a literal boolean value and returns proper sql equivalent

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.

array
getPortableDeclaration(array $field)

Maps a native array description of a field to a MDB2 datatype and length

string
getIntegerDeclaration(string $name, string $field)

Obtain DBMS specific SQL code portion needed to declare an integer type field to be used in statements like CREATE TABLE.

Details

__construct(Doctrine_Connection $conn = null)

Parameters

Doctrine_Connection $conn Doctrine_Connection object, every connection module holds an instance of Doctrine_Connection

Doctrine_Connection getConnection()

getConnection returns the connection object this module uses

Return Value

Doctrine_Connection

string getModuleName()

getModuleName returns the name of this module

Return Value

string the name of this module

string parseBoolean(string $value)

parseBoolean parses a literal boolean value and returns proper sql equivalent

Parameters

string $value boolean value to be parsed

Return Value

string parsed boolean value

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.

Return Value

string DBMS specific SQL code portion that should be used to declare the specified field.

array getPortableDeclaration(array $field)

Maps a native array description of a field to a MDB2 datatype and length

Parameters

array $field native field description

Return Value

array containing the various possible types, length, sign, fixed

string getIntegerDeclaration(string $name, string $field)

Obtain DBMS specific SQL code portion needed to declare an integer type field to be used in statements like CREATE TABLE.

Parameters

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.

Return Value

string DBMS specific SQL code portion that should be used to declare the specified field.