Adds inline JSON config so wrappers and Lambda handlers can skip the temp-file dance.
New
SMUGMAP_CONFIG_JSON env var — pass the config directly instead of pointing at a file:
SMUGMAP_CONFIG_JSON='[{"pattern":"*.db","url":"s3://my-bucket/db"}]' \
LD_PRELOAD=./smugmap.so \
sqlite3 /remote/db "SELECT count(*) FROM events"
Takes precedence over SMUGMAP_CONFIG when both are set. SMUGMAP_CONFIG still works exactly as before.
Why
Programmatic setups (CDK constructs, npm wrappers, Lambda entry scripts, one-liner shell commands) previously had to:
- Serialize the config to JSON
- Write it to a temp file with
chmod 600 - Set
SMUGMAP_CONFIGto the path - Clean up on exit
With SMUGMAP_CONFIG_JSON, all of that collapses to setting one env var. The Quick Start and every example in the repo now use this shorter form.
Compatibility
Fully backward-compatible. No breaking changes. Existing SMUGMAP_CONFIG=/path/to/file setups keep working with no changes required.
Assets
| Platform | Asset |
|---|---|
| Linux x86_64 | smugmap-x86_64-linux.so |
| Linux aarch64 | smugmap-aarch64-linux.so |