I am trying to set up a search function on my site, I am trying to find the IndexedDB code for
SELECT "column" FROM "table" WHERE "column" LIKE "%keyword%"
I found a solution in the Fuzzy Search IndexedDB
db.transaction(['table'], 'readonly') .objectStore('table') .openCursor(IDBKeyRange.bound(keyword, keyword + '\uffff'), 'prev') .onsuccess = function (e) { e || (e = event); var cursor = e.target.result; if (cursor) { console.log(cursor.value.column); cursor.continue(); } };
but how can I find "% keyword%" instead of "% keyword"?
source share