ЛР 4 — БВТ2302 — Боданюк — на 5 #17

Closed
wfa wants to merge 11 commits from wfa/mtusi2026lab4:solution/bvt2302-bodanyuk into main
Showing only changes of commit fc50362470 - Show all commits
+2 -1
View File
@@ -59,8 +59,9 @@ def compose(*args: str, stdin: str | None = None, timeout: float = 1800, check:
def psql(sql: str) -> str:
"""SQL through stdin: a 5000-row INSERT does not fit into a Windows command line (32 KiB)."""
return compose("exec", "-T", "postgres", "psql", "-U", "messenger", "-d", "messenger", "-At", "-v",
"ON_ERROR_STOP=1", "-c", sql).stdout.strip()
"ON_ERROR_STOP=1", "-f", "-", stdin=sql).stdout.strip()
def s3_bulk(op: str, keys: list[str]) -> None: