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

Commit 6cd85c1

Browse files
authored
add Transaction isolation docs (#434)
1 parent 9e93405 commit 6cd85c1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/connections_and_transactions.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,11 @@ async def create_users(request):
9898
Transaction blocks are managed as task-local state. Nested transactions
9999
are fully supported, and are implemented using database savepoints.
100100

101+
Transaction isolation-level can be specified if the driver backend supports that:
102+
103+
```python
104+
async with database.transaction(isolation="serializable"):
105+
...
106+
```
107+
101108
[starlette]: https://github.com/encode/starlette

docs/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ expression language, and provides support for PostgreSQL, MySQL, and SQLite.
1717
Databases is suitable for integrating against any async Web framework, such as [Starlette][starlette],
1818
[Sanic][sanic], [Responder][responder], [Quart][quart], [aiohttp][aiohttp], [Tornado][tornado], or [FastAPI][fastapi].
1919

20-
**Community**: [https://discuss.encode.io/c/databases](https://discuss.encode.io/c/databases)
21-
2220
**Requirements**: Python 3.6+
2321

2422
---

0 commit comments

Comments
 (0)