Coroutine\PostgreSQL->connect

最后更新于:2022-04-02 06:29:12

# Coroutine\\PostgreSQL->connect 建立postgresql 非阻塞的协程连接 ~~~ function Coroutine\PostgreSQL->connect( string $connection_string); ~~~ example: ~~~ go(function () { $a = new Swoole\Coroutine\PostgreSQL(); $conn = $a -> connect ("host=127.0.0.1 port=5432 dbname=test user=wuzhenyu password="); var_dump($conn); }); ~~~ * 返回值:连接建立成功返回资源类型
';