litellm/tests/_support/native_database.py
yujonglee c919f3d9f3
refactor(proxy): inject database repositories through per-repository dependencies (#48507)
* refactor(proxy): inject database repositories through per-repository dependencies

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(proxy): model Prisma client cleanup

* test(rust): include NativeDatabase in bridge API surface

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-30 22:57:54 +00:00

11 lines
233 B
Python

import asyncio
from litellm.rust_bridge._native import NativeDatabase
async def _connect() -> NativeDatabase:
return await NativeDatabase.connect()
def native_database() -> NativeDatabase:
return asyncio.run(_connect())