From a4784bbacc356d381ff833e1c181b75c30f776c6 Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Fri, 9 Jun 2023 11:26:54 -0700 Subject: Clean up, base more on dash-docset-template, dumb down entry types for name-index (consider all of these directives) --- src/lib/insert | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/lib/insert (limited to 'src/lib/insert') 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\");" +} -- cgit