Dutch PHP Conference 2025 - Call For Papers

PostgreSQL Functions (PDO_PGSQL)

Вступ

PDO_PGSQL is a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to PostgreSQL databases.

Типи ресурсів

This extension defines a stream resource returned by PDO::pgsqlLOBOpen().

Встановлення

Use --with-pdo-pgsql[=DIR] to install the PDO PostgreSQL extension, where the optional [=DIR] is the PostgreSQL base install directory, or the path to pg_config.

$ ./configure --with-pdo-pgsql

Попередньо визначені константи

Константи, описані нижче — визначені цим драйвером, тож доступні, коли розширення скомпільовано як частина PHP або динамічно підключене під час виконання. До того ж, ці спеціальні константи драйвера потрібно використовувати тільки для нього. Використання спеціальних атрибутів драйвера з іншим драйвером може спричинити неочікувану поведінку. Методом PDO::getAttribute() можна отримати атрибут PDO_ATTR_DRIVER_NAME, щоб перевірити сумісність коду для поточного драйвера з іншими драйверами.

PDO::PGSQL_ATTR_DISABLE_PREPARES (int)

Send the query and the parameters to the server together in a single call, avoiding the need to create a named prepared statement separately. If the query is only going to be executed once this can reduce latency by avoiding an unnecessary server round-trip.

General notes

Зауваження:

bytea fields are returned as streams.

Зміст

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top