|
|
@@ -7,8 +7,8 @@ use cdk::cdk_database::WalletDatabase as CdkWalletDatabase;
|
|
|
use cdk_common::database::{DbTransactionFinalizer, WalletDatabaseTransaction};
|
|
|
|
|
|
use crate::error::FfiError;
|
|
|
-use crate::postgres::WalletPostgresDatabase;
|
|
|
-use crate::sqlite::WalletSqliteDatabase;
|
|
|
+//use crate::postgres::WalletPostgresDatabase;
|
|
|
+//use crate::sqlite::WalletSqliteDatabase;
|
|
|
use crate::types::*;
|
|
|
|
|
|
/// FFI-compatible trait for wallet database operations
|
|
|
@@ -755,6 +755,7 @@ pub enum WalletDbBackend {
|
|
|
/// Factory helpers returning a CDK wallet database behind the FFI trait
|
|
|
#[uniffi::export]
|
|
|
pub fn create_wallet_db(backend: WalletDbBackend) -> Result<Arc<dyn WalletDatabase>, FfiError> {
|
|
|
+ /*
|
|
|
match backend {
|
|
|
WalletDbBackend::Sqlite { path } => {
|
|
|
let sqlite = WalletSqliteDatabase::new(path)?;
|
|
|
@@ -765,6 +766,8 @@ pub fn create_wallet_db(backend: WalletDbBackend) -> Result<Arc<dyn WalletDataba
|
|
|
Ok(pg as Arc<dyn WalletDatabase>)
|
|
|
}
|
|
|
}
|
|
|
+ */
|
|
|
+ todo!()
|
|
|
}
|
|
|
|
|
|
/// Helper function to create a CDK database from the FFI trait
|