class MsSqlDriver extends Object implements ISupplementalDriver

Supplemental MS SQL database driver.

Methods

string
delimite($name)

Delimites identifier for use in a SQL statement.

mixed
formatBool($value)

Formats boolean for use in a SQL statement.

string
formatDateTime($value)

Formats date-time for use in a SQL statement.

formatDateInterval(DateInterval $value)

Formats date-time interval for use in a SQL statement.

string
formatLike($value, $pos)

Encodes string for use in a LIKE statement.

void
applyLimit($sql, $limit, $offset)

Injects LIMIT/OFFSET to the SQL query.

array
normalizeRow($row)

Normalizes result row.

array
getTables()

Returns list of tables.

array
getColumns($table)

Returns metadata for all columns in a table.

array
getIndexes($table)

Returns metadata for all indexes in a table.

array
getForeignKeys($table)

Returns metadata for all foreign keys in a table.

array
getColumnTypes(PDOStatement $statement)

Returns associative array of detected types (IReflection::FIELD_*) in result set.

bool
isSupported($item)

No description

Details

at line 19
DriverException convertException(PDOException $e)

No description

Parameters

PDOException $e

Return Value

DriverException

at line 31
string delimite($name)

Delimites identifier for use in a SQL statement.

Parameters

$name

Return Value

string

at line 41
mixed formatBool($value)

Formats boolean for use in a SQL statement.

Parameters

$value

Return Value

mixed

at line 50
string formatDateTime($value)

Formats date-time for use in a SQL statement.

Parameters

$value

Return Value

string

at line 59
formatDateInterval(DateInterval $value)

Formats date-time interval for use in a SQL statement.

Parameters

DateInterval $value

at line 68
string formatLike($value, $pos)

Encodes string for use in a LIKE statement.

Parameters

$value
$pos

Return Value

string

at line 78
void applyLimit($sql, $limit, $offset)

Injects LIMIT/OFFSET to the SQL query.

Parameters

$sql
$limit
$offset

Return Value

void

at line 98
array normalizeRow($row)

Normalizes result row.

Parameters

$row

Return Value

array

at line 110
array getTables()

Returns list of tables.

Return Value

array

of [name [, (bool) view]]

at line 119
array getColumns($table)

Returns metadata for all columns in a table.

Parameters

$table

Return Value

array

of [name, nativetype, primary [, table, fullname, (int) size, (bool) nullable, (mixed) default, (bool) autoincrement, (array) vendor]]

at line 128
array getIndexes($table)

Returns metadata for all indexes in a table.

Parameters

$table

Return Value

array

of [name, (array of names) columns [, (bool) unique, (bool) primary]]

at line 137
array getForeignKeys($table)

Returns metadata for all foreign keys in a table.

Parameters

$table

Return Value

array

at line 146
array getColumnTypes(PDOStatement $statement)

Returns associative array of detected types (IReflection::FIELD_*) in result set.

Parameters

PDOStatement $statement

Return Value

array

at line 156
bool isSupported($item)

No description

Parameters

$item

Return Value

bool