Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database issue #13

Open
vishvendu opened this issue Sep 26, 2013 · 9 comments
Open

Database issue #13

vishvendu opened this issue Sep 26, 2013 · 9 comments

Comments

@vishvendu
Copy link

var db = window.sqlitePlugin.openDatabase(" database", "1.0", "issue",200000);
or
var db = sqlitePlugin.openDatabase("database ", "1.0", "issue",200000);

Tried both but not able to insert the values in database (Window 8 platform).

Please help me out.

Thanks.

@biodiv
Copy link

biodiv commented Sep 26, 2013

Try to use a callback function. Your syntax will on all devices I tried fail for WP8 - it works with Android/iOS though.

var db = sqlitePlugin.openDatabase("database", "1.0", "database", -1, function () {

    if (db) {
        db.transaction(function(tx){
            tx.executeSql(...);
        });
    }
    else {
        console.log("database error");
    }
});

@vishvendu
Copy link
Author

This is not working for window 8....and i guess this plugin support windows 8 platform ??

@biodiv
Copy link

biodiv commented Sep 26, 2013

This Plugin is for Windows Phone 8. It only works with Phonegap 2.7 or lower.

@marcucio
Copy link
Owner

I have a solution for Windows 8 too but it needs to be cleaned up before I put it on github. Hopefully I will have time to circle back around to update this plugin after I complete this other big project I am working on.

On Sep 26, 2013, at 9:28 AM, biodiv [email protected] wrote:

This Plugin is for Windows Phone 8. It only works with Phonegap 2.7 or lower.


Reply to this email directly or view it on GitHub.

@vishvendu
Copy link
Author

I'm using phonegap 2.2.0 for WP8 hope it works.

@vishvendu
Copy link
Author

And is there any DLL i need to require for this plugin ??

@biodiv
Copy link

biodiv commented Sep 28, 2013

Yes, you need to include community.csharp.sqlite as a reference. The file is included in the package.

@mhd3000
Copy link

mhd3000 commented Sep 29, 2013

I didn't find community.csharp.sqlite..

@marcucio
Copy link
Owner

https://github.com/marcucio/Cordova-WP-SqlitePlugin/tree/master/Community.CsharpSqlite.WinPhone

On Sep 29, 2013, at 3:32 AM, mhd3000 [email protected] wrote:

I didn't find community.csharp.sqlite..


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants