From 3d924c1359d783ff089a5c40b7564c0ee5396709 Mon Sep 17 00:00:00 2001 From: caminsha Date: Fri, 15 Jul 2022 22:16:25 +0200 Subject: [PATCH] Started a script to call the function --- script.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 script.sh diff --git a/script.sh b/script.sh new file mode 100644 index 0000000..7a3c6f7 --- /dev/null +++ b/script.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +if [[ $1 -eq "0" ]]; then + sqlite3 test.db ".read create_db.sql" +elif [[ $1 -eq "1" ]]; then + sqlite3 test.db ".read insert_data.sql" +elif [[ $1 -eq "9" ]]; then + sqlite3 test.db ".read show_all.sql" +fi