Add sqlite database implementation

This commit is contained in:
rishflab 2021-09-21 09:14:33 +10:00
parent da9d09aa5e
commit 7efdb96a50
7 changed files with 801 additions and 4 deletions

6
swap/sqlite_dev_setup.sh Normal file
View 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