33Driver for PostgreSQL written fully in Rust and exposed to Python.
44* Normal documentation is in development.*
55
6- # Installation
6+ ## Installation
77
88You can install package with ` pip ` or ` poetry ` .
99
@@ -53,7 +53,7 @@ async def main() -> None:
5353```
5454Please take into account that each new execute gets new connection from connection pool.
5555
56- # Query parameters
56+ ## Query parameters
5757You can pass parameters into queries.
5858Parameters can be passed in any ` execute ` method as the second parameter, it must be a list.
5959Any placeholder must be marked with ` $< num> ` .
@@ -65,7 +65,7 @@ Any placeholder must be marked with `$< num>`.
6565 )
6666```
6767
68- # Connection
68+ ## Connection
6969You can work with connection instead of DatabasePool.
7070``` python
7171from typing import Any
@@ -96,7 +96,7 @@ async def main() -> None:
9696 # rust does it instead.
9797```
9898
99- # Transactions
99+ ## Transactions
100100Of course it's possible to use transactions with this driver.
101101It's as easy as possible and sometimes it copies common functionality from PsycoPG and AsyncPG.
102102
@@ -165,7 +165,7 @@ async def main() -> None:
165165 # rust does it instead.
166166```
167167
168- ### Transactions can be roll backed
168+ ### Transactions can be rolled back
169169You must understand that rollback can be executed only once per transaction.
170170After it's execution transaction state changes to ` done ` .
171171If you want to use ` ROLLBACK TO SAVEPOINT ` , see below.
@@ -254,7 +254,7 @@ async def main() -> None:
254254 await transaction.commit()
255255```
256256
257- # Cursors
257+ ## Cursors
258258Library supports PostgreSQL cursors.
259259
260260Cursors can be created only in transaction. In addition, cursor supports async iteration.
0 commit comments