From 403f27526dea7943ad92e479e35bf6c6ec35bec2 Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 5 Feb 2021 19:00:50 +0100 Subject: [PATCH] Add database nuke option to PostgreSQL and MySQL --- mysql.nix | 1 + postgresql.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/mysql.nix b/mysql.nix index 0ed93fb..1a49154 100644 --- a/mysql.nix +++ b/mysql.nix @@ -24,5 +24,6 @@ in mkShell { mysql --socket="${socket}" -u root < ${sql_file} alias mysql='mysql --socket="${socket}" -u root' + alias nuke='rm -rf ${data_dir}' ''; } diff --git a/postgresql.nix b/postgresql.nix index 370e72c..aec4a61 100644 --- a/postgresql.nix +++ b/postgresql.nix @@ -24,5 +24,6 @@ in mkShell { psql -d postgres -f ${sql_file} alias psql='psql -d postgres' + alias nuke='rm -rf ${data_dir}' ''; }