Skip to content

aimenux/CosmosDbCommandsDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.NET Core

CosmosDbCommandsDemo

Playing crud commands on cosmos db

In this demo, i m playing with CommandLineUtils library & TimeToLive feature in CosmosDb. I m providing commands/options to :

  • Insert documents in cosmos db ( .\App.exe Initialize)
  • Remove documents in cosmos db (.\App.exe Set --ttl 30 --from 2020-08-08 --to 2020-08-10)
❯ .\App.exe
Run commands on CosmosDb container

Usage: CosmosDbCommandsDemo [command] [options]

Options:
  -?|-h|--help  Show help information

Commands:
  Initialize    Inserting documents in cosmos db
  Set           Set TTL between [from] and [to] dates to [ttl] seconds

Run 'CosmosDbCommandsDemo [command] -?|-h|--help' for more information about a command.

Releases

No releases published

Packages

No packages published

Languages