class PostgresqlType extends DataType (View source)

The PostgresqlType 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

SERIAL

Properties

static array $typeDefinitions "Default Length", "Default Value", "PHP Type"

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
static boolean
noLength(string $type)

noLength

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

at line line 78
static boolean noLength(string $type)

noLength

Parameters

string $type

Return Value

boolean