This directory indexes three SQLite examples for BAS applications: a basic Lua SQLite tutorial, a small URL-to-database wiki, and a shared-connection example focused on locking and connection management.
README.mdfor the directory overview and subexample selection.Tutorial/README.mdfor the basic form-driven SQLite tutorial.Wiki/README.mdfor URL-to-database mapping.Shared-Connection/README.mdfor shared connection and locking behavior.- The
.preloadand LSP files in the chosen subdirectory.
Use the official Markdown documentation bundles for BAS, Lua, LSP, SQLite integration, Mako Server, and Xedge deployment. Do not invent BAS, Lua, LSP, database, or storage APIs.
- BAS API bundle: https://realtimelogic.com/downloads/basapi.md
- BAS tutorials bundle: https://realtimelogic.com/downloads/tutorials.md
- Mako Server tutorials bundle: https://makoserver.net/download/tutorials.md
- Each subdirectory is its own example app and has its own run command.
- The patterns are usable with Mako and can be adapted for Xedge when SQLite support and writable persistent storage are available.
- Storage paths and persistence behavior must be reviewed for the target deployment.
Tutorial/: basic form-driven SQLite workflow usingwww/.preload,www/index.lsp, andwww/style.css.Wiki/: small wiki engine that maps URLs to database-backed content using startup logic, edit pages, and an index page.Shared-Connection/: shared SQLite access example with manual and automatic insert modes for observing locking behavior.
- Modify only the selected subexample unless the user asks for parity across all SQLite examples.
- Keep database initialization in
.preloadand request-specific behavior in LSP pages unless the subexample already has another pattern. - For Xedge, confirm the target has SQLite support and a suitable writable storage location before changing paths.
- Do not present these examples as production-ready database applications; they are focused teaching examples.
Run the selected subexample:
cd SQLite/Tutorial
mako -l::wwwcd SQLite/Wiki
mako -l::wwwcd SQLite/Shared-Connection
mako -l::wwwVerify database file creation/update behavior and the specific browser flow described in the selected README.