Skip to content

Commit 8168dba

Browse files
fixup: update deps and justfile
1 parent e19eb79 commit 8168dba

2 files changed

Lines changed: 23 additions & 6 deletions

File tree

Cargo.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,16 @@ edition = "2021"
77
bdk_wallet = { version = "1.2.0", features = ["test-utils"] }
88
serde = { version = "1.0.208", features = ["derive"] }
99
serde_json = "1.0.125"
10-
sqlx = { version = "0.8.1", default-features = false, features = ["runtime-tokio", "tls-rustls-ring","derive", "postgres", "sqlite", "json", "chrono", "uuid", "sqlx-macros", "migrate"] }
11-
thiserror = "1"
12-
tokio = { version = "1.40.0", features = ["macros", "rt-multi-thread"] }
10+
sqlx = { version = "0.8.5", default-features = false, features = ["runtime-tokio", "tls-rustls-ring", "derive", "postgres", "sqlite", "json", "chrono", "uuid", "migrate"] }
11+
thiserror = "2"
12+
tokio = { version = "1.44.0", features = ["macros", "rt-multi-thread"] }
1313
tracing = "0.1.40"
1414
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "serde_json", "json"] }
15-
sqlx-postgres-tester = "0.1.1"
1615

1716
[dev-dependencies]
1817
assert_matches = "1.5.0"
19-
anyhow = "1.0.89"
20-
bdk_electrum = { version = "0.20.1"}
18+
anyhow = "1.0.98"
19+
bdk_electrum = { version = "0.21.0"}
2120
rustls = "0.23.14"
2221

2322
[[example]]

Justfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# PostgreSQL commands
2+
start-postgres:
3+
docker run -d --name postgres \
4+
-p 5432:5432 \
5+
-e POSTGRES_USER=postgres \
6+
-e POSTGRES_PASSWORD=password \
7+
-e POSTGRES_DB=mydatabase \
8+
postgres:15
9+
10+
test-postgres:
11+
PGPASSWORD=password psql -h localhost -p 5432 -U postgres -d mydatabase -c "SELECT 1"
12+
13+
stop-postgres:
14+
docker stop postgres && docker rm postgres
15+
16+
# DATABASE_URL: postgres://postgres:password@localhost:5432/mydatabase
17+
example:
18+
cargo run --example bdk_sqlx_postgres

0 commit comments

Comments
 (0)