Skip to content

Commit

Permalink
chore!(sqlite): rename bdk_sqlite_store crate to bdk_sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
notmandatory committed May 22, 2024
1 parent a67a004 commit a0084dc
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = [
"crates/wallet",
"crates/chain",
"crates/file_store",
"crates/sqlite_store",
"crates/sqlite",
"crates/electrum",
"crates/esplora",
"crates/bitcoind_rpc",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "bdk_sqlite_store"
name = "bdk_sqlite"
version = "0.1.0"
edition = "2021"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/sqlite_store/README.md → crates/sqlite/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BDK SQLite Store
# BDK SQLite

This is a simple [SQLite] relational database schema backed implementation of [`PersistBackend`](bdk_persist::PersistBackend).

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion crates/wallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ dev-getrandom-wasm = ["getrandom/js"]
lazy_static = "1.4"
assert_matches = "1.5.0"
tempfile = "3"
bdk_sqlite_store = { path = "../sqlite_store", features = ["wallet"] }
bdk_sqlite = { path = "../sqlite", features = ["wallet"] }
bdk_file_store = { path = "../file_store" }
anyhow = "1"

Expand Down
8 changes: 4 additions & 4 deletions crates/wallet/tests/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use bdk_chain::collections::BTreeMap;
use bdk_chain::COINBASE_MATURITY;
use bdk_chain::{BlockId, ConfirmationTime};
use bdk_persist::PersistBackend;
use bdk_sqlite_store::rusqlite::Connection;
use bdk_sqlite::rusqlite::Connection;
use bdk_wallet::descriptor::{calc_checksum, IntoWalletDescriptor};
use bdk_wallet::psbt::PsbtUtils;
use bdk_wallet::signer::{SignOptions, SignerError};
Expand Down Expand Up @@ -132,8 +132,8 @@ fn load_recovers_wallet() -> anyhow::Result<()> {
)?;
run(
"store.sqlite",
|path| Ok(bdk_sqlite_store::Store::new(Connection::open(path)?)?),
|path| Ok(bdk_sqlite_store::Store::new(Connection::open(path)?)?),
|path| Ok(bdk_sqlite::Store::new(Connection::open(path)?)?),
|path| Ok(bdk_sqlite::Store::new(Connection::open(path)?)?),
)?;

Ok(())
Expand Down Expand Up @@ -260,7 +260,7 @@ fn new_or_load() -> anyhow::Result<()> {
Ok(bdk_file_store::Store::open_or_create_new(DB_MAGIC, path)?)
})?;
run("store.sqlite", |path| {
Ok(bdk_sqlite_store::Store::new(Connection::open(path)?)?)
Ok(bdk_sqlite::Store::new(Connection::open(path)?)?)
})?;

Ok(())
Expand Down
2 changes: 1 addition & 1 deletion example-crates/wallet_esplora_async/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ edition = "2021"
[dependencies]
bdk_wallet = { path = "../../crates/wallet" }
bdk_esplora = { path = "../../crates/esplora", features = ["async-https"] }
bdk_sqlite_store = { path = "../../crates/sqlite_store", features = ["wallet"] }
bdk_sqlite = { path = "../../crates/sqlite", features = ["wallet"] }
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros"] }
anyhow = "1"
2 changes: 1 addition & 1 deletion example-crates/wallet_esplora_async/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use bdk_wallet::{
KeychainKind, SignOptions, Wallet,
};

use bdk_sqlite_store::{rusqlite::Connection, Store};
use bdk_sqlite::{rusqlite::Connection, Store};

const SEND_AMOUNT: Amount = Amount::from_sat(5000);
const STOP_GAP: usize = 50;
Expand Down

0 comments on commit a0084dc

Please sign in to comment.