Coverage for src/lumen/db/__init__.py: 67%

6 statements  

« prev     ^ index     » next       coverage.py v7.16.0, created at 2026-08-31 18:46 +0000

1""" 

2This package manages database pools and resource repository patterns. 

3It exposes pool initialization and the main resource repository for database interactions. 

4""" 

5 

6from .pool import close_pool, get_pool, init_pool 

7from .repository import ResourceRepository 

8 

9 

10async def search_pandas(resource_type: str, **kwargs): 

11 """Run an in-process search and return a flat Pandas DataFrame.""" 

12 from ..analytics.in_process import search_pandas as _search_pandas 

13 

14 return await _search_pandas(resource_type, **kwargs) 

15 

16 

17__all__ = ["ResourceRepository", "close_pool", "get_pool", "init_pool", "search_pandas"]