Skip to content

Commit

Permalink
DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyMcCormick committed Jan 30, 2025
1 parent 501910c commit 32a369e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/test/load-tap-schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,18 @@ protocol=$(echo "$FELIS_ENGINE_URL" | awk -F '://' '{print $1}')

if [[ "$protocol" == *"mysql"* ]]; then
database="mysql"
echo "Detected mysql database"
elif [[ "$protocol" == *"postgresql"* ]]; then
database="postgresql"
echo "Detected postgresql database"
elif [[ "$protocol" == *"sqlite"* ]]; then
database="sqlite"
FELIS_ENGINE_URL="sqlite:///TAP_SCHEMA.db"
echo "Detected sqlite database"
else
echo "Error: FELIS_ENGINE_URL protocol must be one of 'mysql', 'postgresql' or 'sqlite'"
exit 1
fi

echo "Detected database type: $database"

# Initialize a variable to track if any command fails
error_occurred=0

Expand Down

0 comments on commit 32a369e

Please sign in to comment.