class MysqlType extends DataType (View source)

The MysqlType class.

Constants

BOOLEAN

CHAR

VARCHAR

BIT

BIT_VARYING

INTEGER

SMALLINT

DECIMAL

NUMERIC

FLOAT

REAL

DOUBLE

DATE

TIME

TIMESTAMP

INTERVAL

CHARACTER

LARGE

OBJECT_BINARY

LARGE_OBJECT

TEXT

LONGTEXT

TINYINT

DATETIME

ENUM

SET

Properties

static array $typeDefinitions "Length", "Default", "PHP Type"
static array $defaultLengths Property types.

Methods

static DataType
getInstance(string $driver)

getInstance

from DataType
static integer
getLength(string $type)

getLength

from DataType
static string
getDefaultValue(string $type)

getDefaultValue

from DataType
static string
getPhpType(string $type)

getPhpType

from DataType
static string
getType(string $type)

getType

from DataType

Details

in DataType at line line 116
static DataType getInstance(string $driver)

getInstance

Parameters

string $driver

Return Value

DataType

in DataType at line line 137
static integer getLength(string $type)

getLength

Parameters

string $type

Return Value

integer

in DataType at line line 149
static string getDefaultValue(string $type)

getDefaultValue

Parameters

string $type

Return Value

string

in DataType at line line 161
static string getPhpType(string $type)

getPhpType

Parameters

string $type

Return Value

string

in DataType at line line 198
static string getType(string $type)

getType

Parameters

string $type

Return Value

string