From c3c3de452d160efa8a637be7007920ba9927a7c5 Mon Sep 17 00:00:00 2001 From: abpwrs Date: Wed, 8 Apr 2020 15:33:33 -0500 Subject: [PATCH] ENH: consolidating bash scripts --- db/execute-sql-in-container.bash | 22 ++++++++++++++++++++++ db/init-db.bash | 17 ----------------- db/seed-db.bash | 17 ----------------- 3 files changed, 22 insertions(+), 34 deletions(-) create mode 100755 db/execute-sql-in-container.bash delete mode 100755 db/init-db.bash delete mode 100755 db/seed-db.bash diff --git a/db/execute-sql-in-container.bash b/db/execute-sql-in-container.bash new file mode 100755 index 0000000..3ed782f --- /dev/null +++ b/db/execute-sql-in-container.bash @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +# Author: "hertz" +# Date: 20200310 +# #################### +# DESC: +# A script to execute a SQL script inside of postgres docker container +# #################### + + +# args: +# 1 -- name of container running postgres to execute the script inside of +# 2 -- path to .SQL script to be execute inside of the postgres container + +#if [[ $# -ne 1 ]]; then +# echo "Usage: $0 ..." +# exit +#fi + + +# script: + + diff --git a/db/init-db.bash b/db/init-db.bash deleted file mode 100755 index 225d2f5..0000000 --- a/db/init-db.bash +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash -# Author: "hertz" -# Date: 20200310 - -# args: -# 1 -- -# 2 -- - -#if [[ $# -ne 1 ]]; then -# echo "Usage: $0 ..." -# exit -#fi - - -# script: - - diff --git a/db/seed-db.bash b/db/seed-db.bash deleted file mode 100755 index 225d2f5..0000000 --- a/db/seed-db.bash +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash -# Author: "hertz" -# Date: 20200310 - -# args: -# 1 -- -# 2 -- - -#if [[ $# -ne 1 ]]; then -# echo "Usage: $0 ..." -# exit -#fi - - -# script: - -