MCPcopy Index your code
hub / github.com/andialbrecht/sqlparse / parse

Function parse

sqlparse/__init__.py:25–34  ·  view source on GitHub ↗

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
)

Source from the content-addressed store, hash-verified

23
24
25def 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
37def parsestream(

Callers

nothing calls this directly

Calls 1

parsestreamFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…