Parse sql and return a list of statements. :param sql: A string containing one or more SQL statements. :param encoding: The encoding of the statement (optional). :returns: A tuple of :class:`~sqlparse.sql.Statement` instances.
(
sql: str, encoding: Optional[str] = None
)
| 23 | |
| 24 | |
| 25 | def parse( |
| 26 | sql: str, encoding: Optional[str] = None |
| 27 | ) -> Tuple[sql.Statement, ...]: |
| 28 | """Parse sql and return a list of statements. |
| 29 | |
| 30 | :param sql: A string containing one or more SQL statements. |
| 31 | :param encoding: The encoding of the statement (optional). |
| 32 | :returns: A tuple of :class:`~sqlparse.sql.Statement` instances. |
| 33 | """ |
| 34 | return tuple(parsestream(sql, encoding)) |
| 35 | |
| 36 | |
| 37 | def parsestream( |
nothing calls this directly
no test coverage detected
searching dependent graphs…