--
Christoph Kukulies
_______________________________________________
sqlite-users mailing list
sqlite...@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
void compress(sqlite3_context *context, int argc, sqlite3_value **argv)
{
assert(argc==1);
void *data = sqlite3_value_blob(argv[0]);
int nBytes = sqlite3_value_bytes(argv[0]);
// allocate memory for result
.....
sqlite3_result_blob(...);
}
--
Benoit Mortgat
20, avenue Marcel Paul
69200 Vénissieux, France
+33 6 17 15 41 58
+33 4 27 11 61 23
> SQLite does not compress your blob and you will have to do that
> programatically. However you can define your own with
> sqlite_create_function_v2(): the prototype of your function would be
>
There's an implementation in the fossil source repo:
http://fossil-scm.org/index.html/artifact/41357470cd8b147dcea8c684ed131ebf29643650?ln=53-105
--
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal