mirror of
https://github.com/Steffo99/unimore-bda-4.git
synced 2024-11-22 08:04:19 +00:00
18 lines
No EOL
378 B
Bash
Executable file
18 lines
No EOL
378 B
Bash
Executable file
#!/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" |