mirror of
https://github.com/Steffo99/unimore-bda-4.git
synced 2024-11-22 16:14:17 +00:00
18 lines
378 B
Bash
18 lines
378 B
Bash
|
#!/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"
|