← Về thư mục
evaluation/sqlite_executor.py
- _strip_leading_comments · function · L31-L44 — def _strip_leading_comments(sql: str) -> str
- _reject_write · function · L47-L75 — def _reject_write(sql: str) -> str | None
- _install_query_timeout · function · L78-L93 — def _install_query_timeout( conn: sqlite3.Connection, timeout_s: float | None, ) -> float | None
- _handler · function · L89-L90 — def _handler() -> int
- _clear_query_timeout · function · L96-L97 — def _clear_query_timeout(conn: sqlite3.Connection) -> None
- execute_readonly_rows · function · L100-L156 — def execute_readonly_rows( db_path: Path, sql: str, *, max_rows: int = 500, timeout_s: float | None = None, ) -> tuple[list[list[Any]], list[str], dict[str, Any]]
- execute_sqlite_query · function · L159-L216 — def execute_sqlite_query( db_path: Path, sql: str, *, max_rows: int = 500, max_cell_chars: int = 2000, timeout_s: float | None = None, ) -> tuple[str, dict[str, Any]]
- fmt_row · function · L206-L207 — def fmt_row(vals: list[str]) -> str