Add PostgreSQL support for mint and wallet #878
No reviewers
Labels
No labels
DB & Storage
Deployment
Error Handling & Logging
Maintenance
Payment Backend
backport
backport v0.13.x
backport v0.14.x
backport v0.15.x
bindings
blocked
bug
cdk-sql
ci
cli
deps
documentation
duplicate
enhancement
good first issue
help wanted
invalid
keep-open
ldk-node-ui
migrations
mint
mutation-testing
needs rebase
needs review
new nut
nut change
question
ready
rust-version
rustfmt
stacked hold
stale
testing
wallet
weekly-report
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cashubtc/cdk!878
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/pg-sql"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
This is a WIP branch to add PostgreSQL support, fixing #877.
This PR depends on #890
Approach
cdk-sql-basea generic abstraction on top of any SQL database for the mint and the walletcdk-sqliteinto this crate.bindandbind_vec.cdk-sqliteusecdk-sql-basecdk-postgresNotes to the reviewers
Suggested CHANGELOG Updates
CHANGED
ADDED
REMOVED
FIXED
Checklist
just final-checkbefore committing@ -156,6 +157,23 @@ async fn setup_database(let keystore: Arc<dyn MintKeysDatabase<Err = cdk_database::Error> + Send + Sync> = db;rename to PG_DB_URL or fail.
If we add
cargo update -p native-tls --precise 0.2.13to the msrv shell it seems like the msrv is met.@ -0,0 +1,155 @@use cdk_common::database::Error;typo?
Can we split 5f9b0b53dd3e9531e19bb22c6872f85bc305cb0d into its own pr I want to review that more carefully. Other then that I think it looks pretty good.
ACK
2b56063e47Successfully tested
github.com/cashubtc/cdk@2b56063e47withpsqlandcrdb.LGTM.