sledoview 1.1.0

A CLI tool for viewing and managing SLED database files
Documentation
��use sled;



fn main() -> Result<(), Box<dyn std::error::Error>> {

    let db = sled::open("test.db")?;

    

    db.insert("user_1", "Alice Smith")?;

    db.insert("user_2", "Bob Johnson")?;

    db.insert("config_timeout", "30")?;

    db.insert("config_debug", "true")?;

    db.insert("data_large", "This is a longer text value that should be truncated in the preview display to demonstrate the truncation feature")?;

    db.insert("empty_key", "")?;

    

    // Add some binary data

    db.insert("binary_data", &[0u8, 1u8, 2u8, 255u8])?;

    

    db.flush()?;

    println!("Sample database created successfully!");

    Ok(())

}