Google Gears - Database - VACUUM

Posted by Sirber on Stack Overflow See other posts from Stack Overflow or by Sirber
Published on 2010-04-13T19:08:34Z Indexed on 2010/04/13 19:13 UTC
Read the original article Hit count: 531

With this code:

var db = google.gears.factory.create('beta.database');
db.open('cominar');
db.execute('CREATE TABLE IF NOT EXISTS Ajax (AJAX_ID INTEGER PRIMARY KEY AUTOINCREMENT , MODULE TEXT, FUNCTION TEXT, CONTENT_JSON TEXT);');
db.execute('VACUUM;'); // nettoye la DB

I'm trying to clean the database (VACUUM) the database at each initialisation but I get this error:

Uncaught Error: Database operation failed. ERROR: authorization denied DETAILS: not authorized

The database was created by me (the same page).

Thank you!

© Stack Overflow or respective owner

Related posts about google-chrome

Related posts about google-gears