Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /InferiaAI_InferiaLLM /src /orchestration /infra /db.py
| import asyncpg | |
| import os | |
| async def create_test_db_pool(): | |
| """ | |
| Creates a PostgreSQL connection pool for tests. | |
| Uses the same env vars as main.py. | |
| """ | |
| return await asyncpg.create_pool( | |
| host=os.getenv("POSTGRES_HOST", "localhost"), | |
| port=int(os.getenv("POSTGRES_PORT") or 5432), | |
| user=os.getenv("POSTGRES_USER", "inferia"), | |
| password=os.getenv("POSTGRES_PASSWORD", "inferia"), | |
| database=os.getenv("POSTGRES_DB", "inferia"), | |
| min_size=1, | |
| max_size=5, | |
| ) | |
Xet Storage Details
- Size:
- 526 Bytes
- Xet hash:
- 45ef356bb24f405ca368f5a65c830b9d6fdcf8bce83f672620a17bc68ec8f17c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.