sqlite-things/script.sh
2022-07-15 22:21:21 +02:00

10 lines
237 B
Bash

#!/bin/bash
if [[ $1 -eq "0" ]]; then
sqlite3 test.db ".read sql/create_db.sql"
elif [[ $1 -eq "1" ]]; then
sqlite3 test.db ".read sql/insert_data.sql"
elif [[ $1 -eq "9" ]]; then
sqlite3 test.db ".read sql/show_all.sql"
fi