Add database nuke option to PostgreSQL and MySQL

This commit is contained in:
coolneng 2021-02-05 19:00:50 +01:00
parent 47794ffb08
commit 403f27526d
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 2 additions and 0 deletions

View File

@ -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}'
'';
}

View File

@ -24,5 +24,6 @@ in mkShell {
psql -d postgres -f ${sql_file}
alias psql='psql -d postgres'
alias nuke='rm -rf ${data_dir}'
'';
}