|
1 |
| -# Async PostgreSQL driver for Python written in Rust. |
| 1 | +# PSQLPy - Async PostgreSQL driver for Python written in Rust. |
2 | 2 |
|
3 | 3 | Driver for PostgreSQL written fully in Rust and exposed to Python.
|
4 | 4 | *Normal documentation is in development.*
|
@@ -28,7 +28,7 @@ Create new instance of PSQLPool, startup it and start querying.
|
28 | 28 | from typing import Any
|
29 | 29 | import asyncio
|
30 | 30 |
|
31 |
| -from rust_psql_driver import PSQLPool |
| 31 | +from psqlpy import PSQLPool |
32 | 32 |
|
33 | 33 |
|
34 | 34 | db_pool = PSQLPool(
|
@@ -72,7 +72,7 @@ You can work with connection instead of DatabasePool.
|
72 | 72 | from typing import Any
|
73 | 73 | import asyncio
|
74 | 74 |
|
75 |
| -from rust_psql_driver import PSQLPool |
| 75 | +from psqlpy import PSQLPool |
76 | 76 |
|
77 | 77 |
|
78 | 78 | db_pool = PSQLPool(
|
@@ -108,7 +108,7 @@ By default async context manager only begins and commits transaction automatical
|
108 | 108 | from typing import Any
|
109 | 109 | import asyncio
|
110 | 110 |
|
111 |
| -from rust_psql_driver import PSQLPool, IsolationLevel |
| 111 | +from psqlpy import PSQLPool, IsolationLevel |
112 | 112 |
|
113 | 113 |
|
114 | 114 | db_pool = PSQLPool()
|
@@ -136,7 +136,7 @@ async def main() -> None:
|
136 | 136 | from typing import Any
|
137 | 137 | import asyncio
|
138 | 138 |
|
139 |
| -from rust_psql_driver import PSQLPool, IsolationLevel |
| 139 | +from psqlpy import PSQLPool, IsolationLevel |
140 | 140 |
|
141 | 141 |
|
142 | 142 | db_pool = PSQLPool()
|
@@ -171,7 +171,7 @@ If you want to use `ROLLBACK TO SAVEPOINT`, see below.
|
171 | 171 | from typing import Any
|
172 | 172 | import asyncio
|
173 | 173 |
|
174 |
| -from rust_psql_driver import PSQLPool, IsolationLevel |
| 174 | +from psqlpy import PSQLPool, IsolationLevel |
175 | 175 |
|
176 | 176 |
|
177 | 177 | db_pool = PSQLPool()
|
@@ -199,7 +199,7 @@ You can rollback your transaction to the specified savepoint, but before it you
|
199 | 199 | from typing import Any
|
200 | 200 | import asyncio
|
201 | 201 |
|
202 |
| -from rust_psql_driver import PSQLPool, IsolationLevel |
| 202 | +from psqlpy import PSQLPool, IsolationLevel |
203 | 203 |
|
204 | 204 |
|
205 | 205 | db_pool = PSQLPool()
|
@@ -233,7 +233,7 @@ It's possible to release savepoint
|
233 | 233 | from typing import Any
|
234 | 234 | import asyncio
|
235 | 235 |
|
236 |
| -from rust_psql_driver import PSQLPool, IsolationLevel |
| 236 | +from psqlpy import PSQLPool, IsolationLevel |
237 | 237 |
|
238 | 238 |
|
239 | 239 | db_pool = PSQLPool()
|
@@ -264,7 +264,7 @@ Cursors can be created only in transaction. In addition, cursor supports async i
|
264 | 264 | from typing import Any
|
265 | 265 | import asyncio
|
266 | 266 |
|
267 |
| -from rust_psql_driver import PSQLPool, IsolationLevel |
| 267 | +from psqlpy import PSQLPool, IsolationLevel |
268 | 268 |
|
269 | 269 |
|
270 | 270 | db_pool = PSQLPool()
|
@@ -307,7 +307,7 @@ from typing import Any
|
307 | 307 | import asyncio
|
308 | 308 | import uuid
|
309 | 309 |
|
310 |
| -from rust_psql_driver import PSQLPool |
| 310 | +from psqlpy import PSQLPool |
311 | 311 |
|
312 | 312 | from psqlpy.extra_types import (
|
313 | 313 | SmallInt,
|
|
0 commit comments