summaryrefslogtreecommitdiff
path: root/src/lib/insert
blob: 31c1b4cdb11dd4a725b3d7471bb7e30a14900494 (plain)
1
2
3
4
5
6
7
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\");"
}