Code Monkey home page Code Monkey logo

cosmic's People

Contributors

creyke avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cosmic's Issues

Parameterisable queries

Provide the ability to parameterise a reusable query, so only variables can be passed to it each time.

Delete documents functionality

Deleting documents from an Azure Cosmos DB account is currently a painful operational process, so making this straightforward from the command line should be helpful.

This would be non-transaction.

Proposed syntax:

cosmic delete foo/db/container "SELECT * FROM c"

Reusable queries

Provide the ability to store and later execute a query, without having to specify it in detail each time.

Default container

Provide the ability to define a default container and execute queries against it without specifying it explicitly each time.

Ability to create containers

This should be basic and not overlap az cosmosdb significantly.

Proposed create database
cosmic create -d database -r 400

Proposed create containers
cosmic create -c container -r 400

Listing and deleting of these resources would also then arguably make sense.

Loop argument

Ability to loop on operation commands with -l 100.

For example...

cosmic upsert "{'id':%I%}" -l 3

...would execute the equivalent of...

cosmic upsert "{'id':0}"
cosmic upsert "{'id':1}"
cosmic upsert "{'id':2}"

Output list of stored queries

It would be useful to be able to see a list of the available stored queries.
It became apparent after I stored a query, went off to do something came back and had completely forgotten what I had called the query, I then had to dig around in the temp folder to find the name of the query

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.