This repository has been archived on 2022-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
hydrogen-web/src/storage/idb/store.js

16 lines
310 B
JavaScript

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