mirror of
https://github.com/moparisthebest/PhoneGap-SQLitePlugin-Android
synced 2024-11-22 16:52:16 -05:00
adding lawnchair adapter, passes lawnchair spec
This commit is contained in:
parent
09fb70f38d
commit
b60211ee87
17
README.md
17
README.md
@ -33,6 +33,8 @@ Added:
|
|||||||
- callbacks per-statement, even within transaction
|
- callbacks per-statement, even within transaction
|
||||||
- somewhat similar api to the webkit/phonegap default
|
- somewhat similar api to the webkit/phonegap default
|
||||||
|
|
||||||
|
- lawnchair adapter
|
||||||
|
|
||||||
Removed:
|
Removed:
|
||||||
|
|
||||||
- quota limit webkit html5 db patching
|
- quota limit webkit html5 db patching
|
||||||
@ -98,3 +100,18 @@ General Usage
|
|||||||
# error callback
|
# error callback
|
||||||
|
|
||||||
console.log "ERROR: #{e.message}"
|
console.log "ERROR: #{e.message}"
|
||||||
|
|
||||||
|
Lawnchair Adapter Usage
|
||||||
|
=======================
|
||||||
|
|
||||||
|
Include the following js files in your html:
|
||||||
|
|
||||||
|
- lawnchair.js (you provide)
|
||||||
|
- pgsqlite_plugin.js
|
||||||
|
- lawnchair_pgsqlite_plugin_adapter.js (must come after pgsqlite_plugin.js)
|
||||||
|
|
||||||
|
The `name` option will determine the sqlite filename. In this example, you would be using/creating
|
||||||
|
the database at: *Documents/kvstore.sqlite3* (all db's in PGSQLitePlugin are in the Documents folder)
|
||||||
|
|
||||||
|
kvstore = new Lawnchair { name: "kvstore", adapter: PGSQLitePlugin.lawnchair_adapter }, () ->
|
||||||
|
# do stuff
|
||||||
|
Loading…
Reference in New Issue
Block a user