-
Notifications
You must be signed in to change notification settings - Fork 188
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Self Checks
- This is only for bug report, if you would like to ask a question, please head to Discussions.
- I have searched for existing issues search for existing issues, including closed ones.
Version Type
CLI Version (npm package)
Version (only for Self Hosted)
0.7.22
Steps to reproduce
- Run
liam erd build --input db/structure.sql --format postgres --output-dir erd - Ensure the SQL file is large (tens of thousands of lines) with a long INSERT INTO schema_migrations section.
- Observe the “syntax error at end of input” warning.
Expected Behavior
The parser should handle large files
Actual Behavior
When generating an ERD from a large Rails structure.sql, the CLI throws:
WARN: Error during parsing schema file: syntax error at end of input
After testing, it’s not an actual SQL syntax issue. The error happens because the structure.sql file (specifically the INSERT INTO schema_migrations VALUES (...) block at the end) is extremely long.
If I manually delete from any part ~700 lines from that block, the build completes successfully.
Additional Context
Environment:
OS: macOS (can add yours)
DB: PostgreSQL
liam version: 0.7.22
Node.js version: v22.19.0
Temporary Workaround:
Manually remove INSERT INTO schema_migrations
brunowegoMH4GF and brunowego
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working