star
fork
License
Build Status
codecov
CII Best Practices
OpenTracing-1.0 Badge
Skywalking Tracing

Star Rating Growth TimelineContributor Growth Timeline
Stargazers over timeGitHub Contributor Over Time

Overview


M-SqlParserParse SQL statements and convert them into a hierarchy of Java classes.The resulting hierarchy can be navigated using the Visitor Pattern

连接,增强 and 可插拔 Is the core concept of M-SqlParser.

  • 连接:Through the flexible adaptation of database protocols, SQL dialects and database storage, quickly connect applications with multi-mode heterogeneous databases;
  • 增强:to be improved;
  • 可插拔:The project adopts a microkernel + three-layer pluggable model, so that the kernel, functional components and ecological docking can be fully pluggable and expandable in a flexible way, and developers can customize their own unique systems like building blocks.

Community and Support 💝🖤


Github

:link: GitHub Issues. Github Community | Suitable for design issues, bug reports or development related;

Gitee

:link: Gitee Issues. Gitee Community | Suitable for design issues, bug reports or development related;

Module description

|_ magnetic-parent                 #SQL解析引擎父模块-统一进行依赖模块版本管理以及外部依赖包管理
    |_ magnetic-parent-sqlparser   #SQL解析引sqlparser核心包声明
    |_ magnetic-parent-third       #第三方库,负责引入公共开源lib库版本定义、maven发布配置、环境配置等职责
    
---------------------------------
|_ magnetic-sql-parse 
    |_ magnetic-sql-parser-api         #SQL解析引擎注解、接口、工具类以及相关VO的定义
    |_ magnetic-sql-parser-common      #SQL解析引擎基础模块
    |_ magnetic-sql-parser-spi         #SQL解析引擎SPI拓展业务组
    |_ magnetic-sql-parser-binder      #SQL解析引擎元数据定义以及属性类型定义
    |_ magnetic-sql-parser-statement   #SQL解析引擎解析dal、ddl、tcl以及聚合函数、逻辑运算符、语法构建、语法提取等声明

---------------------------------

|_ magnetic-sql-parser-engine      #SQL解析引擎执行引擎

module dependency graph

graph TD;
    id13(magnetic-parent-sqlparser)-->id12(magnetic-parent)
    id14(magnetic-parent-sqlparser)-->id12(magnetic-parent)

    id12(magnetic-parent)-->id1(magnetic-sql-parser-api)
	id1(magnetic-sql-parser-api)-->id6(magnetic-sql-parser-common)
    id2(magnetic-sql-parser-binder)-->id4(magnetic-sql-parser-engine)
    id3(magnetic-sql-parser-statement)-->id4(magnetic-sql-parser-engine)
    id6(magnetic-sql-parser-common)-->id2(magnetic-sql-parser-binder)
    id6(magnetic-sql-parser-common)-->id3(magnetic-sql-parser-statement)
    id6(magnetic-sql-parser-common)-->id7(magnetic-sql-parser-executor)
    id6(magnetic-sql-parser-common)-->id8(magnetic-sql-parser-transaction-core)
    id6(magnetic-sql-parser-common)-->id9(magnetic-sql-parser-jdbc-core)
    id1(magnetic-sql-parser-api)-->id5(magnetic-sql-parser-spi)

Local Compilation Guide

1. Magnetic-parent build and install to private server or local warehouse

mvn install -s ~/.m2/settings-magnetic.xml -f pom.xml

Note: Build with local default or separate setting.xml

2. Add the magnetic-sql-parser-* series modules in turn to maven management only

:pencil: update notes

Core function update notes

#MSqlParser #MSqlParser #parses #SQL #statements #converts #hierarchy #Java #classesThe #resulting #hierarchy #navigated #Visitor #Pattern

Leave a Comment

Your email address will not be published. Required fields are marked *