GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - FishAngler/docdbcmd: Shell for running DocumentDb statements for automating commands to run against a documentdb database

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

docdbcmd

Shell for running DocumentDb statements for automating commands to run against a documentdb database given a javascript file. The idea is for developers to focus on creating JavaScript files that use the DocumentDB Node.js SDK without worrying about all the boilerplate code needed to execute the scripts.

Installation

You can install docdbcmd through NPM.

npm install docdbcmd

Usage

Now you can run it as such from the path where it was installed

node node_modules\docdbcmd "path\to\file.js" "https://docdbendpoint.documents.azure.com:443/" "key"

Sample Script

docdbcmd expects the js script passed in as an argument to have a single function called run that takes in a single parameter called client of type DocumentClient. From there it is up to the script to specify what to do. docdbcmd is also smart enough to know if the script returns a promise, a number, or something else and sets process.exitCode accordingly. Look at the samplescript.js for an example of the type of script you can run.

About

Shell for running DocumentDb statements for automating commands to run against a documentdb database

Resources

Readme
MIT license
Activity
Custom properties

Stars

2 stars

Watchers

9 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.