From c748758b9eb6a5fc543d2440d6e58ce8b87a8331 Mon Sep 17 00:00:00 2001 From: caminsha Date: Fri, 15 Jul 2022 22:21:21 +0200 Subject: [PATCH] new directory for sql files --- script.sh | 6 +++--- create_db.sql => sql/create_db.sql | 0 insert_data.sql => sql/insert_data.sql | 0 show_all.sql => sql/show_all.sql | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename create_db.sql => sql/create_db.sql (100%) rename insert_data.sql => sql/insert_data.sql (100%) rename show_all.sql => sql/show_all.sql (100%) diff --git a/script.sh b/script.sh index 7a3c6f7..393f0e2 100644 --- a/script.sh +++ b/script.sh @@ -1,9 +1,9 @@ #!/bin/bash if [[ $1 -eq "0" ]]; then - sqlite3 test.db ".read create_db.sql" + sqlite3 test.db ".read sql/create_db.sql" elif [[ $1 -eq "1" ]]; then - sqlite3 test.db ".read insert_data.sql" + sqlite3 test.db ".read sql/insert_data.sql" elif [[ $1 -eq "9" ]]; then - sqlite3 test.db ".read show_all.sql" + sqlite3 test.db ".read sql/show_all.sql" fi diff --git a/create_db.sql b/sql/create_db.sql similarity index 100% rename from create_db.sql rename to sql/create_db.sql diff --git a/insert_data.sql b/sql/insert_data.sql similarity index 100% rename from insert_data.sql rename to sql/insert_data.sql diff --git a/show_all.sql b/sql/show_all.sql similarity index 100% rename from show_all.sql rename to sql/show_all.sql