Implement persistent storage backend with WAL support
This implements a significant storage infrastructure upgrade:
Core Features:
- Added RocksDB storage backend as optional feature (rocksdb-storage)
- Created PersistentStore with write-ahead logging for durability
- Updated storage trait interface for better abstraction
- All storage engines now implement consistent interface
Storage Architecture:
- StorageEngine trait with async methods for CRUD operations
- Memory store for fast in-memory operations
- Persistent store with WAL for crash recovery
- RocksDB store for production-grade persistence (optional)
- Pluggable storage backends via trait abstraction
Technical Implementation:
- Write-ahead logging ensures data durability
- Async/await throughout for non-blocking I/O
- Proper error handling with typed errors
- Comprehensive test coverage for all storage operations
- Feature flags for optional dependencies
Testing:
- Added full test suite for persistent storage
- Tests cover node/relationship CRUD operations
- Storage statistics and performance metrics
- Proper cleanup and temp directory management
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>