agilord/postgres_pool
Dart 中具有广泛自动重连参数的 PostgreSQL 连接池。
- Stars
- 18
- Forks
- 10
- 最近推送(UTC)
- 2023年12月14日
- 项目状态
- 未归档
语言Dart
使用的依赖
原始 README
以下为英文项目原文快照,最新内容请访问 GitHub。
展开 / 收起项目 README
A library to control a maximized number of connections to a single PostgreSQL server.
Discontinued
package:postgres from ^3.0.0 supports connection pooling as part of the core
library. Development and advanced pooling support will be migrated to that package.
Usage
Once you've created the PgPool object, you can:
- Use it as
PostgreSQLExecutionContext(frompackage:postgres). - Use
PgPool.runfor non-transactional batches with optional retry. - Use
PgPool.runTxfor transactional batches with optional retry.