Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mrxiaozhuox/nu_plugin_sled

A Nushell plugin for managing sled databases.
https://github.com/mrxiaozhuox/nu_plugin_sled

Last synced: 18 days ago
JSON representation

A Nushell plugin for managing sled databases.

Awesome Lists containing this project

README

        

## nu_plugin_sled

This plugin can help you manage your [`sled`](https://github.com/spacejam/sled?tab=readme-ov-file) database in nushell.

### Usage:

```nushell
> { name: "nu_plugin_sled", id: 1, update_at: (date now) } | sled-save db

> sled-open db
╭───────────┬────────────────╮
│ id │ 1 │
│ name │ nu_plugin_sled │
│ update_at │ 1731923169 │
╰───────────┴────────────────╯

> sled-open db | update id 10086 | sled-save db

> sled-open db
╭───────────┬────────────────╮
│ id │ 10086 │
│ name │ nu_plugin_sled │
│ update_at │ 1731923169 │
╰───────────┴────────────────╯
```

### Data Structure

`nu_plugin_sled` using [`rmp-serde`](https://crates.io/crates/rmp-serde) convert struct & data to binary.