summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql/pgsql_driver.stub.php
blob: bf63c5656e2b58bcfd08ad4265ffea4ac2e8c664 (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 $table_name, array $rows, string $delimiter = "\t", string $null_as = "\\\\N", ?string $fields = null) {}

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

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

    /** @return bool */
    public function pgsqlCopyToFile(string $table_name, string $filename, string $delimiter = "\t", string $null_as = "\\\\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 $result_type = PDO::FETCH_USE_DEFAULT, int $ms_timeout = 0) {}

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