databases
databases copied to clipboard
Async database support for Python. 🗄
Is it possible to listen for asynchronous PG notifications using this library? Is that functionality supported? * https://www.postgresql.org/docs/9.1/sql-listen.html * https://www.postgresql.org/docs/9.1/sql-notify.html
I'm using fastapi in combination with this library but when I use the transaction decorator I'm sporadically getting the following assertion error: ``` File ".../lib/python3.7/site-packages/databases/core.py", line 305, in commit assert...
Add windows support for tests: * different path to venv scripts * aiopg needs a workaround with event loop setting on py3.8+ Should be reviewed after #453 is merged to...
Hi there, fist of all: big kudos for the module! Guys you've done an amazing piece of work here! I have a problem or possibly a bug. **postgres: When using...
This is to mirror the [upstream issue in SQLAlchemy 1.4](https://github.com/sqlalchemy/sqlalchemy/issues/7504). Those folks happily discarded our problem because we were using the private API at first, but later showed a humane...
#108 introduced query locking to prohibit situation when multiple queries are executed at same time, however logic within `iterate()` is also is also wrapped with such logic, making code like...
Consider the following simulation of concurrent access: ``` # pylint: skip-file import asyncio import os from databases import Database async def tx1(db): async with db.transaction(): await db.execute("INSERT INTO foo VALUES...
I want to use some columns to store json data inside my postgres json or jsonb columns but when data is fetched the data is not being converted back to...
This is recommended by asyncpg [1]. 1: https://github.com/MagicStack/asyncpg/blob/92c2d81256a1efd8cab12c0118d74ccd1c18131b/asyncpg/pool.py#L655-L656