替代方案

sql-metadata

macbre/sql-metadata

Uses tokenized query returned by python-sqlparse and generates query metadata