Add database nuke option to PostgreSQL and MySQL

This commit is contained in:
2021-02-05 19:00:50 +01:00
parent 47794ffb08
commit 403f27526d
2 changed files with 2 additions and 0 deletions

View File

@@ -24,5 +24,6 @@ in mkShell {
mysql --socket="${socket}" -u root < ${sql_file} mysql --socket="${socket}" -u root < ${sql_file}
alias mysql='mysql --socket="${socket}" -u root' 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} psql -d postgres -f ${sql_file}
alias psql='psql -d postgres' alias psql='psql -d postgres'
alias nuke='rm -rf ${data_dir}'
''; '';
} }