77 more search options (#78)

* added search for copyright

* added search by reference
This commit is contained in:
Arwid Thornström
2021-10-22 14:39:46 +02:00
committed by GitHub
parent 8d9477d85b
commit ac5be19649
3 changed files with 26 additions and 0 deletions
+8
View File
@@ -161,6 +161,14 @@ export function designerProducts() {
);
}
export function referenceProducts() {
return (
baseQuery +
/* sql */ `
WHERE LOWER(products.ref1) LIKE ? OR LOWER(products.ref2) LIKE ? OR LOWER(products.ref3) LIKE ? ORDER BY products.inserted DESC`
);
}
export function keywordProducts(keywordId: number) {
return (
baseQuery +