Skip to main content

Crate aion_store_libsql

Crate aion_store_libsql 

Source
Expand description

Durable libSQL-backed event-store implementation for Aion workflows.

The crate opens embedded or embedded-replica libSQL databases, applies the Aion schema, and implements the aion_store history, timer, and visibility traits through LibSqlStore.

§Example

use aion_store_libsql::LibSqlStore;

let store = LibSqlStore::open("aion.db").await?;
store.validate_event_compatibility().await?;

Re-exports§

pub use config::LibSqlConfig;
pub use config::LibSqlMode;
pub use store::LibSqlStore;

Modules§

config
Operator-facing libSQL connection configuration. Deserialize-only configuration for the libSQL event store.
connection
libSQL database and connection opening helpers. Open embedded and embedded-replica libSQL connections.
error
Error conversion helpers for libSQL-backed storage. Mapping libSQL and serde errors into StoreError.
schema
Idempotent schema creation for the libSQL event store. Idempotent schema DDL for the libSQL event store.
store
LibSqlStore and its event-store trait implementations. LibSqlStore struct and EventStore implementation wiring.