forked from mtusi2026/mtusi2026lab2
12 lines
374 B
Bash
Executable File
12 lines
374 B
Bash
Executable File
#!/bin/sh
|
|
# Наполняет БД синтетической историей и печатает планы запросов пагинации.
|
|
set -eu
|
|
cd "$(dirname "$0")/.."
|
|
|
|
run_sql() {
|
|
docker compose --env-file .env exec -T postgres psql -U messenger -d messenger -v ON_ERROR_STOP=1 -q
|
|
}
|
|
|
|
run_sql < scripts/seed_history.sql
|
|
run_sql < scripts/explain_history.sql
|