selectparser:从SQL语句获取表

时间:2021-03-18 09:14:13
【文件属性】:
文件名称:selectparser:从SQL语句获取表
文件大小:4KB
文件格式:ZIP
更新时间:2021-03-18 09:14:13
Python 选择解析器 从SQL脚本文件中获取在有效SQL SELECT语句上使用的表。该实用程序是使用sqlparser库实现的。 用法 独立执行 python selectparser.py 在哪里: 使用SQL SELECT语句分析的filename文件 输出 打印SELECT语句中使用的表列表,包括子查询。列上使用的子选择尚未实现。 图书馆 from selectparser import get_tables_from_sql , get_tables_from_script get_tables_from_sql ( 'select * from table' ) # returns ['table'] get_tables_from_script ( filename ) # returns the tables used on filename
【文件预览】:
selectparser-main
----README.rst(854B)
----selectparser.py(2KB)
----requirements.txt(16B)
----LICENSE(1KB)
----README.md(853B)
----.gitignore(1KB)

网友评论