xref: /php-src/ext/pdo_pgsql/pdo_pgsql.stub.php (revision b7dd3d83)
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#ifdef HAVE_PG_RESULT_MEMORY_SIZE
15    /** @cvalue PDO_PGSQL_ATTR_RESULT_MEMORY_SIZE */
16    public const int ATTR_RESULT_MEMORY_SIZE = UNKNOWN;
17#endif
18
19    /** @cvalue PGSQL_TRANSACTION_IDLE */
20    public const int TRANSACTION_IDLE = UNKNOWN;
21
22    /** @cvalue PGSQL_TRANSACTION_ACTIVE */
23    public const int TRANSACTION_ACTIVE = UNKNOWN;
24
25    /** @cvalue PGSQL_TRANSACTION_INTRANS */
26    public const int TRANSACTION_INTRANS = UNKNOWN;
27
28    /**  @cvalue PGSQL_TRANSACTION_INERROR */
29    public const int TRANSACTION_INERROR = UNKNOWN;
30
31    /** @cvalue PGSQL_TRANSACTION_UNKNOWN */
32    public const int TRANSACTION_UNKNOWN = UNKNOWN;
33
34    public function escapeIdentifier(string $input): string {}
35
36    public function copyFromArray(string $tableName, array $rows, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): bool {}
37
38    public function copyFromFile(string $tableName, string $filename, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): bool {}
39
40    public function copyToArray(string $tableName, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): array|false {}
41
42    public function copyToFile(string $tableName, string $filename, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): bool {}
43
44    public function lobCreate(): string|false {}
45
46    // Opens an existing large object stream.  Must be called inside a transaction.
47    /** @return resource|false */
48    public function lobOpen(string $oid, string $mode = "rb"){}
49
50    public function lobUnlink(string $oid): bool {}
51
52    public function getNotify(int $fetchMode = PDO::FETCH_DEFAULT, int $timeoutMilliseconds = 0): array|false {}
53
54    public function getPid(): int {}
55}
56