baikaishuipp / mapper-parser

将mybatis mapper xml文件解析,获取解析结果 Parse the mybatis mapper xml file to obtain file structure information

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

Mybatis mapper xml file parser in pure python, get result contains:

  • namespace
  • resultMaps: contains start_line, end_line, content
  • sqls: contains start_line, end_line, content
  • statements: select/update/insert/delete statement, contains:start_line, end_line, content, statement_tag, result_map, include_sql

Installation

pip install mapper-parser

Instructions

from mapper_parser import mapper_parser

mapper_parser.parse(xml_filepath)

About

将mybatis mapper xml文件解析,获取解析结果 Parse the mybatis mapper xml file to obtain file structure information


Languages

Language:Python 100.0%