{"action":"created","issue":{"url":"https://api.github.com/repos/pouchdb/pouchdb/issues/3264","repository_url":"https://api.github.com/repos/pouchdb/pouchdb","labels_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/3264/labels{/name}","comments_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/3264/comments","events_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/3264/events","html_url":"https://github.com/pouchdb/pouchdb/issues/3264","id":52878949,"number":3264,"title":"Unable to use memory adapter in an Ember CLI application","user":{"login":"backspace","id":43280,"avatar_url":"https://avatars.githubusercontent.com/u/43280?v=3","gravatar_id":"","url":"https://api.github.com/users/backspace","html_url":"https://github.com/backspace","followers_url":"https://api.github.com/users/backspace/followers","following_url":"https://api.github.com/users/backspace/following{/other_user}","gists_url":"https://api.github.com/users/backspace/gists{/gist_id}","starred_url":"https://api.github.com/users/backspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backspace/subscriptions","organizations_url":"https://api.github.com/users/backspace/orgs","repos_url":"https://api.github.com/users/backspace/repos","events_url":"https://api.github.com/users/backspace/events{/privacy}","received_events_url":"https://api.github.com/users/backspace/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pouchdb/pouchdb/labels/enhancement","name":"enhancement","color":"02d7e1"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-12-26T03:08:01Z","updated_at":"2016-05-14T22:35:53Z","closed_at":"2016-05-14T22:35:53Z","body":"Hey, I thought I’d try out the PouchDB in-memory adapter to see if it would speed up my acceptance tests. I’m unable to create any databases, though, they fail at [this line](https://github.com/pouchdb/pouchdb/blob/3.2.0/dist/pouchdb.memory.js#L16275):\r\n\r\n    this.idb = new IDB(idbOpts);\r\n\r\nIn Chrome I get `object is not a function`, and in Firefox the exception starts with `require<.leveldown<`.\r\n\r\nI created a [test application](https://github.com/backspace/ember-memory-pouch) to demonstrate the problem. I also [uploaded it to Heroku](http://ember-memory-pouch.herokuapp.com/).\r\n\r\nMaybe a solution would be to import PouchDB and the adapter in a more module-y way, but I’m using [ember-pouch](/nolanlawson/ember-pouch), which doesn’t yet support that.\r\n\r\nBut this may all be moot (for me); am I right in my suspicion that the only different for the in-memory adapter in Chrome is that it doesn’t persist the database between browser sessions? If it’s the same IndexedDB store, it wouldn’t be any faster, right?"},"comment":{"url":"https://api.github.com/repos/pouchdb/pouchdb/issues/comments/219255396","html_url":"https://github.com/pouchdb/pouchdb/issues/3264#issuecomment-219255396","issue_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/3264","id":219255396,"user":{"login":"daleharvey","id":37787,"avatar_url":"https://avatars.githubusercontent.com/u/37787?v=3","gravatar_id":"","url":"https://api.github.com/users/daleharvey","html_url":"https://github.com/daleharvey","followers_url":"https://api.github.com/users/daleharvey/followers","following_url":"https://api.github.com/users/daleharvey/following{/other_user}","gists_url":"https://api.github.com/users/daleharvey/gists{/gist_id}","starred_url":"https://api.github.com/users/daleharvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daleharvey/subscriptions","organizations_url":"https://api.github.com/users/daleharvey/orgs","repos_url":"https://api.github.com/users/daleharvey/repos","events_url":"https://api.github.com/users/daleharvey/events{/privacy}","received_events_url":"https://api.github.com/users/daleharvey/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T22:35:53Z","updated_at":"2016-05-14T22:35:53Z","body":"Not been reported in a while, so assuming working"}}