cosmopolitan/third_party
Daniel Oltmanns afc07b9339
Proof of concept of sqlite serialization (#436)
* Proof of concept of sqlite serialization

This is a minimal proof of concept in order to show that it is easily possible to store the sqlite database within the zip file itself not requiring creating an external file first. Changes include compiling the sqlite library with the serialization flag, adding serialize/deserialize to the lua sqlite library and demonstrating the work via the redbean demo.

* Change demo for sqlite serialization

As explained in https://github.com/jart/cosmopolitan/pull/436#issuecomment-1164706893 the original use case is not possible with sqlite serialization, as an in-memory database cannot be shared across multiple processes. Thereby, this use case simply creates a backup of the in-memory database created in '.init.lua' and loads it to do a query.

* Fix sqlite3_deserialize parameters

The call to the sqlite3 library for the deserilization wasn't fully correct. This should fix the size parameters.
2022-10-05 07:09:53 -07:00
..
argon2 Fold LIBC_UNICODE into LIBC_STR 2022-08-13 08:42:32 -07:00
awk Remove stdio lock macros from amalgamation 2022-09-10 12:03:36 -07:00
bzip2 Pay off more technical debt 2022-09-12 23:36:56 -07:00
chibicc Rewrite brk() and sbrk() 2022-10-01 23:11:56 -07:00
compiler_rt Use private keyword on makefile target variables 2022-08-10 18:36:11 -07:00
dlmalloc Pay off more technical debt 2022-09-12 23:36:56 -07:00
double-conversion Fold LIBC_UNICODE into LIBC_STR 2022-08-13 08:42:32 -07:00
finger Fix Landlock Make so it can read pattern rule vars 2022-08-13 17:23:05 -07:00
gcc Revert whitespace fixes to third_party (#501) 2022-07-21 21:46:07 -07:00
gdtoa Remove stdio lock macros from amalgamation 2022-09-10 12:03:36 -07:00
getopt Fold LIBC_UNICODE into LIBC_STR 2022-08-13 08:42:32 -07:00
libcxx Get repository to build with GCC 11 2022-09-13 04:14:55 -07:00
linenoise Make important improvements 2022-09-14 22:39:08 -07:00
lua Improve redbean method=get parameter handling 2022-09-19 20:04:39 -07:00
lz4cli Fold LIBC_UNICODE into LIBC_STR 2022-08-13 08:42:32 -07:00
make Get repository to build with GCC 11 2022-09-13 04:14:55 -07:00
maxmind Fold LIBC_UNICODE into LIBC_STR 2022-08-13 08:42:32 -07:00
mbedtls Fix MbedTLS Cloudflare interop in MODE=tiny 2022-09-18 03:52:09 -07:00
musl Add getgroups and setgroups (#619) 2022-09-18 02:48:53 -07:00
nsync Introduce clock_nanosleep() 2022-10-05 06:37:15 -07:00
python fix MODE=dbg python build (#620) 2022-09-14 22:53:44 -07:00
quickjs Pay off more technical debt 2022-09-12 23:36:56 -07:00
regex Fold LIBC_UNICODE into LIBC_STR 2022-08-13 08:42:32 -07:00
sed Pay off more technical debt 2022-09-12 23:36:56 -07:00
smallz4 Pay off more technical debt 2022-09-12 23:36:56 -07:00
sqlite3 Proof of concept of sqlite serialization (#436) 2022-10-05 07:09:53 -07:00
stb Pay off more technical debt 2022-09-12 23:36:56 -07:00
tidy Get repository to build with GCC 11 2022-09-13 04:14:55 -07:00
unzip Put finishing touches on turfwar http server 2022-10-03 21:50:00 -07:00
xed Pay off more technical debt 2022-09-12 23:36:56 -07:00
zip Pay off more technical debt 2022-09-12 23:36:56 -07:00
zlib Fix MODE=dbg build 2022-10-03 22:58:00 -07:00
third_party.mk Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00