2018-07-02 18:01:01 +08:00
|
|
|
const dtSqlParser=require("../index");
|
|
|
|
const example=require("./example");
|
|
|
|
const testMap=Object.entries(example);
|
2018-11-30 13:40:48 +08:00
|
|
|
const filterSql=dtSqlParser.filter.filterComments;
|
|
|
|
const splitSql=dtSqlParser.filter.splitSql;
|
2018-07-02 18:01:01 +08:00
|
|
|
|
|
|
|
for(let [key,value] of testMap){
|
|
|
|
console.log(`******${key}********`)
|
|
|
|
console.log(value)
|
|
|
|
console.log(`******result********`)
|
2018-11-30 13:40:48 +08:00
|
|
|
// console.log(dtSqlParser.parser.parseSyntax(value));
|
|
|
|
console.log(splitSql(filterSql(value)))
|
2018-07-02 18:01:01 +08:00
|
|
|
console.log(`********************`)
|
|
|
|
}
|
|
|
|
|