New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to parse output from pg_dump? #99
Comments
@bjmc hi, thanks for reporting the issue! I will work on it today & release a fix after. |
@bjmc thanks for the sample - I added support for bunch cases based on your example. Now it is parsable and you can get output. Please, use version 0.22.6 it is released - https://pypi.org/project/simple-ddl-parser/ . I added also bunch of tests based on your sample - https://github.com/xnuinside/simple-ddl-parser/blob/main/tests/test_ddl_settings.py and https://github.com/xnuinside/simple-ddl-parser/blob/main/tests/test_sequences.py#L145 |
Wow, thanks for that incredibly fast response! I'll give the new version a test tomorrow and if it works, I'll close this issue. Thanks for your work on this project @xnuinside - it's very ambitious, and as far as I can tell, no one else is even attempting to offer something similar. |
This is a big help. It parses without throwing an exception now! I think there's still room for improvement in understanding the meaning of the Postgres schema. For example, the DDL contains
But in the parsed output, we see:
But the bug I reported is fixed, so closing this issue. |
I'm not sure if I'm using this wrong, but
DDLParser()
fails to parse the attached PostgreSQL schema output frompg_dump
schema.txt
Traceback:
Please feel free to close this issue if you don't intend to support this use-case.
The text was updated successfully, but these errors were encountered: