Closed surister closed 4 weeks ago
Implements extracting metadata using an AstBuilder to enrich a Statement
AstBuilder
Statement
Currently only gets the schema and table name.
Example:
stmt = sqlparse("SELECT A, B FROM doc.tbl1")[0] print(stmt.metadata) # Metadata(schema='doc', table_name='tbl1')
Sets the foundation for more features in the future, like #31 .
Summary of the changes / Why this is an improvement
Implements extracting metadata using an
AstBuilder
to enrich aStatement
Currently only gets the schema and table name.
Example:
Sets the foundation for more features in the future, like #31 .
Checklist