From 216c9e39ac1addb009a5497ebb0c840a530b7def Mon Sep 17 00:00:00 2001 From: Jason Shin Date: Fri, 26 Jul 2024 00:09:06 +1000 Subject: [PATCH] docs: document connection pool --- book/src/api/1.3.configs-file-based.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/book/src/api/1.3.configs-file-based.md b/book/src/api/1.3.configs-file-based.md index 15d36361..c118b563 100644 --- a/book/src/api/1.3.configs-file-based.md +++ b/book/src/api/1.3.configs-file-based.md @@ -38,7 +38,8 @@ Example `.sqlxrc.json` "DB_USER": "app_user", "DB_PASS": "password", "DB_HOST": "127.0.0.1", - "DB_PORT": 3307 + "DB_PORT": 3307, + "POOL_SIZE": 20 } } } @@ -73,6 +74,7 @@ Supported fields of each connection include - `DB_HOST`: database host (e.g. 127.0.0.1) - `DB_PORT`: database port (e.g. 4321) - `PG_SEARCH_PATH`: PostgreSQL schema search path (default is "$user,public") [https://www.postgresql.org/docs/current/ddl-schemas.html#DDL-SCHEMAS-PATH](https://www.postgresql.org/docs/current/ddl-schemas.html#DDL-SCHEMAS-PATH) +- `POOL_SIZE`: Size of the connection pool to establish per connection type ### generate_types