DEV Community

Gregory Chris
Gregory Chris

Posted on

Stop flying blind with SLED, use Sledoview

Hey fellow devs! πŸ‘‹

If you've been working with Rust and embedded databases, chances are you've crossed paths with sledβ€”the "champagne of beta embedded databases." It's incredibly fast, written in pure Rust, and super reliable. But there's always been one minor annoyance: peeking inside a SLED database file hasn't exactly been straightforward.

Until now. Let me introduce you to Sledoview (GitHub Repo).

What is Sledoview? πŸ€”

Sledoview is a powerful console application that gives you an interactive terminal interface to perform CRUD operations right on your SLED database files. Think of it as an interactive control panel for your local .db files.

Getting started + Documentation

Sledoview sample usage

Instead of writing a temporary, throwaway Rust script just to print out the keys of your database to the console (come on, we've all been there), Sledoview lets you explore, search, edit, and manage your data right from your terminal.

Why it's useful, easy, and genuinely fun πŸš€

It genuinely makes working with embedded databases fun. It's like having the sqlite3 CLI, but tailor-made for SLED! Here's why you'll love it:

  1. Interactive REPL: Boot up the CLI and you're dropped into a smooth, interactive shell. No more clunky, one-off terminal commands. You just connect and flow.
  2. Autocomplete for commands and values
  3. History is stored in-memory per session
  4. Sled Tree Management: CRUD trees within Sled DB
  5. Pattern Matching: find a specific key woth glob or regex patterns. It feels like magic.
  6. Instant CRUD: Create, read, update, and delete key-value pairs instantly.

What's New? (The latest updates) πŸ†•

The project just keeps getting better, and the recent Changelog updates show that the tool has matured rapidly with its recent releases.

If you look at the recent changes, the developer has focused heavily on making the tool as frictionless as possible:

  • Smoother REPL Experience: UX improvements in the terminal make the interactive shell feel snappier, more robust, and more intuitive for daily drivers.
  • Better Tree Operations: Handling multiple trees is now much more seamless, minimizing friction when you're managing complex or deeply nested database structures.
  • Under-the-hood Polishing: Overall stability and general quality-of-life improvements, making the CLI highly reliable against weird edge cases.

Getting Started is a Breeze 🌬️

Download the release or easily build it from the source in seconds.

To build from source:

git clone https://github.com/sgchris/sledoview
cd sledoview
cargo build --release
Enter fullscreen mode Exit fullscreen mode

Top comments (0)