Skip to content

v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 22 Sep 11:26
· 1 commit to main since this release

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:

  1. Serialize the config to JSON
  2. Write it to a temp file with chmod 600
  3. Set SMUGMAP_CONFIG to the path
  4. 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