creyke / cosmic Goto Github PK
View Code? Open in Web Editor NEWA succinct and powerful command line query tool for Azure Cosmos DB
License: MIT License
A succinct and powerful command line query tool for Azure Cosmos DB
License: MIT License
This would enable patching of documents of documents without writing compiled code.
Automatically switch default to added connection if only connection available.
Propose -r
This ensures valid json can be parsed by another process.
Examples:
Provide the ability to parameterise a reusable query, so only variables can be passed to it each time.
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"
Propose list
%1%
, %2%
, etc...
This aligns to Cosmos official terminology.
Provide the ability to store and later execute a query, without having to specify it in detail each time.
Provide the ability to define a default container and execute queries against it without specifying it explicitly each time.
Propose active
Ability to specify arguments for a dynamic alias such as %FUTURE(HOURS, 1)%
.
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.
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}"
Ability to switch to a directory of curated queries and execute them by name.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.