The Pdo\Pgsql class
(PHP 8 >= 8.4.0)
简介
A PDO subclass representing a connection using the PostgreSQL PDO driver.
This driver supports a dedicated SQL query parser for the PostgreSQL dialect. It can handle the following:
- Single and double-quoted literals, with doubling as escaping mechanism
- C-style “escape” string literals
- Dollar-quoted string literals
- Two-dashes and C-style comments (non-nested).
-
Support for
??
as escape sequence for the?
operator.
类摘要
/* 继承的常量 */
/* 常量 */
/* 方法 */
public copyFromArray(
string
array
string
string
?string
): bool
string
$tableName
,array
$rows
,string
$separator
= "\t",string
$nullAs
= "\\\\N",?string
$fields
= null
): bool
public copyFromFile(
string
string
string
string
?string
): bool
string
$tableName
,string
$filename
,string
$separator
= "\t",string
$nullAs
= "\\\\N",?string
$fields
= null
): bool
public copyToArray(
string
string
string
?string
): array|false
string
$tableName
,string
$separator
= "\t",string
$nullAs
= "\\\\N",?string
$fields
= null
): array|false
public copyToFile(
string
string
string
string
?string
): bool
string
$tableName
,string
$filename
,string
$separator
= "\t",string
$nullAs
= "\\\\N",?string
$fields
= null
): bool
/* 继承的方法 */
public PDO::__construct(
string
?string
#[\SensitiveParameter] ?string
?array
)
string
$dsn
,?string
$username
= null
,#[\SensitiveParameter] ?string
$password
= null
,?array
$options
= null
)
public static PDO::connect(
string
?string
#[\SensitiveParameter] ?string
?array
): static
string
$dsn
,?string
$username
= null
,#[\SensitiveParameter] ?string
$password
= null
,?array
$options
= null
): static
public PDO::query(string
$query
, ?int $fetchMode
= PDO::FETCH_COLUMN, int $colno
): PDOStatement|falsepublic PDO::query(
string
?int
string
array
): PDOStatement|false
string
$query
,?int
$fetchMode
= PDO::FETCH_CLASS,string
$classname
,array
$constructorArgs
): PDOStatement|false
public PDO::query(string
}$query
, ?int $fetchMode
= PDO::FETCH_INTO, object $object
): PDOStatement|false预定义常量
Pdo\Pgsql::ATTR_DISABLE_PREPARES
- 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.
Pdo\Pgsql::ATTR_RESULT_MEMORY_SIZE
-
Returns the amount of memory, in bytes, allocated to the specified
query result PDOStatement instance,
or
null
if no results exist before the query is executed. Pdo\Pgsql::TRANSACTION_IDLE
Pdo\Pgsql::TRANSACTION_ACTIVE
Pdo\Pgsql::TRANSACTION_INTRANS
Pdo\Pgsql::TRANSACTION_INERROR
Pdo\Pgsql::TRANSACTION_UNKNOWN
目录
- Pdo\Pgsql::copyFromArray — Copy data from a PHP array into a table
- Pdo\Pgsql::copyFromFile — Copy data from file into table
- Pdo\Pgsql::copyToArray — Copy data from database table into PHP array
- Pdo\Pgsql::copyToFile — Copy data from table into file
- Pdo\Pgsql::escapeIdentifier — Escapes a string for use as an SQL identifier
- Pdo\Pgsql::getNotify — Get asynchronous notification
- Pdo\Pgsql::getPid — Get the PID of the backend process handling this connection
- Pdo\Pgsql::lobCreate — Creates a new large object
- Pdo\Pgsql::lobOpen — Opens an existing large object stream
- Pdo\Pgsql::lobUnlink — Deletes the large object
- Pdo\Pgsql::setNoticeCallback — Set a callback to handle notice and warning messages generated by the backend
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。