Skip to content

Commit

Permalink
docs: document connection pool
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonShin committed Jul 25, 2024
1 parent 97b7039 commit 216c9e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion book/src/api/1.3.configs-file-based.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 216c9e3

Please sign in to comment.