Files
2026-05-01 23:40:14 +08:00

25 lines
1008 B
PHP

<?php
return [
'default' => 'postgre',
'connections' => [
'postgre' => [
'driver' => 'pgsql',
'host' => 'layfi.postgres.database.azure.com',
'port' => 5432,
'database' => 'proofdb',
'username' => 'proofdb',
'password' => 'proofdb',
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
'sslmode' => 'prefer',
'pool' => [ // 连接池配置,仅支持swoole/swow驱动
'max_connections' => 5, // 最大连接数
'min_connections' => 1, // 最小连接数
'wait_timeout' => 3, // 从连接池获取连接等待的最大时间,超时后会抛出异常
'idle_timeout' => 60, // 连接池中连接最大空闲时间,超时后会关闭回收,直到连接数为min_connections
'heartbeat_interval' => 50, // 连接池心跳检测时间,单位秒,建议小于60秒
],
],
],
];