google nativeclient - SQLite in Native Client -


i trying use sqlite3 in native client application. there port available in chromium project, unable make run properly. problem that, reason, application unable open db since call sqlite3_open("/filename.db", &db); fails i/o error. mounted / html5fs file system.

has managed use sqlite native client? if so, see simple code opening db, create table, insert , select.

struggled day, found workaround skip disk i/o error specifying vfs parameter.

sqlite3_open_v2(filename, &db, sqlite_open_readwrite | sqlite_open_create | sqlite_open_nomutex, "unix-none"); 

for more information vfs, please see http://www.sqlite.org/vfs.html testing environment on chrome extension.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -