MCPcopy Index your code
hub / github.com/dbcli/mycli / collect_statements

Function collect_statements

test/pytests/test_batch_utils.py:11–12  ·  view source on GitHub ↗
(sql: str)

Source from the content-addressed store, hash-verified

9
10
11def collect_statements(sql: str) -> list[tuple[str, int]]:
12 return list(statements_from_filehandle(StringIO(sql)))
13
14
15def test_statements_from_filehandle_splits_on_statements() -> None:

Calls 1

Tested by

no test coverage detected