Coder Social home page Coder Social logo

sqlparser's Introduction

SQLParser

通过一次遍历提取SQL相关信息的项目,为MYCAT2.0而设计

还需要完善的部分:

  • 注解语法catlet、db_type、sql、schema的提取
  • DCL、TCL语法支持
  • ""和''字符串支持 √
  • 注释支持 √
  • 生成sql语句hash值
  • 生成schema和table name的hash值 √
  • 支持获取limit条数 √

SQLContext考虑实现以下接口:

  1. sql语句个数(通过 ; 区分) √
  2. 单个sql语句中token位置,例如 [select(1), from(15), join(26)]
  3. 单个sql语句表名位置及其hash √
  4. 单个sql语句库名(与表名相关)位置及其hash √
  5. 是否包含注解 √
  6. 注解类型 √
  7. 注解语句 √
  8. sql关键字替换

sqlparser's People

Contributors

junwen12221 avatar ishotoli avatar lynseylin avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.