PgSqlDriver
class PgSqlDriver implements Driver
Supplemental PostgreSQL database driver.
Methods
Checks if the engine supports a specific feature.
Adds delimiters around database identifier.
Encodes string for use in a LIKE statement.
Applies LIMIT and OFFSET clauses to an SQL query.
Returns a list of all tables in the database.
Returns metadata for all columns in a table.
Returns metadata for all indexes in a table.
Returns metadata for all foreign keys in a table.
Returns associative array of detected types (IStructure::FIELD_*) in result set.
Details
at line 23
void
initialize(Connection $connection, array $options)
Initializes connection.
at line 29
bool
isSupported(string $feature)
Checks if the engine supports a specific feature.
at line 35
DriverException
convertException(PDOException $e)
Converts PDOException to DriverException or its descendant.
at line 62
string
delimite(string $name)
Adds delimiters around database identifier.
at line 69
string
formatDateTime(DateTimeInterface $value)
Formats a date-time value for use in an SQL statement.
at line 75
string
formatDateInterval(DateInterval $value)
Formats a date-time interval for use in an SQL statement.
at line 81
string
formatLike(string $value, int $pos)
Encodes string for use in a LIKE statement.
at line 90
void
applyLimit(string $sql, int|null $limit, int|null $offset)
Applies LIMIT and OFFSET clauses to an SQL query.
at line 109
array
getTables()
Returns a list of all tables in the database.
at line 137
array
getColumns(string $table)
Returns metadata for all columns in a table.
at line 186
array
getIndexes(string $table)
Returns metadata for all indexes in a table.
at line 217
array
getForeignKeys(string $table)
Returns metadata for all foreign keys in a table.
at line 247
array
getColumnTypes(PDOStatement $statement)
Returns associative array of detected types (IStructure::FIELD_*) in result set.