Database Layer

GDBM-based storage abstraction with JSON document handling and extent attribute compatibility fixes.

Classes

gdata_local_raw - Base GDBM wrapper with context manager support

gdata_local_simple - JSON-aware document storage with automatic serialization

Key Features

• Dictionary-like interface for document access

• Automatic JSON serialization/deserialization

• Context manager support for resource cleanup

• Extent attribute handling for filesystem compatibility

GDBM Compatibility

Handles extent filesystem attributes that can cause locking issues:

• Use chattr -e file.gdbm to remove extent attributes

• Lazy database initialization prevents import-time locks