Is there any documentation for Cordova SQLite Plugin?

30 views
Skip to first unread message

Pherenjito

unread,
Aug 18, 2014, 6:25:36 AM8/18/14
to Cordova-SQ...@googlegroups.com
How would you recommend to start for a newbie?

Chris Brody

unread,
Aug 18, 2014, 6:46:41 AM8/18/14
to Pherenjito, Cordova-SQ...@googlegroups.com
The documentation of this project is not so great, and I am planning to work on this in October once I get a break from my professional commitments.

For a beginner, I recommend you start with this page for installation on Cordova: http://iphonedevlog.wordpress.com/2014/04/07/installing-chris-brodys-sqlite-database-with-cordova-cli-android/

To use the API, you open (or create) a database using window.sqlitePlugin.openDatabase() (as documented in the readme), which returns a database object that follows the W3 SQL API which is very well documented on the web. For example: http://www.html5rocks.com/en/tutorials/webdatabase/todo/

The one trap is that you have to wait for the deviceready event before you can open a database. This is also documented in the readme.

Chris



On Mon, Aug 18, 2014 at 12:25 PM, Pherenjito <felixr...@gmail.com> wrote:
How would you recommend to start for a newbie?

--
You received this message because you are subscribed to the Google Groups "Cordova-SQLitePlugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Cordova-SQLitePl...@googlegroups.com.
To post to this group, send email to Cordova-SQ...@googlegroups.com.
Visit this group at http://groups.google.com/group/Cordova-SQLitePlugin.
To view this discussion on the web visit https://groups.google.com/d/msgid/Cordova-SQLitePlugin/ef0e8302-449f-49ed-bee8-25e1669efe48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages