From c4a139c6efd572f90129e6bf7b6de73c9ca307eb Mon Sep 17 00:00:00 2001 From: Sebastian Lenzlinger <74497638+sebaschi@users.noreply.github.com> Date: Fri, 5 Jan 2024 19:09:47 +0100 Subject: [PATCH] Add instructions to wiki.md. Instructions how to load csv into db manually since script might not work because of access rights restrictions. --- docs/wiki.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/wiki.md b/docs/wiki.md index cb937d3..14311fa 100755 --- a/docs/wiki.md +++ b/docs/wiki.md @@ -22,4 +22,15 @@ deactivate See ``requirements.txt`` # Setting up postgres -# Setting up pgadmin as container serverd by nginx \ No newline at end of file +# Setting up pgadmin as container serverd by nginx + +# Load csv into db HOT FIX +Go to directory containing the csvs. +```bash +cd group-1/src/datasets/integrated/ && psql -h localhost -d proj_db -U sebl -p 5433 +``` +Then manually copy +```postgresql +\copy FootBikeCount FROM 'FootBikeCount.csv' WITH CSV HEADER +\copy mivcount FROM 'MivCount.csv' WITH CSV HEADER +``` \ No newline at end of file