**User Cargo Workspace** - [ ] Split up some modules in crates **Config Handler** - [x] DB connection - [x] DB API - [x] `db::execute()` - Executes a single SQL statement and returns the number of affected records - [x] `db::query()` - Returns always an array of rows - [x] `db::query_row()` - Returns always the first row and skips the others - [x] `db::query_one()` - Strict, expects exactly one row to be returned **HTTP Handler** Expose an HTTP client (`fetch`) to Lua - [x] `Request` type - **Fields** - [x] status - [x] uri - [x] scheme - [x] port - [x] path - [x] authority - [x] query - [x] headers - **Methods** - [x] read - [x] text - [x] json - [ ] Client (`fetch`) - [ ] Implement `fetch(method, URL, headers, payload)` - [x] `Response` type - **Fields** - [x] status - [x] url - [x] scheme - [x] port - [x] path - [x] authority - [x] query - [x] content_length - [x] headers - **Methods** - [x] read - [x] text - [x] json **Templating (Mini Jinja)** - [x] Expose a template engine API - [x] render(name, table) - [ ] Add config feature **DB** - [x] Expose a DB connection API / sqlite for now - [ ] Add config feature **JSON** - [x] encode - [x] decode **Basic static files support** - [ ] Specific file serving (e.g. `./public` dir) **Datetime** - [ ] datetime **Regex** - [ ] regex **Utils** - [x] dbg **Tracing** - [ ] Add tracing - [ ] Add config feature for log levels **Configuration** - [ ] Create a configuration TOML file - [ ] Support Lua features setup - [ ] Routes per file script support based on glob patterns with replacements - [ ] Basic set features (defaults). **Runtime** - [x] Crate API for adding custom Lua globals like. - [x] Customizable Lua default globals.
User Cargo Workspace
Config Handler
db::execute()- Executes a single SQL statement and returns the number of affected recordsdb::query()- Returns always an array of rowsdb::query_row()- Returns always the first row and skips the othersdb::query_one()- Strict, expects exactly one row to be returnedHTTP Handler
Expose an HTTP client (
fetch) to LuaRequesttypefetch)fetch(method, URL, headers, payload)ResponsetypeTemplating (Mini Jinja)
DB
JSON
Basic static files support
./publicdir)Datetime
Regex
Utils
Tracing
Configuration
Runtime