mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
40 lines
1.2 KiB
Python
40 lines
1.2 KiB
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# Copyright (c) 2025 Allaun
|
|
|
|
"""NoDupeLabs Database Layer - SQLite with hard isolation.
|
|
|
|
This module provides the database layer functionality with complete isolation
|
|
From optional dependencies, using only standard library SQLite.
|
|
|
|
Key Features:
|
|
- SQLite database connection management
|
|
- Connection pooling with standard library
|
|
- File repository interface
|
|
- Transaction management
|
|
- Basic indexing support
|
|
|
|
Dependencies:
|
|
- sqlite3 (standard library only)
|
|
"""
|
|
|
|
from .connection import DatabaseConnection, get_connection
|
|
from .files import FileRepository
|
|
from .embeddings import EmbeddingRepository
|
|
from .wrapper import Database, DatabaseError # Updated: uses refactored wrapper.py
|
|
from .transactions import DatabaseTransaction, DatabaseTransactions, TransactionError, IsolationLevel
|
|
from .schema import DatabaseSchema, SchemaError
|
|
|
|
__all__ = [
|
|
'Database',
|
|
'DatabaseError',
|
|
'DatabaseConnection',
|
|
'get_connection',
|
|
'FileRepository',
|
|
'EmbeddingRepository',
|
|
'DatabaseTransaction',
|
|
'DatabaseTransactions',
|
|
'TransactionError',
|
|
'IsolationLevel',
|
|
'DatabaseSchema',
|
|
'SchemaError'
|
|
]
|