On Apr 8, 2008, at 2:03 AM, Ken wrote:

> Hi all,
>
> I'm trying to implement a vfs that will disable journalling.
>
> But i've hit a little stumbling block / learning curve.
>
> In the vfs implementation I need to implement a sqlite3_io_methods  
> type. Basically I'd like to get the default  sqlite3_io_methods and  
> use those as part of my code as follows:
>
> // IO_METHOD_OPEN
>   njOpen(..) {
>      if  (JOURNAL)  return ;
>
>     default_IO_Open(...) ;
>  }
>
>  // VFS call
>   nonJournalOpen ( ... ) {
>        static  sqlite3_io_methods njMethods   = {
>                           1,
>                     njOpen, ... } ;
>
>   }
>
>
> How do I get the address of  sqlites default I/O methods?

   sqlite3_vfs *pDefaultVfs = sqlite_vfs_find(0);

Dan.



>
> Thanks for any suggestions.
>
>
>
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

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

Reply via email to