[ 
https://issues.apache.org/jira/browse/CB-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162867#comment-13162867
 ] 

Simon MacDonald commented on CB-103:
------------------------------------

I've seen people package their database in their application then on the first 
run of the app they move the database file to the proper platform dependent 
location.

I think the best way to handle this type of situation is to create a plugin for 
each platform that does the work and shares the same .js interface. It really 
doesn't belong in core PhoneGap and Web SQL is going away in favour of 
IndexedDB in the future.
                
> Support opening a database that connects to an existing file
> ------------------------------------------------------------
>
>                 Key: CB-103
>                 URL: https://issues.apache.org/jira/browse/CB-103
>             Project: Apache Callback
>          Issue Type: Wish
>            Reporter: Raymond Camden
>            Priority: Minor
>
> Under Adobe AIR, you can open a connection to a SQLite db and point to an 
> existing file. The benefit of this is that your application can ship a 
> database seeded with data. Without this support, your application has to 
> initialize the db via scripting. While not difficult, it does increase the 
> application's first run time and also complicates the code unnecessarily. I 
> understand that this isn't per the Web SQL spec, 
> http://dev.w3.org/html5/webdatabase, but it could certainly be useful.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to