不要怂,就是干,撸起袖子干!

Commit b968ba36 by Sascha Depold

function that returns the needed database method

1 parent b1d18c2b
Showing with 8 additions and 0 deletions
...@@ -66,6 +66,14 @@ module.exports = (function() { ...@@ -66,6 +66,14 @@ module.exports = (function() {
//private //private
var onSuccess = function(results, metaData) { var onSuccess = function(results, metaData) {
var getDatabaseMethod = function() {
if (this.send('isInsertQuery') || this.send('isUpdateQuery')) {
return 'run'
} else {
return 'all'
}
}
var result = this.callee var result = this.callee
, self = this , self = this
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!