summaryrefslogtreecommitdiff
path: root/src/lib/insert
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-10-18 18:08:59 -0400
committerLouie S <louie@example.com>2023-10-18 18:08:59 -0400
commitb21d0424ad6bf3cec141abe7e1bb624744c12fc6 (patch)
tree82e2fd408075ba531431a183d9b3435b1699d170 /src/lib/insert
parent857c316881e6fede7dfe12daf2eecec539e0179c (diff)
Rewrite to base off template; index more terms
Diffstat (limited to 'src/lib/insert')
-rw-r--r--src/lib/insert8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/insert b/src/lib/insert
new file mode 100644
index 0000000..31c1b4c
--- /dev/null
+++ b/src/lib/insert
@@ -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\");"
+}