Coverage for src / lexigram / contracts / data / bulk_operations.py: 0%

5 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-08-15 18:57 +0800

1from __future__ import annotations 

2 

3from typing import Any, Protocol, runtime_checkable 

4 

5 

6@runtime_checkable 

7class BulkOperationsProtocol(Protocol): 

8 """Protocol for bulk data operations.""" 

9 

10 async def bulk_create(self, records: list[dict[str, Any]]) -> list[Any]: ... 

11 

12 async def bulk_update( 

13 self, 

14 updates: list[dict[str, Any]], 

15 filters: dict[str, Any] | None = None, 

16 ) -> int: ... 

17 

18 async def bulk_delete(self, filters: dict[str, Any]) -> int: ... 

19 

20 

21__all__ = ["BulkOperationsProtocol"]