From 11e10c0f5eb2221885e2d14680356d434cf33685 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Wed, 31 May 2023 21:13:36 -0700 Subject: [PATCH] chore!: Added sqlx for database requests --- Cargo.toml | 2 +- shell.nix | 4 ++++ src/db.rs | 0 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 src/db.rs diff --git a/Cargo.toml b/Cargo.toml index bdf8070..556d941 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,4 +8,4 @@ edition = "2021" [dependencies] crossterm = "0.26.1" ratatui = "0.21.0" -rusqlite = "0.29.0" +sqlx = { version = "0.6.3", features = ["postgres", "runtime-tokio-native-tls", "sqlite"] } diff --git a/shell.nix b/shell.nix index 02aeb10..d2482c8 100644 --- a/shell.nix +++ b/shell.nix @@ -14,5 +14,9 @@ buildInputs = with pkgs; [ ruststable rust-analyzer + bacon + + pkg-config + openssl ]; } diff --git a/src/db.rs b/src/db.rs new file mode 100644 index 0000000..e69de29