Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Commit bcbc46b

Browse files
Version 0.1.7
1 parent 6d3e8c8 commit bcbc46b

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,19 @@ async def shutdown():
173173
await database.disconnect()
174174
```
175175

176+
## Connection options
177+
178+
The PostgreSQL and MySQL backends provide a few connection options for SSL
179+
and for configuring the connection pool.
180+
181+
```python
182+
# Use an SSL connection.
183+
database = Database('postgresql://localhost/example?ssl=true')
184+
185+
# Use a connection pool of between 5-20 connections.
186+
database = Database('mysql://localhost/example?min_size=5&max_size=20')
187+
```
188+
176189
## Test isolation
177190

178191
For strict test isolation you will always want to rollback the test database

databases/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from databases.core import Database, DatabaseURL
22

33

4-
__version__ = "0.1.6"
4+
__version__ = "0.1.7"
55
__all__ = ["Database", "DatabaseURL"]

0 commit comments

Comments
 (0)