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
$srctoken by$dstexpression.
Structs§
- Sqlite
Store - Represents a pool of connections with an
SQLitedatabase. The pool is used to interact concurrently with the underlying database in a safe and efficient manner.
Traits§
- Client
Builder Sqlite Ext - Extends the
ClientBuilderwith a method to add aSqliteStore.
Functions§
- column_
value_ as_ u64 - Gets a
u64value from the database. - u64_
to_ value - Converts a
u64into a Value.