sqlparse icon indicating copy to clipboard operation
sqlparse copied to clipboard

Unable to parse large files.

Open Hardhik opened this issue 5 years ago • 0 comments

I'm trying to parse a SQL schema dump file that I have created using mssql-scripter. It has about 47k lines and is less than 2MB.

When I run sqlparse on this file to remove comments using sqlparse.format(sqlFile.read(), strip_comments=True).strip() it only removes comments from about 1200+ lines from the beginning.

Is there any limitation to how big the file can be? Is it configurable? I couldn't see it from the readme.

Any pointers here will be very helpful :)

Hardhik avatar Dec 23 '20 06:12 Hardhik