mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-22 23:25:22 +01:00
These functions are designed as a single funnel to talk to the database, whether it is synchronous or asynchronous. This single funnel will log SQL queries and slow operations, providing a clear and unified debug message for the problematic query, so it can be optimized accordingly (for instance, missing indexes or unbound SQL requests).
25 lines
483 B
Rust
25 lines
483 B
Rust
//! SQLite storage backend for cdk
|
|
|
|
#![warn(missing_docs)]
|
|
#![warn(rustdoc::bare_urls)]
|
|
|
|
mod common;
|
|
pub mod database;
|
|
mod macros;
|
|
pub mod pool;
|
|
pub mod stmt;
|
|
pub mod value;
|
|
|
|
pub use cdk_common::database::ConversionError;
|
|
pub use common::{run_db_operation, run_db_operation_sync};
|
|
|
|
#[cfg(feature = "mint")]
|
|
pub mod mint;
|
|
#[cfg(feature = "wallet")]
|
|
pub mod wallet;
|
|
|
|
#[cfg(feature = "mint")]
|
|
pub use mint::SQLMintDatabase;
|
|
#[cfg(feature = "wallet")]
|
|
pub use wallet::SQLWalletDatabase;
|