Esempio n. 1
0
setInterval(function(){
  if (query != undefined || waited_queries.length < 1) {
    return;
  }
  query_plan = mock.query_plan(waited_queries[0]);
  query_schema = mock.schema(waited_queries[0]);
  query_result = mock.result(waited_queries[0]);
  query = waited_queries.shift();
}, 250);
Esempio n. 2
0
var getQueryPlan = function(success){
  if (query_plan == undefined) {
    success(mock.query_plan());
  }
  success(query_plan);
};