mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-02 06:46:06 -04:00
Add sqlite database implementation
This commit is contained in:
parent
da9d09aa5e
commit
7efdb96a50
7 changed files with 801 additions and 4 deletions
6
swap/sqlite_dev_setup.sh
Normal file
6
swap/sqlite_dev_setup.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
# crated temporary DB
|
||||
# run the migration scripts to create the tables
|
||||
# prepare the sqlx-data.json rust mappings
|
||||
DATABASE_URL=sqlite:tempdb cargo sqlx database create
|
||||
DATABASE_URL=sqlite:tempdb cargo sqlx migrate run
|
||||
DATABASE_URL=sqlite:./swap/tempdb cargo sqlx prepare -- --bin swap
|
Loading…
Add table
Add a link
Reference in a new issue