2013-01-18 19 views
5

node.js'de bir mysql sorgusu için zaman aşımı nasıl belirlenir?Node.js - mysql sorgu zaman aşımı

/*...*/ 

var mysql = require("mysql"); 

/* ...*/ 

app.get("/", function(req, res) { 
    connection.query("SELECT ...", function(err, rows, fields) { 
/* I want this query to fail if the ^_ callback is not invoked within x seconds */ 

    }); 
} 

cevap

İlgili konular