summaryrefslogtreecommitdiff
path: root/src/lib/insert
blob: baa13bda70dea28d66b12995863a128dd41f94b8 (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\",\"libc/$PAGE_PATH\");"
}