diff options
| author | Fuwn <[email protected]> | 2021-03-21 19:29:37 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-03-21 19:29:37 -0700 |
| commit | fb2fac712c869fd561bce3a829098555c347e170 (patch) | |
| tree | 7a1c1984b38cfca49bcce98046cc28fd514a9b72 | |
| parent | etc: get started on implementing db routines (diff) | |
| download | whirl-fb2fac712c869fd561bce3a829098555c347e170.tar.xz whirl-fb2fac712c869fd561bce3a829098555c347e170.zip | |
feature: Use sqlx instead of rustqlite
| -rw-r--r-- | .env | 2 | ||||
| -rw-r--r-- | .env.example | 2 | ||||
| -rw-r--r-- | Cargo.toml | 4 |
3 files changed, 7 insertions, 1 deletions
@@ -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= @@ -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"] |