Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /Extralit_extralit /extralit-server /tests /database.py
| import asyncio | |
| from sqlalchemy import orm | |
| from sqlalchemy.ext.asyncio import async_scoped_session, async_sessionmaker | |
| task: asyncio.Task | None = None | |
| def set_task(t: asyncio.Task): | |
| global task | |
| task = t | |
| def get_task() -> asyncio.Task: | |
| return task | |
| TestSession = async_scoped_session(async_sessionmaker(expire_on_commit=False, future=True), get_task) | |
| SyncTestSession = orm.scoped_session(orm.sessionmaker(class_=orm.Session, expire_on_commit=False)) | |
Xet Storage Details
- Size:
- 468 Bytes
- Xet hash:
- 077ba6ad1eed27363f207f8543cb4dc722ace59def4eb4c05d05bed305cb459d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.