This repository was archived by the owner on Sep 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathtableSample.js
More file actions
44 lines (36 loc) · 1.53 KB
/
tableSample.js
File metadata and controls
44 lines (36 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//----------------------------------------------------------------------------------
// Microsoft Developer & Platform Evangelism
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
// EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
// OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
//----------------------------------------------------------------------------------
// The example companies, organizations, products, domain names,
// e-mail addresses, logos, people, places, and events depicted
// herein are fictitious. No association with any real company,
// organization, product, domain name, email address, logo, person,
// places, or events is intended or should be inferred.
//----------------------------------------------------------------------------------
var basicScenarios = require('./basic.js');
var advancedScenarios = require('./advanced.js');
runAzureTableSamples();
function runAzureTableSamples() {
console.log('\nAzure Cosmos DB Table API and Azure Table storage samples\n');
var scenarios = basicScenarios.concat(advancedScenarios);
var current = 0;
var callback = function (error) {
if (error) {
throw error;
} else {
if (current < scenarios.length)
console.log(scenarios[current].message);
current++;
if (current < scenarios.length) {
scenarios[current].action(callback);
}
}
};
scenarios[current].action(callback);
}