{"action":"created","issue":{"url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/18","labels_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/18/comments","events_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/18/events","html_url":"https://github.com/andpor/react-native-sqlite-storage/issues/18","id":125111056,"number":18,"title":"Question about opening an existing database","user":{"login":"ipetepete","id":1248996,"avatar_url":"https://avatars.githubusercontent.com/u/1248996?v=3","gravatar_id":"","url":"https://api.github.com/users/ipetepete","html_url":"https://github.com/ipetepete","followers_url":"https://api.github.com/users/ipetepete/followers","following_url":"https://api.github.com/users/ipetepete/following{/other_user}","gists_url":"https://api.github.com/users/ipetepete/gists{/gist_id}","starred_url":"https://api.github.com/users/ipetepete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipetepete/subscriptions","organizations_url":"https://api.github.com/users/ipetepete/orgs","repos_url":"https://api.github.com/users/ipetepete/repos","events_url":"https://api.github.com/users/ipetepete/events{/privacy}","received_events_url":"https://api.github.com/users/ipetepete/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-06T05:09:05Z","updated_at":"2016-01-06T19:26:16Z","closed_at":null,"body":"I have a pre-filled sqlite database, what steps are required to get this to open the provided file vs creating a new one?\r\n\r\nmy db file is called `trivia.sqlite` I'm using this to open it:\r\n```javascript\r\nthis.db = sqlite.openDatabase(\"trivia.sqlite\", \"1.0\", \"Trivia DB\", 200000, this.openCB, this.errorCB);\r\n```\r\n\r\nIt opens fine but when I try to get some data out it says: `code 5: 'no such table'`"},"comment":{"url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/comments/169429335","html_url":"https://github.com/andpor/react-native-sqlite-storage/issues/18#issuecomment-169429335","issue_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/18","id":169429335,"user":{"login":"ipetepete","id":1248996,"avatar_url":"https://avatars.githubusercontent.com/u/1248996?v=3","gravatar_id":"","url":"https://api.github.com/users/ipetepete","html_url":"https://github.com/ipetepete","followers_url":"https://api.github.com/users/ipetepete/followers","following_url":"https://api.github.com/users/ipetepete/following{/other_user}","gists_url":"https://api.github.com/users/ipetepete/gists{/gist_id}","starred_url":"https://api.github.com/users/ipetepete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipetepete/subscriptions","organizations_url":"https://api.github.com/users/ipetepete/orgs","repos_url":"https://api.github.com/users/ipetepete/repos","events_url":"https://api.github.com/users/ipetepete/events{/privacy}","received_events_url":"https://api.github.com/users/ipetepete/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T19:26:16Z","updated_at":"2016-01-06T19:26:16Z","body":"Sorry this didn't work. I created a new folder 'storage' added it to the project via 'Create Folder References'\r\n\r\nOne of the log outputs says this:\r\n\r\n`using db location: docs`\r\n\r\nI can try and manipulate the file location within the app and try and get it into the Documents directory to see if that works, but it seems like it is an unnecessary step."}}