SledoView

A powerful console application for exploring and editing SLED database files

A Sled DB client as an interactive terminal featuring CRUD operations, search patterns, and autocompletion.

SledoView Terminal
$ sledoview my-database.db

SledoView - SLED Database Viewer
═══════════════════════════════════
✓ Database validation passed
✓ Successfully opened database: my-database.db
✓ Database is writable - modification commands available

Interactive SLED Database Viewer
Type 'help' for available commands or 'exit' to quit.

> set user_123 "John Doe"
✓ Successfully set key 'user_123'

> get user_123
Key: user_123
Size: 8 bytes
UTF-8: Yes
Value:
John Doe

> list user_*
Found 3 keys:
  1: user_001
  2: user_123
  3: user_admin

Available Commands

Command Description Example(s)
list Lists keys in the current tree. Supports optional glob or regex filtering. list — lists all keys
list user_* — lists keys starting with user_
get Retrieves and displays the value for a given key. get user_001 — shows the value for user_001
set Inserts or updates a key-value pair in the current tree. set user_001 '{"name":"Alice"}' — sets JSON value
set counter 42 — sets numeric value
delete Removes a key (and its value) from the current tree. delete user_001 — deletes the key user_001
trees Lists all trees in the database. trees — displays available trees
select Switches the active tree for subsequent commands. select sessions — changes active tree to sessions
unselect Returns to the default tree (removes active tree selection). unselect — goes back to the default tree

Example of working with the Sled DB file

SledoView - Tree Operations Demo

SledoView - SLED Database Viewer
═══════════════════════════════════
Validating database...
✓ Database validation passed
✓ Successfully opened database: sample_with_trees.db

Interactive SLED Database Client
Type 'help' for available commands or 'exit' to quit.
Use TAB for completion, type partial keys and TAB to auto-complete!

> trees
Found 11 trees:
  binary_data
  cache
  configuration
  logs
  metrics
  nonexistent_new_tree
  nonexistent_tree
  sessions
  settings
  settings`nlist`nunselect`nexit
  test_data
> select metrics
✓ Selected tree: metrics
[metrics]> list
Found 12 keys:
  1: cpu_usage:2024-01-01T10:00 = 45.2
  2: cpu_usage:2024-01-01T10:01 = 52.1
  3: cpu_usage:2024-01-01T10:02 = 38.7
  4: error_count:today = 2
  5: error_count:total = 45
  6: memory_usage:2024-01-01T10:00 = 1024.5
  7: memory_usage:2024-01-01T10:01 = 1156.8
  8: memory_usage:2024-01-01T10:02 = 987.3
  9: request_count:today = 234
  10: request_count:total = 15847
  11: response_time:avg = 125.4
  12: response_time:p95 = 450.2
[metrics]> delete response_time:avg
✓ Successfully deleted key response_time:avg
[metrics]> get memory_usage:2024-01-01T10:00

══════════════════════════════════════════════════
Key: memory_usage:2024-01-01T10:00
Size: 6 bytes
UTF-8: Yes
Value:
──────────────────────────────────────────────────
1024.5
══════════════════════════════════════════════════

[metrics]> unselect
✓ Tree unselected. Now working with the default tree.
>