Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

dpetrick/mongo-raw-cmd-experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mongo raw access experiment

Simple binary to allow for experiments. Just pipe a command doc over stdin into the binary or write it as first argument. Find the command syntax here: https://docs.mongodb.com/manual/reference/command/

Setup & Usage

  • Have a Rust toolchain.
  • cargo build to build the binary.
  • docker-compose up -d for the test MongoDB.
  • ./target/debug/mongo-commands <your-json-cmd-string> to invoke the binary with an arg.
  • OR: cat your.json | ./target/debug/mongo-commands to invoke the binary with stdin.

Examples

Take a look at the examples folder. Just use it like: cat ./examples/insert.json | ./target/debug/mongo-commands

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages