-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add etl router #29
add etl router #29
Conversation
instance.run() | ||
.then(() => { | ||
response.send(200); | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
}); | ||
|
||
instance.run() | ||
.then(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
|
||
router.get('/', (request, response, next) => { | ||
|
||
db.get().then(db => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
const apiVersion = '1.0.0'; | ||
|
||
|
||
router.get('/', (request, response, next) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
var db = require('../../../db'); | ||
var resultFormatter = require("../../../result-formatter"); | ||
|
||
const apiVersion = '1.0.0'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
instance.run() | ||
.then(() => { | ||
response.send(200); | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
}); | ||
|
||
instance.run() | ||
.then(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
|
||
router.get('/', (request, response, next) => { | ||
|
||
db.get().then(db => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
const apiVersion = '1.0.0'; | ||
|
||
|
||
router.get('/', (request, response, next) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
var db = require('../../../db'); | ||
var resultFormatter = require("../../../result-formatter"); | ||
|
||
const apiVersion = '1.0.0'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
instance.run() | ||
.then(() => { | ||
response.send(200); | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
}); | ||
|
||
instance.run() | ||
.then(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
|
||
router.get('/', (request, response, next) => { | ||
|
||
db.get().then(db => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
const apiVersion = '1.0.0'; | ||
|
||
|
||
router.get('/', (request, response, next) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
var db = require('../../../db'); | ||
var resultFormatter = require("../../../result-formatter"); | ||
|
||
const apiVersion = '1.0.0'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
transactionRequest(transaction) { | ||
return new sql.Request(transaction); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
transactionRequest(transaction) { | ||
return new sql.Request(transaction); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
if (err) | ||
reject(err); | ||
resolve(true); | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
if (err) | ||
reject(err); | ||
resolve(true); | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
|
||
module.exports = class SqlConnection { | ||
startConnection() { | ||
return new Promise((resolve, reject) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
|
||
module.exports = class SqlConnection { | ||
startConnection() { | ||
return new Promise((resolve, reject) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
|
||
}; | ||
|
||
module.exports = class SqlConnection { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'class' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
|
||
}; | ||
|
||
module.exports = class SqlConnection { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'class' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
instance.run() | ||
.then(() => { | ||
response.send(200); | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
instance.run() | ||
.then(() => { | ||
response.send(200); | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
}, sql); | ||
|
||
instance.run() | ||
.then(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
}, sql); | ||
|
||
instance.run() | ||
.then(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
var SqlHelper = require('../../../sql-helper') | ||
var resultFormatter = require("../../../result-formatter"); | ||
|
||
const apiVersion = '1.0.0'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
var SqlHelper = require('../../../sql-helper') | ||
var resultFormatter = require("../../../result-formatter"); | ||
|
||
const apiVersion = '1.0.0'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
var router = new Router(); | ||
var FactPenjualanSummary = require('bateeq-module').etl.factPenjualanSummary; | ||
var db = require('../../../db'); | ||
var SqlHelper = require('../../../sql-helper') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
var router = new Router(); | ||
var FactPenjualanSummary = require('bateeq-module').etl.factPenjualanSummary; | ||
var db = require('../../../db'); | ||
var SqlHelper = require('../../../sql-helper') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
instance.run() | ||
.then(() => { | ||
response.send(200); | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
instance.run() | ||
.then(() => { | ||
response.send(200); | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
}, sql); | ||
|
||
instance.run() | ||
.then(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
var sqlConnection = sql.startConnection(); | ||
|
||
Promise.all([mongoDbConnection, sqlConnection]) | ||
.then(result => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
}, sql); | ||
|
||
instance.run() | ||
.then(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
var SqlHelper = require('../../../sql-helper') | ||
var resultFormatter = require("../../../result-formatter"); | ||
|
||
const apiVersion = '1.0.0'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
var sqlConnection = sql.startConnection(); | ||
|
||
Promise.all([mongoDbConnection, sqlConnection]) | ||
.then(result => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
var router = new Router(); | ||
var FactPenjualan = require('bateeq-module').etl.factPenjualan; | ||
var db = require('../../../db'); | ||
var SqlHelper = require('../../../sql-helper') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
var SqlHelper = require('../../../sql-helper') | ||
var resultFormatter = require("../../../result-formatter"); | ||
|
||
const apiVersion = '1.0.0'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
var router = new Router(); | ||
var FactPenjualan = require('bateeq-module').etl.factPenjualan; | ||
var db = require('../../../db'); | ||
var SqlHelper = require('../../../sql-helper') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
No description provided.