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

16 lines
310 B
JavaScript
Raw Normal View History

2019-02-05 00:21:50 +01:00
import QueryTarget from "./query-target.js";
2019-02-06 23:04:39 +01:00
import StoreIndex from "./store-index.js";
2019-02-05 00:21:50 +01:00
export default class Store extends QueryTarget {
constructor(store) {
this._store = store;
}
_queryTarget() {
return this._store;
}
index(indexName) {
2019-02-06 23:04:39 +01:00
return new StoreIndex(this._store.index(indexName));
2019-02-05 00:21:50 +01:00
}
}