Methods summary
public
|
|
public
DriverException
|
#
convertException( PDOException $e )
Converts PDOException to DriverException or its descendant.
Converts PDOException to DriverException or its descendant.
Returns
DriverException DriverException
Implementation of
|
public
string
|
#
delimite( string $name )
Delimites identifier for use in a SQL statement.
Delimites identifier for use in a SQL statement.
Parameters
Returns
string string
Implementation of
|
public
string
|
#
formatBool( boolean $value )
Formats boolean for use in a SQL statement.
Formats boolean for use in a SQL statement.
Parameters
Returns
string string
Implementation of
|
public
string
|
#
formatDateTime( $value )
Formats date-time for use in a SQL statement.
Formats date-time for use in a SQL statement.
Returns
string string
Implementation of
|
public
|
|
public
string
|
#
formatLike( string $value, integer $pos )
Encodes string for use in a LIKE statement.
Encodes string for use in a LIKE statement.
Parameters
Returns
string string
Implementation of
|
public
|
#
applyLimit( string & $sql, integer|null $limit, integer|null $offset )
Injects LIMIT/OFFSET to the SQL query.
Injects LIMIT/OFFSET to the SQL query.
Parameters
- $sql
- query that will be modified.
- $limit
- $offset
Implementation of
|
public
array
|
#
normalizeRow( array $row )
Normalizes result row.
Parameters
Returns
array array
Implementation of
|
public
array
|
#
getTables( )
Returns list of tables.
Returns
array of tuples [(string) name, (bool) view, [(string) fullName]]
Implementation of
|
public
array
|
#
getColumns( string $table )
Returns metadata for all columns in a table.
Returns metadata for all columns in a table.
Parameters
Returns
array of tuples [(string) name, (string) table, (string) nativetype, (int) size,
(bool) nullable, (mixed) default, (bool) autoincrement, (bool) primary, (array)
vendor]]
Implementation of
|
public
array
|
#
getIndexes( string $table )
Returns metadata for all indexes in a table.
Returns metadata for all indexes in a table.
Parameters
Returns
array of tuples [(string) name, (string[]) columns, (bool) unique, (bool) primary]
Implementation of
|
public
array
|
#
getForeignKeys( string $table )
Returns metadata for all foreign keys in a table.
Returns metadata for all foreign keys in a table.
Parameters
Returns
array of tuples [(string) name, (string) local, (string) table, (string) foreign]
Implementation of
|
public
array
|
#
getColumnTypes( PDOStatement $statement )
Returns associative array of detected types (IStructure::FIELD_*) in result
set.
Returns associative array of detected types (IStructure::FIELD_*) in result
set.
Parameters
Returns
array array
Implementation of
|
public
boolean
|
#
isSupported( string $item )
Cheks if driver supports specific property
Cheks if driver supports specific property
Parameters
Returns
boolean bool
Implementation of
|