Skip to main content

Module storage

Module storage 

Source
Expand description

Storage backends for SQL database operations.

This module provides multiple storage backend implementations:

  • duckdb: High-performance embedded SQL database
  • adbc: Arrow Database Connectivity for external database integration (optional)
  • cached: Two-tier storage with configurable caching layer
  • datafusion_provider: DataFusion TableProvider bridge for DuckDB
  • context: Embedding storage for RAG/CAG functionality

The StorageBackend trait itself, the view types, and the SQL string utilities live in the Apache-2.0 hyprstream-metrics-api crate and are re-exported here; each backend here implements that trait.

Re-exports§

pub use datafusion_provider::DuckDBExec;
pub use datafusion_provider::DuckDBTableProvider;

Modules§

cache
cached
Two-tier cached storage backend implementation.
context
Context storage for RAG/CAG functionality.
datafusion_provider
DataFusion TableProvider implementation for DuckDB storage.
duckdb
table_manager
view

Structs§

Credentials
Credentials for database authentication
StorageUtils
Utility functions for SQL operations

Enums§

StorageBackendType

Traits§

StorageBackend
Storage backend trait for SQL database operations.