cosmopolitan/tool
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
..
args Pay off more technical debt 2022-09-12 23:36:56 -07:00
build Embed cocmd.com interpreter for system() / open() 2022-10-02 15:29:57 -07:00
decode Rewrite brk() and sbrk() 2022-10-01 23:11:56 -07:00
emacs Fix bug with sendfile() on XNU 2022-09-13 04:32:29 -07:00
hash Make important improvements 2022-09-14 22:39:08 -07:00
lambda Clean up some code 2022-08-20 12:32:51 -07:00
net Proof of concept of sqlite serialization (#436) 2022-10-05 07:09:53 -07:00
plinko Pay off more technical debt 2022-09-12 23:36:56 -07:00
scripts Introduce cosmocc and cosmoc++ toolchain commands 2022-09-20 04:34:03 -07:00
viz Rewrite brk() and sbrk() 2022-10-01 23:11:56 -07:00
tool.mk Make fixes and improvements 2022-06-18 01:46:12 -07:00