On Sun, Oct 03, 2010 at 06:31:41PM +0200, Pierre Krieger scratched on the wall:

> But the main reason why I would use streams is for other things like
> reading data from a socket or decrypting a file on-the-fly for example
> (these are just ideas)

  SQLite has some very specific requirements for VFS modules,
  especially in regards to locking.  It is likely that anything that
  is developed would need to be custom written with those factors in
  mind.

  Also be aware that VFS modules can be "stacked".  For example, you
  could write an encryption/decryption VFS that modified the memory
  buffers, but otherwise passed through all the actual I/O calls, as
  well as the locking calls, to the existing UNIX or Windows VFS
  module.  In that way, much of the flexibility of a stream based
  systems is already there, even if it requires a somewhat different
  implementation.

   -j

-- 
Jay A. Kreibich < J A Y  @  K R E I B I.C H >

"Intelligence is like underwear: it is important that you have it,
 but showing it to the wrong people has the tendency to make them
 feel uncomfortable." -- Angela Johnson
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to