Crates.io | nu_plugin_mongo |
lib.rs | nu_plugin_mongo |
version | 0.1.1 |
source | src |
created_at | 2024-10-23 06:12:10.788194 |
updated_at | 2024-11-13 09:02:27.272672 |
description | A nushell plugin to interactive with mongodb |
homepage | https://github.com/WindSoilder/nu_plugin_mongo |
repository | https://github.com/WindSoilder/nu_plugin_mongo |
max_upload_size | |
id | 1419757 |
size | 1,016,634 |
A nushell plugin to interactive with mongodb.
Sometimes I want to explore mongodb data, but I don't want to open mongo
shell or python
to query mongodb data.
I want to have more lite weight tool to explore data. So here is the plugin.
mongoc
, not mongo
. Because I don't want to make the name conflict with official lagacy mongo cli.cargo
cargo install nu_plugin_mongo
Add and use the plugin: plugin add <nu_plugin_mongo_path>; plugin use mongo
Then you will gain some mongoc
commands to play with.
> mongoc
Operate with mongodb
You must use one of the following subcommands. Using this command as-is will only produce this help message.
Usage:
> mongoc
Subcommands:
mongoc find - find mongodb documents
mongoc find-one - find mongodb documents
mongoc list - list mongodb connections
mongoc list-colls - list all available collection names
mongoc list-indexes - find mongodb documents
mongoc open - open mongodb connection, the url must contains default databse
mongoc remove - remove mongodb handles
mongoc select - select current mongodb handle
Flags:
-h, --help: Display the help message for this command
Input/output types:
╭───┬─────────┬────────╮
│ # │ input │ output │
├───┼─────────┼────────┤
│ 0 │ nothing │ string │
╰───┴─────────┴────────╯