"use strict";(function(){"use strict";var o=require("./jsUtil");var e=require("path");var s="db/diagConf";var r=require("sqlite3").verbose();function i(){var r=o.getRootPath();r=e.join(r,s);r=e.join(r,"offlineDiagscript");var i=e.resolve(r,"diagnose_rule.db");return i}exports.readAllRows=function(o,e,s,n,u,t,l){console.log("readAllRows diagnose_rule");var a=new r.Database(i());a.all("SELECT rowid, id, productType, keyword, problem, solution, minVersion, maxVersion FROM diagnose_rule",function(r,i){i.forEach(function(r){if(o==r.productType){e.push(r.id);s.push(r.keyword);n.push(r.problem);u.push(r.solution);t.push(r.minVersion);l.push(r.maxVersion)}else if(o=="未知"){e.push(r.id);s.push(r.keyword);n.push(r.problem);u.push(r.solution);t.push(r.minVersion);l.push(r.maxVersion)}});console.log("closeDb");a.close()})};function n(){}exports.test=n})();