summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql/pgsql_driver.stub.php
blob: e6d3695373cf903b0543e89dc92dc1bfeebe7816 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php

/** @generate-function-entries */

// These are extension methods for PDO. This is not a real class.
class PDO_PGSql_Ext {
    /** @return bool */
    public function pgsqlCopyFromArray(string $tableName, array $rows, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null) {}

    /** @return bool */
    public function pgsqlCopyFromFile(string $tableName, string $filename, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null) {}

    /** @return array|false */
    public function pgsqlCopyToArray(string $tableName, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null) {}

    /** @return bool */
    public function pgsqlCopyToFile(string $tableName, string $filename, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null) {}

    /** @return string|false */
    public function pgsqlLOBCreate() {}

    /** @return resource|false */
    public function pgsqlLOBOpen(string $oid, string $mode = "rb") {}

    /** @return bool */
    public function pgsqlLOBUnlink(string $oid) {}

    /** @return array|false */
    public function pgsqlGetNotify(int $fetchMode = PDO::FETCH_USE_DEFAULT, int $timeoutMilliseconds = 0) {}

    /** @return int */
    public function pgsqlGetPid() {}
}