cosmopolitan/tool/net/demo
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
..
.lua Add raw memory visualization tool to redbean 2022-05-14 04:33:58 -07:00
.init.lua LaunchBrowser by default in redbean-demo.com (#547) 2022-08-18 12:01:44 -07:00
.reload.lua Support OnHttpRequest Lua callback 2021-04-24 17:27:12 -07:00
404.html Remove trailing whitespace from all files (#497) 2022-07-20 20:31:16 -07:00
binarytrees.lua Add raw memory visualization tool to redbean 2022-05-14 04:33:58 -07:00
call-lua-module.lua Add raw memory visualization tool to redbean 2022-05-14 04:33:58 -07:00
closedsource.lua Add Lua compiler 2021-08-09 13:09:14 -07:00
crashreport.lua Make improvements 2022-04-24 10:06:05 -07:00
fetch.lua Do some work on redbean 2022-07-22 20:44:24 -07:00
finger.lua Add tcp syn packet fingerprinting to redbean 2022-07-17 02:43:49 -07:00
gensvg.lua Add gensvg demo to redbean (#524) 2022-08-03 05:21:41 -07:00
index.html Support OnHttpRequest Lua callback 2021-04-24 17:27:12 -07:00
maxmind.lua Add raw memory visualization tool to redbean 2022-05-14 04:33:58 -07:00
opensource.lua Add Lua compiler 2021-08-09 13:09:14 -07:00
printpayload.lua Add state assertions to redbean Lua APIs 2021-08-09 15:35:38 -07:00
redbean-form.lua Support OnHttpRequest Lua callback 2021-04-24 17:27:12 -07:00
redbean-xhr.lua Support OnHttpRequest Lua callback 2021-04-24 17:27:12 -07:00
redbean.css Support OnHttpRequest Lua callback 2021-04-24 17:27:12 -07:00
redbean.lua Polish redbean APIs and docs (#446) 2022-06-23 18:54:35 -07:00
script.lua Make improvements 2022-04-26 16:46:15 -07:00
seekable.txt Support OnHttpRequest Lua callback 2021-04-24 17:27:12 -07:00
sql-backup.lua Proof of concept of sqlite serialization (#436) 2022-10-05 07:09:53 -07:00
sql-backupstore.lua Proof of concept of sqlite serialization (#436) 2022-10-05 07:09:53 -07:00
sql.lua Tune SQLite build for redbean (#97) 2021-06-10 08:00:08 -07:00
store-asset.lua Add raw memory visualization tool to redbean 2022-05-14 04:33:58 -07:00
unix-dir.lua Make improvements 2022-04-26 16:46:15 -07:00
unix-finger.lua Add finger demo to redbean and fix regression 2022-06-23 03:42:05 -07:00
unix-info.lua Fix some example code 2022-04-29 08:19:09 -07:00
unix-raise.lua Make improvements 2022-04-26 16:46:15 -07:00
unix-rawsocket.lua Make improvements 2022-04-26 16:46:15 -07:00
unix-subprocess.lua Use Lua auto buffers when possible 2022-05-29 19:04:30 -07:00
unix-unix.lua Add unix domain socket support to redbean 2022-06-22 03:04:25 -07:00
unix-webserver.lua Make improvements 2022-04-26 16:46:15 -07:00
virtualbean.html Set up http://redbean.justine.lol/ demo server 2021-04-24 19:49:49 -07:00