mirror of
https://github.com/moparisthebest/PhoneGap-SQLitePlugin-Android
synced 2024-11-29 11:52:16 -05:00
Add usage section to README
This commit is contained in:
parent
defa3a2117
commit
79bb1160ec
20
README.md
20
README.md
@ -2,8 +2,8 @@ Phonegap SQLitePlugin
|
|||||||
=====================
|
=====================
|
||||||
|
|
||||||
I have been developing Phonegap applications that required big databases.
|
I have been developing Phonegap applications that required big databases.
|
||||||
WebKitSQLite HTML5 database has hardcoded quota limitations so I decided to write
|
WebKitSQLite HTML5 database has hardcoded quota limitations so I decided to
|
||||||
this plugin to open my own sqlite files from javascript.
|
write this plugin to open my own sqlite files from javascript.
|
||||||
|
|
||||||
Currently the plugin supports basic open, close, executeSQL and has no support
|
Currently the plugin supports basic open, close, executeSQL and has no support
|
||||||
for transactions.
|
for transactions.
|
||||||
@ -11,6 +11,16 @@ for transactions.
|
|||||||
I also started writing a js wrapper that exposes an HTML5-like interface but
|
I also started writing a js wrapper that exposes an HTML5-like interface but
|
||||||
it is unfinished yet (see sqlite-html5.js)
|
it is unfinished yet (see sqlite-html5.js)
|
||||||
|
|
||||||
Later I found out that I could actually use this plugin to open the same database
|
Later I found out that I could actually use this plugin to open the same
|
||||||
file WebKit uses to store HTML5 dbs and change their quota limits (see sqlite.js).
|
database file WebKit uses to store HTML5 dbs and change their quota limits
|
||||||
This way I was able to store up to 1Gb using HTML5 WebKitSQLite.
|
(see sqlite.js). This way I was able to store up to 1Gb using standard
|
||||||
|
WebKitSQLite.
|
||||||
|
|
||||||
|
|
||||||
|
Usage
|
||||||
|
=====
|
||||||
|
|
||||||
|
Like any other PGPlugin drag it into your project, include sqlite.js file in
|
||||||
|
your application, modify PhoneGap.plist to bind PGSQLitePlugin to
|
||||||
|
it.dadeb.sqliteplugin namespace. Look at sqlite.js to get a sense of how it
|
||||||
|
works.
|
||||||
|
Loading…
Reference in New Issue
Block a user