github unkn0wn-root/resterm v0.22.0

latest releases: v0.39.4, v0.39.3, v0.39.2...
3 months ago

What's New

History is now backed by SQLite

  • History storage has moved from a JSON file to a SQLite database. This is a non-breaking change - on first launch your existing history.json is migrated automatically and everything keeps working as before.

Why?

  • The old JSON file was read and rewritten in full on every request. With SQLite, appends are single row inserts, reads are indexed, and concurrent access is safe. The database uses WAL mode and runs an integrity check on startup. If the file ever gets corrupted, it's quarantined automatically and a fresh one is created so you're never stuck.

New CLI: resterm history

With this release, there are couple of new subcommands available:

# export history to JSON (in case if you need backup or import some other place as structured content)
resterm history export --out ~/history-backup.json

# import history from a JSON export
resterm history import --in ~/history-backup.json

# create backup
resterm history backup --out ~/history.bak.db

# show database stats
resterm history stats

# run integrity check (quick or full)
resterm history check
resterm history check --full

# reclaim disk space
resterm history compact

Don't miss a new resterm release

NewReleases is sending notifications on new releases.