diff options
author | Louie S <louie@example.com> | 2024-06-26 18:34:49 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2024-06-26 18:53:42 -0400 |
commit | 8fdfbacc6fbf173139b64a0bfa20c94903ad9392 (patch) | |
tree | 11ec794a8343eca97f32d5587d949808a25c92d9 /src/lib | |
parent | b70cc298b199c7e735eebb23869481adccbc237f (diff) |
Convert to submodule
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/create_table | 7 | ||||
-rw-r--r-- | src/lib/insert | 8 |
2 files changed, 0 insertions, 15 deletions
diff --git a/src/lib/create_table b/src/lib/create_table deleted file mode 100644 index a783c50..0000000 --- a/src/lib/create_table +++ /dev/null @@ -1,7 +0,0 @@ -create_table() { - DB_PATH="$1" - - sqlite3 "$DB_PATH" "CREATE TABLE IF NOT EXISTS searchIndex(id INTEGER PRIMARY KEY, name TEXT, type TEXT, path TEXT);" - sqlite3 "$DB_PATH" "CREATE UNIQUE INDEX IF NOT EXISTS anchor ON searchIndex (name, type, path);" -} - diff --git a/src/lib/insert b/src/lib/insert deleted file mode 100644 index 31c1b4c..0000000 --- a/src/lib/insert +++ /dev/null @@ -1,8 +0,0 @@ -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\");" -} |