mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-10-01 23:56:41 +02:00
usinst Sqlite within examples
This commit is contained in:
4
dist/module-debug/db/postgres/index.js
vendored
4
dist/module-debug/db/postgres/index.js
vendored
@@ -2,7 +2,6 @@
|
||||
|
||||
import pg_promise from "pg-promise";
|
||||
import StorageInterface from "../interface.js";
|
||||
import Document from "../../document.js";
|
||||
import { concat, toArray } from "../../common.js";
|
||||
const defaults = {
|
||||
schema: "flexsearch",
|
||||
@@ -72,7 +71,8 @@ export default function PostgresDB(name, config = {}) {
|
||||
}
|
||||
|
||||
PostgresDB.prototype.mount = function (flexsearch) {
|
||||
if (flexsearch.constructor === Document) {
|
||||
//if(flexsearch.constructor === Document){
|
||||
if (!flexsearch.encoder) {
|
||||
return flexsearch.mount(this);
|
||||
}
|
||||
flexsearch.db = this;
|
||||
|
Reference in New Issue
Block a user