|
|
|
|
|
by noisy_boy
1421 days ago
|
|
I wonder if this is a topical thread to check if anyone is aware of a Java based solution to parse a CREATE VIEW statement to get a mapping between the view columns and the corresponding source table columns. I checked out jsqlparser[0] and it does produce an AST which can be parsed using the visitor-pattern[1] but was wondering if there is a more "out-of-the-box" solution involving less work. Due to various reasons, querying the database information schema is not an option I can pursue. [0]: https://github.com/JSQLParser/JSqlParser [1]: https://en.wikipedia.org/wiki/Visitor_pattern |
|