Skip to main content

Crate miden_client_sqlite_store

Crate miden_client_sqlite_store 

Source
Expand description

SQLite-backed Store implementation for miden-client. This crate provides SqliteStore and its full implementation.

SqliteStore enables the persistence of accounts, transactions, notes, block headers, and MMR nodes using an SQLite database.

Macros§

insert_sql
Generates a simple insert SQL statement with parameters for the provided table name and fields. Supports optional conflict resolution (adding “| REPLACE” or “| IGNORE” at the end will generate “OR REPLACE” and “OR IGNORE”, correspondingly).
subst
Auxiliary macro which substitutes $src token by $dst expression.

Structs§

SqliteStore
Represents a pool of connections with an SQLite database. The pool is used to interact concurrently with the underlying database in a safe and efficient manner.

Traits§

ClientBuilderSqliteExt
Extends the ClientBuilder with a method to add a SqliteStore.

Functions§

column_value_as_u64
Gets a u64 value from the database.
u64_to_value
Converts a u64 into a Value.