ЛР 4 — БВТ2302 — Боданюк — на 5 #17
@@ -59,8 +59,9 @@ def compose(*args: str, stdin: str | None = None, timeout: float = 1800, check:
|
|||||||
|
|
||||||
|
|
||||||
def psql(sql: str) -> str:
|
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",
|
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:
|
def s3_bulk(op: str, keys: list[str]) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user