https://github.com/mrxiaozhuox/nu_plugin_sled
A Nushell plugin for managing sled databases.
https://github.com/mrxiaozhuox/nu_plugin_sled
Last synced: 29 days ago
JSON representation
A Nushell plugin for managing sled databases.
- Host: GitHub
- URL: https://github.com/mrxiaozhuox/nu_plugin_sled
- Owner: mrxiaozhuox
- License: mit
- Created: 2024-11-18T09:52:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-11-06T22:22:05.000Z (5 months ago)
- Last Synced: 2025-11-07T00:16:24.533Z (5 months ago)
- Language: Rust
- Size: 50.8 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nu - nu_plugin_sled
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.