企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
# Coroutine\PostgreSQL->connect 建立postgresql 非阻塞的协程连接 ```php function Coroutine\PostgreSQL->connect( string $connection_string); ``` example: ```php 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); }); ``` * 返回值:连接建立成功返回资源类型