about summary refs log tree commit diff stats
path: root/.envrc
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-14 18:06:08 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-14 18:06:08 +0200
commit764f535f160c63f30c108e2fe20b624237cbbada (patch)
tree20857e34057ba53837caa20510ce385edd395c69 /.envrc
parentrefactor(treewide): Conform to the clippy and rust lints (diff)
downloadyt-764f535f160c63f30c108e2fe20b624237cbbada.tar.gz
yt-764f535f160c63f30c108e2fe20b624237cbbada.zip
build(.envrc): Set `sqlx`'s `DATABASE_URL` variable
Diffstat (limited to '.envrc')
-rw-r--r--.envrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/.envrc b/.envrc
index 493fa32..0d242f2 100644
--- a/.envrc
+++ b/.envrc
@@ -12,9 +12,12 @@
 
 use flake
 
+root="$(git rev-parse --show-toplevel)"
+
 PATH_add ./target/debug
 PATH_add ./target/release
 PATH_add ./target/profiling
 PATH_add ./python_update
 
 export PYO3_PYTHON=python3
+export DATABASE_URL="sqlite://$root/target/database.sqlite"