{"action":"created","issue":{"url":"https://api.github.com/repos/jakearchibald/idb-keyval/issues/31","repository_url":"https://api.github.com/repos/jakearchibald/idb-keyval","labels_url":"https://api.github.com/repos/jakearchibald/idb-keyval/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/jakearchibald/idb-keyval/issues/31/comments","events_url":"https://api.github.com/repos/jakearchibald/idb-keyval/issues/31/events","html_url":"https://github.com/jakearchibald/idb-keyval/issues/31","id":316578902,"number":31,"title":"how to have multiple stores under the same db ?","user":{"login":"ctf0","id":7388088,"avatar_url":"https://avatars2.githubusercontent.com/u/7388088?v=4","gravatar_id":"","url":"https://api.github.com/users/ctf0","html_url":"https://github.com/ctf0","followers_url":"https://api.github.com/users/ctf0/followers","following_url":"https://api.github.com/users/ctf0/following{/other_user}","gists_url":"https://api.github.com/users/ctf0/gists{/gist_id}","starred_url":"https://api.github.com/users/ctf0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctf0/subscriptions","organizations_url":"https://api.github.com/users/ctf0/orgs","repos_url":"https://api.github.com/users/ctf0/repos","events_url":"https://api.github.com/users/ctf0/events{/privacy}","received_events_url":"https://api.github.com/users/ctf0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-04-22T13:24:35Z","updated_at":"2018-05-23T10:07:21Z","closed_at":null,"author_association":"NONE","body":"atm i have something like\r\n```js\r\nimport { Store, set, get, del, clear } from 'idb-keyval'\r\nconst cacheStore = new Store(\r\n    'Media_Manager', // db\r\n    'cacheStore' // store\r\n)\r\nconst infoStore = new Store(\r\n    'Media_Manager', // db\r\n    'infoStore' // store\r\n)\r\n```\r\n\r\nbut i keep getting the error\r\n> Uncaught (in promise) DOMException: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found.\r\n\r\nand it points to \r\n```js\r\n_withIDBStore(type, callback) {\r\n        return this._dbp.then(db => new Promise((resolve, reject) => {\r\n            const transaction = db.transaction(this.storeName, type); // <<< this line <<<\r\n            transaction.oncomplete = () => resolve();\r\n            transaction.onabort = transaction.onerror = () => reject(transaction.error);\r\n            callback(transaction.objectStore(this.storeName));\r\n        }));\r\n    }\r\n```\r\n\r\nso it that possible or do i've to create new db for each store ?"},"comment":{"url":"https://api.github.com/repos/jakearchibald/idb-keyval/issues/comments/391294166","html_url":"https://github.com/jakearchibald/idb-keyval/issues/31#issuecomment-391294166","issue_url":"https://api.github.com/repos/jakearchibald/idb-keyval/issues/31","id":391294166,"user":{"login":"jakearchibald","id":93594,"avatar_url":"https://avatars1.githubusercontent.com/u/93594?v=4","gravatar_id":"","url":"https://api.github.com/users/jakearchibald","html_url":"https://github.com/jakearchibald","followers_url":"https://api.github.com/users/jakearchibald/followers","following_url":"https://api.github.com/users/jakearchibald/following{/other_user}","gists_url":"https://api.github.com/users/jakearchibald/gists{/gist_id}","starred_url":"https://api.github.com/users/jakearchibald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakearchibald/subscriptions","organizations_url":"https://api.github.com/users/jakearchibald/orgs","repos_url":"https://api.github.com/users/jakearchibald/repos","events_url":"https://api.github.com/users/jakearchibald/events{/privacy}","received_events_url":"https://api.github.com/users/jakearchibald/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T10:07:20Z","updated_at":"2018-05-23T10:07:20Z","author_association":"OWNER","body":"@ctf0 seems like you're talking about https://github.com/jakearchibald/idb-keyval/compare/issue-31."}}
{"actor":{"display_login":"jakearchibald"}}