diff options
author | Louie S <louie@example.com> | 2023-05-05 19:16:11 -0700 |
---|---|---|
committer | Louie S <louie@example.com> | 2023-05-05 19:18:23 -0700 |
commit | d7ce7c21ad5fe18b7d0a4e6a496cce2783a50d1e (patch) | |
tree | 68a182570c4dd7bf1edb5ed6f4c438900326038f /src/lib/insert | |
parent | a26adab1566f7ad0574c93b841f640363a799092 (diff) |
First commit for glibc docset
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..baa13bd --- /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\",\"libc/$PAGE_PATH\");" +} |