Created
July 20, 2015 11:39
-
-
Save neurotech/7d2095e99a8900198978 to your computer and use it in GitHub Desktop.
Promise style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// One | |
edumate.query(config, sql, {clean: true}).then(function (results) { | |
console.log(results); | |
}, function (error) { | |
console.error(error); | |
}); | |
// Two | |
edumate.query(config, sql, {clean: true}) | |
.then(function (results) { | |
console.log(results); | |
}, function (error) { | |
console.error(error); | |
}); | |
// Three | |
edumate.query(config, sql, {clean: true}) | |
.then(function (results) { | |
console.log(results); | |
}, function (error) { | |
console.error(error); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment