0

I want to parse sql file using python code and find any syntatical error present in the file. Is there any way to do it?

1 Answer 1

2

You can use https://github.com/tobymao/sqlglot

import sqlglot
sqlglot.parse_one("select (")
>> sqlglot.errors.ParseError: Expecting ). Line 1, Col: 8.

select (

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.