1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

ext/pgsql: adding pg_put_copy_data/pg_put_copy_end.

pg_put_copy_data allows to send COPY commands to the server.
pg_put_copy_end signals the end of the n commands.

Both return 3 states ; 1, 0 and -1 when 1 is success, 0 the buffer queue
is full then -1 for errors.

Close GH-14325
This commit is contained in:
David Carlier
2024-05-25 16:58:06 +01:00
parent cc6d9523d9
commit 162a311cc8
6 changed files with 153 additions and 1 deletions

View File

@@ -949,6 +949,9 @@ namespace {
#endif
function pg_change_password(PgSql\Connection $connection, string $user, #[\SensitiveParameter] string $password): bool {}
function pg_put_copy_data(PgSql\Connection $connection, string $cmd): int {}
function pg_put_copy_end(PgSql\Connection $connection, string $error = null): int {}
}
namespace PgSql {