From fb2fac712c869fd561bce3a829098555c347e170 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 21 Mar 2021 19:29:37 -0700 Subject: feature: Use sqlx instead of rustqlite --- .env | 2 ++ .env.example | 2 ++ Cargo.toml | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) 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"] -- cgit v1.2.3