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