Skip to content

Instantly share code, notes, and snippets.

@amcintyre99
Created April 28, 2013 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amcintyre99/5478705 to your computer and use it in GitHub Desktop.
Save amcintyre99/5478705 to your computer and use it in GitHub Desktop.
var db = new odbc.Database()
var recursive = function (stmt) {
request/response
stmt.bindSync
stmt.execute {
........
result.closeSync()
}
setTimeout(function(){recursive(stmt)},1000)
}
db.open("DRIVER={DB2};........",function(err) {
if(err) {
console.log(chld,err)
db.close(function() {
})
} else {
var stmt = db.prepareSync(sqlc)
recursive(stmt)
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment