diff options
author | Louie S <louie@example.com> | 2023-08-26 12:08:28 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2023-08-26 12:08:28 -0400 |
commit | c125d1179850a4742756b2580343f7fbd73fca88 (patch) | |
tree | 1621659b7c470fa477b5aae1d9077fd5ce0e87d4 /src/lib/insert |
Diffstat (limited to 'src/lib/insert')
-rw-r--r-- | src/lib/insert | 8 |
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\");" +} |