summaryrefslogtreecommitdiff
path: root/scripts/insert-test-data.sh
diff options
context:
space:
mode:
authorOsCoder <oscoder@lczimmermann.eu>2026-09-11 15:48:53 +0200
committerOsCoder <oscoder@lczimmermann.eu>2026-09-11 15:48:53 +0200
commit962d2097adde8f690ef9768231122ede732a3681 (patch)
tree556d075efbc6ad06378775a02e86391920ea6244 /scripts/insert-test-data.sh
downloadpostgres_browser-962d2097adde8f690ef9768231122ede732a3681.tar.xz
postgres_browser-962d2097adde8f690ef9768231122ede732a3681.zip
Initial Commit with podman scripts
Diffstat (limited to 'scripts/insert-test-data.sh')
-rwxr-xr-xscripts/insert-test-data.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/insert-test-data.sh b/scripts/insert-test-data.sh
new file mode 100755
index 0000000..b817cce
--- /dev/null
+++ b/scripts/insert-test-data.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+podman exec -it pg-postgres-browser psql -U postgres -d testdb -c \
+ "CREATE TABLE clients (id serial PRIMARY KEY, label text, city text);
+ INSERT INTO clients (label, city) VALUES ('Anna Schmidt', 'Kiel'), ('Ben Weber', 'Flensburg');" \ No newline at end of file