storesafe / cordova-sqlite-evcore-extbuild-free

Cordova sqlite plugin with Android performance enhancements for PhoneGap Build, GPL v3 or commercial license options
Other
24 stars 13 forks source link

Creating Indexes #14

Closed markarupert closed 7 years ago

markarupert commented 7 years ago

Can indexes be created with this plugin? I got an error trying to create the following index for my table

CREATE INDEX timeStatusElogIdx ON elog (starttime, endtime, status)

brodycj commented 7 years ago

This should be possible though I have not tested this functionality. It would be great if you can show a small test program that demonstrates the problem. A couple bonus items:

markarupert commented 7 years ago

It worked fine on the cordova-sqlite-storage version. When I moved to this one is when I got the error.

I will give the database object a try and let you know.

markarupert commented 7 years ago

This did not give me an error:

                    db.executeSql("CREATE INDEX IF NOT EXISTS timeStatusElogIdx ON elog (starttime, endtime, status)", [], function (results) {
                        deviceLog("CREATE INDEX timeStatusElogIdx success", function (str) {console.log(str)});
                    }, function (err) {
                        deviceLog("CREATE INDEX timeStatusElogIdx Failed, err=" + err.message, function (str) {console.log(str)});
                    });
brodycj commented 7 years ago

Closing for now. Please report here or in a new issue if you have an error reproduction scenario.