1#[cfg(test)]
4#[path = "../migration_name.rs"]
5mod migration_name;
6
7mod common;
8pub mod database;
9mod keyvalue;
10mod macros;
11pub mod pool;
12pub mod stmt;
13pub mod value;
14
15pub use cdk_common::database::ConversionError;
16pub use common::{migrate, run_db_operation, run_db_operation_sync};
17
18#[cfg(feature = "mint")]
19pub mod mint;
20#[cfg(feature = "wallet")]
21pub mod wallet;
22
23#[cfg(all(test, feature = "prometheus"))]
24mod metrics_test_lock {
25 use tokio::sync::{Mutex, MutexGuard};
26
27 static METRICS_TEST_LOCK: Mutex<()> = Mutex::const_new(());
28
29 pub(crate) async fn lock() -> MutexGuard<'static, ()> {
30 METRICS_TEST_LOCK.lock().await
31 }
32}
33
34#[cfg(feature = "mint")]
35pub use mint::SQLMintDatabase;
36#[cfg(feature = "wallet")]
37pub use wallet::SQLWalletDatabase;