From b60211ee8785dcc43c2823739bcaf3c9b59d261c Mon Sep 17 00:00:00 2001 From: Joe Noon Date: Tue, 27 Sep 2011 05:39:37 -0700 Subject: [PATCH] adding lawnchair adapter, passes lawnchair spec --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 20a6993..2a93433 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,8 @@ Added: - callbacks per-statement, even within transaction - somewhat similar api to the webkit/phonegap default +- lawnchair adapter + Removed: - quota limit webkit html5 db patching @@ -98,3 +100,18 @@ General Usage # error callback 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