1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-09-30 07:18:57 +02:00

fix indexeddb #479

This commit is contained in:
Thomas Wilkerling
2025-03-26 09:40:20 +01:00
parent b2db45a47c
commit 471830ef0f
46 changed files with 1311 additions and 1258 deletions

View File

@@ -61,7 +61,8 @@ export default function PostgresDB(name, config = {}) {
this.id = (config.schema ? sanitize(config.schema) : defaults.schema) + (name ? "_" + sanitize(name) : "");
this.field = config.field ? "_" + sanitize(config.field) : "";
this.type = config.type ? types[config.type.toLowerCase()] : "text";
this.support_tag_search = /* tag? */!0 /*await rows.hasNext()*/ /*await rows.hasNext()*/
this.support_tag_search =
/* tag? */!0 /*await rows.hasNext()*/ /*await rows.hasNext()*/
/*await rows.hasNext()*/;
if (!this.type) throw new Error("Unknown type of ID '" + config.type + "'");
this.db = DB || (DB = config.db || null);
@@ -607,7 +608,7 @@ PostgresDB.prototype.commit = async function (flexsearch, _replace, _append) {
// while(data.length){
// let next;
// if(data.length > MAXIMUM_QUERY_VARS){
// next = data.slice(MAXIMUM_QUERY_VARS);
// data = data.slice(0, MAXIMUM_QUERY_VARS);
// }
// let insert = pgp.helpers.insert(data, stmt);