summaryrefslogtreecommitdiff
path: root/src/scripts/insert.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/insert.sh')
-rw-r--r--src/scripts/insert.sh8
1 files changed, 8 insertions, 0 deletions
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\");"
+}