rxdb
Version:
A local-first realtime NoSQL Database for JavaScript applications - https://rxdb.info/
24 lines • 951 B
JavaScript
import { ensureRxStorageInstanceParamsAreCorrect } from "../../rx-storage-helper.js";
import { RX_STORAGE_NAME_DENOKV } from "./denokv-helper.js";
import { createDenoKVStorageInstance } from "./rx-storage-instance-denokv.js";
import { RXDB_VERSION } from "../utils/utils-rxdb-version.js";
export var RxStorageDenoKV = /*#__PURE__*/function () {
function RxStorageDenoKV(settings) {
this.name = RX_STORAGE_NAME_DENOKV;
this.rxdbVersion = RXDB_VERSION;
this.settings = settings;
}
var _proto = RxStorageDenoKV.prototype;
_proto.createStorageInstance = function createStorageInstance(params) {
ensureRxStorageInstanceParamsAreCorrect(params);
return createDenoKVStorageInstance(this, params, this.settings);
};
return RxStorageDenoKV;
}();
export function getRxStorageDenoKV(settings = {
consistencyLevel: 'strong'
}) {
var storage = new RxStorageDenoKV(settings);
return storage;
}
//# sourceMappingURL=index.js.map