We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f627faf commit f3a191bCopy full SHA for f3a191b
flake.nix
@@ -27,7 +27,10 @@
27
devShells.default = pkgs.mkShell {
28
shellHook = ''
29
echo 'To create a test DB, use: export DATABASE_URL=$(pg_tmp -w 0 -d /tmp/ircjournal-pg)'
30
+ echo 'To migrate to be able to use sqlx compile-time validation, use: sqlx migrate run --source ircjournal/migrations'
31
'';
32
+ SQLX_OFFLINE = 1;
33
+ DATABASE_URL = "postgresql:///test?host=%2Ftmp%2Fircjournal-pg";
34
RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}";
35
inputsFrom = with packages; [ ircjournal ];
36
buildInputs = with pkgs; [
0 commit comments