MCPcopy Index your code
hub / github.com/openai/plugins / sql_statements

Function sql_statements

plugins/codex-security/scripts/workbench_db.py:498–508  ·  view source on GitHub ↗
(script: str)

Source from the content-addressed store, hash-verified

496
497
498def sql_statements(script: str) -> list[str]:
499 statements: list[str] = []
500 buffer = ""
501 for line in script.splitlines():
502 buffer = f"{buffer}\n{line}".strip()
503 if sqlite3.complete_statement(buffer):
504 statements.append(buffer)
505 buffer = ""
506 if buffer:
507 raise ValueError("Incomplete SQLite migration statement.")
508 return statements
509
510
511def reject_nonstandard_json_number(value: str) -> None:

Callers 1

apply_migrationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected