forked from bitcoindevkit/bdk-ffi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b640fb
commit 1a3adcb
Showing
9 changed files
with
2,659 additions
and
3,175 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
use bdk::database::any::{SledDbConfiguration, SqliteDbConfiguration}; | ||
|
||
/// Type that can contain any of the database configurations defined by the library | ||
/// This allows storing a single configuration that can be loaded into an AnyDatabaseConfig | ||
/// instance. Wallets that plan to offer users the ability to switch blockchain backend at runtime | ||
/// will find this particularly useful. | ||
pub enum DatabaseConfig { | ||
/// Memory database has no config | ||
Memory, | ||
/// Simple key-value embedded database based on sled | ||
Sled { config: SledDbConfiguration }, | ||
/// Sqlite embedded database using rusqlite | ||
Sqlite { config: SqliteDbConfiguration }, | ||
} | ||
// use bdk::database::any::{SledDbConfiguration, SqliteDbConfiguration}; | ||
// | ||
// /// Type that can contain any of the database configurations defined by the library | ||
// /// This allows storing a single configuration that can be loaded into an AnyDatabaseConfig | ||
// /// instance. Wallets that plan to offer users the ability to switch blockchain backend at runtime | ||
// /// will find this particularly useful. | ||
// pub enum DatabaseConfig { | ||
// /// Memory database has no config | ||
// Memory, | ||
// /// Simple key-value embedded database based on sled | ||
// Sled { config: SledDbConfiguration }, | ||
// /// Sqlite embedded database using rusqlite | ||
// Sqlite { config: SqliteDbConfiguration }, | ||
// } |
Oops, something went wrong.