oc_chat
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3# oc_chat/registry/backends/__init__.py
4
5# OCT-LINT: disable=tests_exist reason="Covered by oc_chat/tests/registry/test_storage_foundation.py"
6"""
7Public backend exports for registry storage.
8
9Purpose
10-------
11Expose the backend ABC, capability error, and SQLite implementation from
12one import location.
13
14Responsibilities
15----------------
16- Re-export :class:`StorageBackend`.
17- Re-export :class:`BackendCapabilityError`.
18- Re-export backend return types.
19- Re-export :class:`SQLiteBackend`.
20
21Diagnostics
22-----------
23Domain: OC_CHAT.MAIN
24Levels:
25 L2 - lifecycle events
26 L3 - semantic details
27 L4 - deep tracing
28
29Contracts
30---------
31- This module is import-only and has no database side effects.
32
33Dependencies
34------------
35- oc_diagnostics (structured debug logging via _dbg)
36- oc_chat.registry.backends.base (re-exported StorageBackend contract, capability error and return types)
37- oc_chat.registry.backends.sqlite (re-exported SQLiteBackend implementation)
38"""
39from __future__ import annotations
40
41from oc_diagnostics import _dbg
42
44 BackendCapabilityError,
45 LockHandle,
46 OperationLogRow,
47 StorageBackend,
48)
49from oc_chat.registry.backends.sqlite import SQLiteBackend
50
51_dbg("OC_CHAT.MAIN", "module", "loaded", 4)
52
53__all__ = [
54 "BackendCapabilityError",
55 "LockHandle",
56 "OperationLogRow",
57 "SQLiteBackend",
58 "StorageBackend",
59]