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