{"action":"created","issue":{"url":"https://api.github.com/repos/SchizoDuckie/CreateReadUpdateDelete.js/issues/2","labels_url":"https://api.github.com/repos/SchizoDuckie/CreateReadUpdateDelete.js/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/SchizoDuckie/CreateReadUpdateDelete.js/issues/2/comments","events_url":"https://api.github.com/repos/SchizoDuckie/CreateReadUpdateDelete.js/issues/2/events","html_url":"https://github.com/SchizoDuckie/CreateReadUpdateDelete.js/issues/2","id":113231752,"number":2,"title":"ERROR TypeError: Cannot read property 'onConnect' of undefined","user":{"login":"MarioVanDenEijnde","id":12608918,"avatar_url":"https://avatars.githubusercontent.com/u/12608918?v=3","gravatar_id":"","url":"https://api.github.com/users/MarioVanDenEijnde","html_url":"https://github.com/MarioVanDenEijnde","followers_url":"https://api.github.com/users/MarioVanDenEijnde/followers","following_url":"https://api.github.com/users/MarioVanDenEijnde/following{/other_user}","gists_url":"https://api.github.com/users/MarioVanDenEijnde/gists{/gist_id}","starred_url":"https://api.github.com/users/MarioVanDenEijnde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarioVanDenEijnde/subscriptions","organizations_url":"https://api.github.com/users/MarioVanDenEijnde/orgs","repos_url":"https://api.github.com/users/MarioVanDenEijnde/repos","events_url":"https://api.github.com/users/MarioVanDenEijnde/events{/privacy}","received_events_url":"https://api.github.com/users/MarioVanDenEijnde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":58,"created_at":"2015-10-25T15:16:56Z","updated_at":"2015-11-02T21:03:44Z","closed_at":null,"body":"Hello CRUD team,\r\n\r\nWhen calling the database with the basic code below I get this alert: ERROR TypeError: Cannot read property 'onConnect' of undefined\r\nEverthing else seems to work fine.\r\n```\r\nwindow.dbAdapter = new CRUD.SQLiteAdapter('mydatabase.sqlite');\r\n```\r\nPlease advise.\r\nKind regards,\r\nMario\r\n"},"comment":{"url":"https://api.github.com/repos/SchizoDuckie/CreateReadUpdateDelete.js/issues/comments/153155789","html_url":"https://github.com/SchizoDuckie/CreateReadUpdateDelete.js/issues/2#issuecomment-153155789","issue_url":"https://api.github.com/repos/SchizoDuckie/CreateReadUpdateDelete.js/issues/2","id":153155789,"user":{"login":"SchizoDuckie","id":111710,"avatar_url":"https://avatars.githubusercontent.com/u/111710?v=3","gravatar_id":"","url":"https://api.github.com/users/SchizoDuckie","html_url":"https://github.com/SchizoDuckie","followers_url":"https://api.github.com/users/SchizoDuckie/followers","following_url":"https://api.github.com/users/SchizoDuckie/following{/other_user}","gists_url":"https://api.github.com/users/SchizoDuckie/gists{/gist_id}","starred_url":"https://api.github.com/users/SchizoDuckie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SchizoDuckie/subscriptions","organizations_url":"https://api.github.com/users/SchizoDuckie/orgs","repos_url":"https://api.github.com/users/SchizoDuckie/repos","events_url":"https://api.github.com/users/SchizoDuckie/events{/privacy}","received_events_url":"https://api.github.com/users/SchizoDuckie/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T21:03:44Z","updated_at":"2015-11-02T21:03:44Z","body":"That all depends on if your serverside knows the primary key that your local record has. You can execute a REPLACE INTO, but if your row has a NULL primary key, it will still insert a new record :)"}}