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
« prev ^ index » next coverage.py v7.13.5, created at 2026-08-15 18:57 +0800
1from __future__ import annotations
3from typing import Any, Protocol, runtime_checkable
6@runtime_checkable
7class BulkOperationsProtocol(Protocol):
8 """Protocol for bulk data operations."""
10 async def bulk_create(self, records: list[dict[str, Any]]) -> list[Any]: ...
12 async def bulk_update(
13 self,
14 updates: list[dict[str, Any]],
15 filters: dict[str, Any] | None = None,
16 ) -> int: ...
18 async def bulk_delete(self, filters: dict[str, Any]) -> int: ...
21__all__ = ["BulkOperationsProtocol"]