diff --git a/Cargo.toml b/Cargo.toml index b2baa3d..34c618b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,3 +8,6 @@ repository = "https://git.itsscb.de/itsscb/BefehlsWerk" [dependencies] serde = { version = "1.0.219", features = ["derive", "rc"] } serde_json = "1.0.140" +sqlx = { version = "0.8.5", features = ["macros", "runtime-tokio", "sqlite", "uuid"] } +tokio = { version = "1.44.2", features = ["full"] } +uuid = { version = "1.16.0", features = ["v4"] } diff --git a/db_dev.db b/db_dev.db new file mode 100644 index 0000000..23a9ca6 Binary files /dev/null and b/db_dev.db differ diff --git a/flake.nix b/flake.nix index d470bc7..4947051 100644 --- a/flake.nix +++ b/flake.nix @@ -13,6 +13,10 @@ buildInputs = with pkgs; [ powershell ]; + + shellHook = '' + export DATABASE_URL=sqlite://db_dev.db + ''; }; } );