AI table not created in Cordova
nerdoza opened this issue · 0 comments
nerdoza commented
Which version are you using?
nano-sql/adapter-sqlite-cordova: 2.1.2
nano-sql/core: 2.3.7
Describe the bug
The Adapter-SQLite-Cordova
package does not initialize the Automatic Increment table before creating a table which causes an error: sqlite3_prepare_v2 failure: no such table: _ai
In the connect
method call, rather than calling complete
following the creation of the database, there should be a second call to create the _ai
table using createAI
as seen in other adapters.