flora-sql-parser:将SQL(选择)语句解析为抽象语法树(AST),并将AST转换回SQL-源码

上传者: 42117037 | 上传时间: 2021-09-14 09:26:09 | 文件大小: 42KB | 文件类型: ZIP
Flora SQL解析器 将简单SQL语句解析为抽象语法树(AST),然后将其转换回SQL。 用法 为SQL语句创建AST const { Parser } = require ( 'flora-sql-parser' ) ; const parser = new Parser ( ) ; const ast = parser . parse ( 'SELECT * FROM t' ) ; console . log ( ast ) ; 将AST转换回SQL const { Parser } = require ( 'flora-sql-parser' ) ; const ast = (

文件下载

资源详情

[{"title":"( 45 个子文件 42KB ) flora-sql-parser:将SQL(选择)语句解析为抽象语法树(AST),并将AST转换回SQL-源码","children":[{"title":"flora-sql-parser-master","children":[{"title":".eslintrc <span style='color:#111;'> 193B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 127B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"ci.yml <span style='color:#111;'> 434B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"ast2sql","children":[{"title":"from.js <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"cte.js <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"util.js <span style='color:#111;'> 226B </span>","children":null,"spread":false},{"title":"mysql.js <span style='color:#111;'> 357B </span>","children":null,"spread":false},{"title":"where.js <span style='color:#111;'> 4.05KB </span>","children":null,"spread":false},{"title":"index.spec.js <span style='color:#111;'> 362B </span>","children":null,"spread":false},{"title":"select.js <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"column.js <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"literal.js <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"order.js <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"join.js <span style='color:#111;'> 4.45KB </span>","children":null,"spread":false},{"title":"having.js <span style='color:#111;'> 604B </span>","children":null,"spread":false},{"title":"groupby.js <span style='color:#111;'> 805B </span>","children":null,"spread":false},{"title":"limit.js <span style='color:#111;'> 488B </span>","children":null,"spread":false},{"title":"expr.js <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false}],"spread":false},{"title":"sql2ast","children":[{"title":"from.js <span style='color:#111;'> 5.13KB </span>","children":null,"spread":false},{"title":"cte.js <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"mysql.js <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"orderby.js <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"where.js <span style='color:#111;'> 3.33KB </span>","children":null,"spread":false},{"title":"index.spec.js <span style='color:#111;'> 434B </span>","children":null,"spread":false},{"title":"select.js <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"column.js <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"placeholder.js <span style='color:#111;'> 3.75KB </span>","children":null,"spread":false},{"title":"literal.js <span style='color:#111;'> 6.10KB </span>","children":null,"spread":false},{"title":"join.js <span style='color:#111;'> 4.24KB </span>","children":null,"spread":false},{"title":"having.js <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"row-value-constructor.js <span style='color:#111;'> 993B </span>","children":null,"spread":false},{"title":"groupby.js <span style='color:#111;'> 757B </span>","children":null,"spread":false},{"title":"limit.js <span style='color:#111;'> 737B </span>","children":null,"spread":false},{"title":"expr.js <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":".prettierrc <span style='color:#111;'> 99B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 14.52KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 74B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"sql.js <span style='color:#111;'> 8.76KB </span>","children":null,"spread":false},{"title":"util.js <span style='color:#111;'> 2.20KB </span>","children":null,"spread":false},{"title":"parser.js <span style='color:#111;'> 169B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":".eslintignore <span style='color:#111;'> 31B </span>","children":null,"spread":false},{"title":"sql.pegjs <span style='color:#111;'> 26.71KB </span>","children":null,"spread":false},{"title":".editorconfig <span style='color:#111;'> 198B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明