From 603d3105cb16470e502f0e3d20f95d2243771e33 Mon Sep 17 00:00:00 2001 From: Louie S Date: Fri, 7 Jun 2024 15:10:52 -0400 Subject: Replace placeholders with wildcard rules --- src/scripts/insert.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/scripts/insert.sh (limited to 'src/scripts/insert.sh') diff --git a/src/scripts/insert.sh b/src/scripts/insert.sh new file mode 100644 index 0000000..31c1b4c --- /dev/null +++ b/src/scripts/insert.sh @@ -0,0 +1,8 @@ +insert() { + DB_PATH="$1" + NAME="$2" + TYPE="$3" + PAGE_PATH="$4" + + sqlite3 "$DB_PATH" "INSERT INTO searchIndex(name, type, path) VALUES (\"$NAME\",\"$TYPE\",\"$PAGE_PATH\");" +} -- cgit