2007/7/27, Bayley, Alistair <[EMAIL PROTECTED]>:
> > Also, in Sqlite 3.4, they introduced new functions for incremental
> > reading / writing of Blobs. I could use them in the future.
>
> Seems reasonable. I recall Oleg saying something privately a while ago
> about an API for large objects. He may have some ideas for this.

A good idea could be to do the marshalling / unmarshalling of Blob as
CStringLen. It can then be used to construct PackedStrings and
ByteStrings in O(1), or doing some custom computations with it. A
CStringLen, even if contains Ptr CChar, can easily be converted to any
pointer type.

Another idea could be using custom bind function for blobs, but the
first solution is surely easier.

Salvatore
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to