aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-03-21 19:29:37 -0700
committerFuwn <[email protected]>2021-03-21 19:29:37 -0700
commitfb2fac712c869fd561bce3a829098555c347e170 (patch)
tree7a1c1984b38cfca49bcce98046cc28fd514a9b72
parentetc: get started on implementing db routines (diff)
downloadwhirl-fb2fac712c869fd561bce3a829098555c347e170.tar.xz
whirl-fb2fac712c869fd561bce3a829098555c347e170.zip
feature: Use sqlx instead of rustqlite
-rw-r--r--.env2
-rw-r--r--.env.example2
-rw-r--r--Cargo.toml4
3 files changed, 7 insertions, 1 deletions
diff --git a/.env b/.env
index 9eb8674..0c686a0 100644
--- a/.env
+++ b/.env
@@ -1,2 +1,4 @@
# My personal .env file I use for development. ~ @fuwn
RUST_LOG=warn,whirl=info,whirl=debug
+
+DATABASE_URL=sqlite:worlds.db
diff --git a/.env.example b/.env.example
index 02ecd87..ae22cf2 100644
--- a/.env.example
+++ b/.env.example
@@ -1 +1,3 @@
RUST_LOG=trace
+
+DATABASE_URL=
diff --git a/Cargo.toml b/Cargo.toml
index 71b7882..c43988b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -29,4 +29,6 @@ dotenv = "0.15.0"
rand = "0.8.3"
# Database
-rusqlite = "0.24.2"
+[dependencies.sqlx]
+version = "0.5.1"
+features = ["runtime-async-std-rustls", "sqlite", "macros", "migrate", "chrono", "time", "tls"]