Forward the lab 4 foundation and migrate the lab 5 pipeline to SQLAlchemy

This commit is contained in:
Artyom
2026-11-06 09:12:25 +03:00
parent ae9f60fe1f
commit 1217da5f5e
134 changed files with 8243 additions and 1409 deletions
+4
View File
@@ -32,6 +32,10 @@ def compose(*args: str, stdin: str | None = None) -> str:
return done.stdout.strip()
def restart_stack() -> None:
subprocess.run(["sh", "scripts/restart.sh"], cwd=ROOT, check=True, capture_output=True)
def psql(sql: str, **variables: str) -> str:
assigned = [item for name, value in variables.items() for item in ("-v", f"{name}={value}")]
command = ["exec", "-T", "postgres", "psql", "-U", "messenger", "-d", "messenger", "-tA"]