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
下列常量由此驅(qū)動(dòng)定義,且僅在擴(kuò)展編譯入 PHP
或在運(yùn)行時(shí)動(dòng)態(tài)載入時(shí)可用。另外,使用此驅(qū)動(dòng)時(shí),僅會(huì)使用這些驅(qū)動(dòng)特定的常量。使用其他驅(qū)動(dòng)的驅(qū)動(dòng)特定的常量可能會(huì)導(dǎo)致不可預(yù)見的情況。如果代碼可運(yùn)行于多個(gè)驅(qū)動(dòng),PDO::getAttribute()
可被用于獲取
PDO_ATTR_DRIVER_NAME
屬性以檢查驅(qū)動(dòng)。
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.
注意:
bytea
fields are returned as streams.