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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user