cosmopolitan/tool/net
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
..
demo Proof of concept of sqlite serialization (#436) 2022-10-05 07:09:53 -07:00
tiny Fix bugs with recent change 2022-04-16 10:40:23 -07:00
.init.lua Add SSL to redbean 2021-06-24 13:20:50 -07:00
counters.inc Make some systemic improvements 2022-05-18 16:52:36 -07:00
definitions.lua Update definitions with latest help.txt changes 2022-08-17 21:57:08 -07:00
dig.c Restart CI for New Technology and UBSAN hunting 2022-03-21 04:32:57 -07:00
echo.c Change accept type to struct sockaddr * (#630) 2022-09-20 07:49:16 -07:00
favicon.ico Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
fetch.inc Improve redbean method=get parameter handling 2022-09-19 20:04:39 -07:00
help.txt Improve redbean method=get parameter handling 2022-09-19 20:04:39 -07:00
largon2.c WIP: Correct all typos (#498) 2022-07-20 14:01:15 -07:00
lfinger.c Add tcp syn packet fingerprinting to redbean 2022-07-17 02:43:49 -07:00
lfinger.h Add tcp syn packet fingerprinting to redbean 2022-07-17 02:43:49 -07:00
lfuncs.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
lfuncs.h Do some work on redbean 2022-07-22 20:44:24 -07:00
ljson.c Make important improvements 2022-09-14 22:39:08 -07:00
ljson.h Further improve JSON serialization 2022-07-11 23:06:49 -07:00
lmaxmind.c Fix important bugs in redbean 2022-09-17 02:18:06 -07:00
lpath.c Make improvements 2022-07-21 03:36:42 -07:00
lpath.h Make improvements 2022-07-21 03:36:42 -07:00
lre.c Fix re.NOSUB memory error (#645) 2022-10-02 12:49:23 -07:00
lsqlite3.c Proof of concept of sqlite serialization (#436) 2022-10-05 07:09:53 -07:00
luacheck.h Fix reporting of Lua stack items from various hook calls (#395) 2022-04-27 21:57:52 -07:00
net.mk Proof of concept of sqlite serialization (#436) 2022-10-05 07:09:53 -07:00
redbean-original.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
redbean-static.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
redbean-unsecure.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
redbean.c Permit multiple certs with same common name 2022-09-27 18:17:04 -07:00
redbean.png Make improvements 2020-09-14 00:02:34 -07:00
sandbox.h Strengthen the pledge() polyfill 2022-06-27 13:02:17 -07:00
wb.c Improve redbean method=get parameter handling 2022-09-19 20:04:39 -07:00