Hi Mwnn

If you don't require persistent storage and always call
sqlite3_open[_v2]() with the filename ":memory:" for an in-memory
database, then yes you should be able to assign pMethods to NULL. In
fact if you only use ":memory:", you should be able to compile with
SQLITE_OMIT_DISKIO and you won't need a VFS at all. You may have to
check whether this compile option is supported by the amalgamation
source, if you use that.

Cheers,
Dave.


-----Original Message-----
From: mwnn [mailto:mwnn...@gmail.com] 
Sent: 02 September 2009 18:50
To: sqlite-users@sqlite.org
Subject: [sqlite] SQLite Porting: Adding new VFS

Hi all,
        I am working on porting SQLite on to a proprietary Operating
system. The 
application that uses SQLite keeps the database in memory.. So in this
case 
can I assign NULL to pMethods pointer in sqlite3_file structure.

Regards,
mwnn 

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to