Skip to content

KylinHuang7/mysqlparser

Repository files navigation

mysqlparser

mysqlparser is a python lib for parsing MySQL statements.

Usage

import mysqlparser

sqlparser = mysqlparser.Parser()

sql = 'SELECT * FROM `dbData`.`tbTest` WHERE `iId` > 100 LIMIT 10'
result = sqlparser.parse(sql)
print(sqlparser.sql_list)
print(sqlparser.sql_list[0].database)
print(sqlparser.sql_list[0].table)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages