DataType
class DataType (View source)
The ColumnType class.
The types data were referenced from: https://docs.google.com/document/d/168GnMgXb8afOby1n9iLQXzu-PWujs-HxTv5YbEvmu-4/edit
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 |
|
Properties
static array | $typeDefinitions | "Default Length", "Default Value", "PHP Type" |
Methods
static DataType
getInstance(string $driver)
getInstance
static integer
getLength(string $type)
getLength
static string
getDefaultValue(string $type)
getDefaultValue
static string
getPhpType(string $type)
getPhpType
static string
getType(string $type)
getType