xref: /php-src/ext/pdo_pgsql/pdo_pgsql.stub.php (revision d6a0b3af)
1<?php
2
3/** @generate-class-entries */
4
5/**
6 * @strict-properties
7 * @not-serializable
8 */
9class PdoPgsql extends PDO
10{
11    /** @cvalue PDO_PGSQL_ATTR_DISABLE_PREPARES */
12    public const int ATTR_DISABLE_PREPARES = UNKNOWN;
13
14    /** @cvalue PGSQL_TRANSACTION_IDLE */
15    public const int TRANSACTION_IDLE = UNKNOWN;
16
17    /** @cvalue PGSQL_TRANSACTION_ACTIVE */
18    public const int TRANSACTION_ACTIVE = UNKNOWN;
19
20    /** @cvalue PGSQL_TRANSACTION_INTRANS */
21    public const int TRANSACTION_INTRANS = UNKNOWN;
22
23    /**  @cvalue PGSQL_TRANSACTION_INERROR */
24    public const int TRANSACTION_INERROR = UNKNOWN;
25
26    /** @cvalue PGSQL_TRANSACTION_UNKNOWN */
27    public const int TRANSACTION_UNKNOWN = UNKNOWN;
28
29    public function escapeIdentifier(string $input): string {}
30
31    public function copyFromArray(string $tableName, array $rows, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): bool {}
32
33    public function copyFromFile(string $tableName, string $filename, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): bool {}
34
35    public function copyToArray(string $tableName, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): array|false {}
36
37    public function copyToFile(string $tableName, string $filename, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): bool {}
38
39    public function lobCreate(): string|false {}
40
41    // Opens an existing large object stream.  Must be called inside a transaction.
42    /** @return resource|false */
43    public function lobOpen(string $oid, string $mode = "rb"){}
44
45    public function lobUnlink(string $oid): bool {}
46
47    public function getNotify(int $fetchMode = PDO::FETCH_DEFAULT, int $timeoutMilliseconds = 0): array|false {}
48
49    public function getPid(): int {}
50}
51