vector-im-hydrogen-web/src/storage/idb/store.js

16 lines
294 B
JavaScript
Raw Normal View History

2019-02-05 00:21:50 +01:00
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));
}
}