Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
11
def
collect_statements(sql: str) -> list[tuple[str, int]]:
12
return
list(statements_from_filehandle(StringIO(sql)))
13
14
15
def
test_statements_from_filehandle_splits_on_statements() -> None:
Callers
7
test_statements_from_filehandle_splits_on_statements
Function · 0.85
test_statements_from_filehandle_yields_trailing_statement_without_newline_01
Function · 0.85
test_statements_from_filehandle_yields_trailing_statement_without_newline_02
Function · 0.85
test_statements_from_filehandle_yields_trailing_statement_without_newline_03
Function · 0.85
test_statements_from_filehandle_yields_incorrect_sql
Function · 0.85
test_statements_from_filehandle_yields_invalid_sql_01
Function · 0.85
test_statements_from_filehandle_yields_invalid_sql_02
Function · 0.85
Calls
1
statements_from_filehandle
Function · 0.90
Tested by
no test coverage detected