pgsql_driver.stub.php 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /** @generate-function-entries */
  3. // These are extension methods for PDO. This is not a real class.
  4. class PDO_PGSql_Ext {
  5. /** @tentative-return-type */
  6. public function pgsqlCopyFromArray(string $tableName, array $rows, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): bool {}
  7. /** @tentative-return-type */
  8. public function pgsqlCopyFromFile(string $tableName, string $filename, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): bool {}
  9. /** @tentative-return-type */
  10. public function pgsqlCopyToArray(string $tableName, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): array|false {}
  11. /** @tentative-return-type */
  12. public function pgsqlCopyToFile(string $tableName, string $filename, string $separator = "\t", string $nullAs = "\\\\N", ?string $fields = null): bool {}
  13. /** @tentative-return-type */
  14. public function pgsqlLOBCreate(): string|false {}
  15. /** @return resource|false */
  16. public function pgsqlLOBOpen(string $oid, string $mode = "rb") {}
  17. /** @tentative-return-type */
  18. public function pgsqlLOBUnlink(string $oid): bool {}
  19. /** @tentative-return-type */
  20. public function pgsqlGetNotify(int $fetchMode = PDO::FETCH_USE_DEFAULT, int $timeoutMilliseconds = 0): array|false {}
  21. /** @tentative-return-type */
  22. public function pgsqlGetPid(): int {}
  23. }