vector-im-hydrogen-web/src/storage/idb/store.js
2019-02-04 23:21:50 +00:00

16 lines
294 B
JavaScript

import QueryTarget from "./query-target.js";
import Index from "./index.js";
export default class Store extends QueryTarget {
constructor(store) {
this._store = store;
}
_queryTarget() {
return this._store;
}
index(indexName) {
return new Index(this._store.index(indexName));
}
}