1
Fork 0
mirror of https://github.com/Steffo99/unimore-bda-4.git synced 2024-11-22 16:14:17 +00:00
bda-4-steffo/scripts/import-cratesio.sh

18 lines
378 B
Bash
Raw Normal View History

2022-11-25 08:31:19 +00:00
#!/usr/bin/env bash
set -e
export NEO4J_USERNAME="neo4j"
export NEO4J_PASSWORD="unimore-big-data-analytics-4"
repo=$(git rev-parse --show-toplevel)
cwd=$(pwd)
import_scripts=$(echo $repo/scripts/import-cratesio/$1*.cypher | sort)
cd "$repo"
for file in $import_scripts; do
echo "Executing $file..."
cypher-shell --fail-at-end --format verbose < $file
done
cd "$cwd"