I am researching various storage solutions for iOS and it doesn't appear that this plugin supports Cordova 2.1.0 out of the box. There are some import reference issues in PGSQLLitePlugin.h. Once I worked around those, I got various errors. Here is the console output.
2012-11-02 15:25:02.988 TestDB[1209:13403] Multi-tasking -> Device: YES, App: YES
2012-11-02 15:25:03.072 TestDB[1209:13403] [INFO] start
2012-11-02 15:25:03.073 TestDB[1209:13403] [INFO] Database opened
2012-11-02 15:25:03.074 TestDB[1209:13403] [INFO] Creating test table
2012-11-02 15:25:03.076 TestDB[1209:13403] -[NSCFDictionary JSONString]: unrecognized selector sent to instance 0x7b63b40
2012-11-02 15:25:03.076 TestDB[1209:13403] *\ Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFDictionary JSONString]: unrecognized selector sent to instance 0x7b63b40'
*\ First throw call stack:
(0x1b9052 0x213cd0a 0x1baced 0x11ff00 0x11fce2 0x4ae3 0x3dbc 0xf5386d 0x18d966 0x18d407 0xf07c0 0xefdb4 0xefccb 0x27dd879 0x27dd93e 0x34fa9b 0x2966 0x2895)
terminate called throwing an exception
I am researching various storage solutions for iOS and it doesn't appear that this plugin supports Cordova 2.1.0 out of the box. There are some import reference issues in PGSQLLitePlugin.h. Once I worked around those, I got various errors. Here is the console output.
2012-11-02 15:25:02.988 TestDB[1209:13403] Multi-tasking -> Device: YES, App: YES 2012-11-02 15:25:03.072 TestDB[1209:13403] [INFO] start 2012-11-02 15:25:03.073 TestDB[1209:13403] [INFO] Database opened 2012-11-02 15:25:03.074 TestDB[1209:13403] [INFO] Creating test table 2012-11-02 15:25:03.076 TestDB[1209:13403] -[NSCFDictionary JSONString]: unrecognized selector sent to instance 0x7b63b40 2012-11-02 15:25:03.076 TestDB[1209:13403] *\ Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFDictionary JSONString]: unrecognized selector sent to instance 0x7b63b40' *\ First throw call stack: (0x1b9052 0x213cd0a 0x1baced 0x11ff00 0x11fce2 0x4ae3 0x3dbc 0xf5386d 0x18d966 0x18d407 0xf07c0 0xefdb4 0xefccb 0x27dd879 0x27dd93e 0x34fa9b 0x2966 0x2895) terminate called throwing an exception