From fe41c8ba6e871ac2f9e3c2c3ca3d615f7d025eec Mon Sep 17 00:00:00 2001 From: Demin Yin Date: Mon, 24 Jun 2024 11:00:50 -0700 Subject: [PATCH] updates for Swoole 6.0.0-alpha Signed-off-by: Demin Yin --- src/swoole/Swoole/Coroutine/MySQL.php | 150 -- .../Swoole/Coroutine/MySQL/Exception.php | 15 - .../Swoole/Coroutine/MySQL/Statement.php | 72 - src/swoole/Swoole/Coroutine/PostgreSQL.php | 114 -- .../Swoole/Coroutine/PostgreSQLStatement.php | 78 - src/swoole/Swoole/Coroutine/Redis.php | 1674 ----------------- src/swoole/Swoole/Coroutine/Socket.php | 12 + src/swoole/Swoole/Lock.php | 10 - src/swoole/Swoole/Timer.php | 14 - src/swoole/constants.php | 160 +- src/swoole/functions.php | 27 +- src/swoole/shortnames.php | 7 - 12 files changed, 34 insertions(+), 2299 deletions(-) delete mode 100644 src/swoole/Swoole/Coroutine/MySQL.php delete mode 100644 src/swoole/Swoole/Coroutine/MySQL/Exception.php delete mode 100644 src/swoole/Swoole/Coroutine/MySQL/Statement.php delete mode 100644 src/swoole/Swoole/Coroutine/PostgreSQL.php delete mode 100644 src/swoole/Swoole/Coroutine/PostgreSQLStatement.php delete mode 100644 src/swoole/Swoole/Coroutine/Redis.php diff --git a/src/swoole/Swoole/Coroutine/MySQL.php b/src/swoole/Swoole/Coroutine/MySQL.php deleted file mode 100644 index e03763f..0000000 --- a/src/swoole/Swoole/Coroutine/MySQL.php +++ /dev/null @@ -1,150 +0,0 @@ -errCode and has error message set in $this->error. - * @see https://www.php.net/pg-escape-string PHP function pg_escape_string() - */ - public function escape(string $string): string|false - { - } - - /** - * Escape a literal for insertion into a text field. - * - * This method works similar to PHP function \pg_escape_literal(). - * - * @param string $string A string containing text to be escaped. - * @return string|false A string containing the escaped data. When error happens, it returns FALSE and has error message set in $this->error. - * @see https://www.php.net/pg-escape-literal PHP function pg_escape_literal() - */ - public function escapeLiteral(string $string): string|false - { - } - - /** - * Escape an identifier for insertion into a text field. - * - * This method works similar to PHP function \pg_escape_identifier(). - * - * @param string $string A string containing text to be escaped. - * @return string|false A string containing the escaped data. When error happens, it returns FALSE and has error message set in $this->error. - * @see https://www.php.net/pg-escape-identifier PHP function pg_escape_identifier() - */ - public function escapeIdentifier(string $string): string|false - { - } - - /** - * Create a large object. - * - * @return int|false Returns the OID of the new large object, or FALSE when error happens. - * @since 5.0.1 - */ - public function createLOB(): int|false - { - } - - /** - * Open a large object. - * - * @param int $oid The OID of the large object to be opened. - * @param string $mode The mode to open the large object. It can be "r" for read-only, "w" for write-only, or "rw" for read-write. - * @return resource|false Returns the large object resource, or FALSE when error happens. - * @since 5.0.1 - */ - public function openLOB(int $oid, string $mode = 'r') - { - } - - /** - * Delete a large object. - * - * @param int $oid The OID of the large object to be deleted. - * @return bool Returns TRUE on success, or FALSE when error happens. - * @since 5.0.1 - */ - public function unlinkLOB(int $oid): bool - { - } -} diff --git a/src/swoole/Swoole/Coroutine/PostgreSQLStatement.php b/src/swoole/Swoole/Coroutine/PostgreSQLStatement.php deleted file mode 100644 index d29fa94..0000000 --- a/src/swoole/Swoole/Coroutine/PostgreSQLStatement.php +++ /dev/null @@ -1,78 +0,0 @@ -