spiff-arena/bin/run_sql
Jon Herron 883e65384f Squashed 'spiffworkflow-backend/' content from commit 50f28073
git-subtree-dir: spiffworkflow-backend
git-subtree-split: 50f28073add91265f00826bd175c8b2fff76cdc5
2022-10-12 10:22:22 -04:00

26 lines
641 B
Bash
Executable File

#!/usr/bin/env bash
function error_handler() {
>&2 echo "Exited with BAD EXIT CODE '${2}' in ${0} script at line: ${1}."
exit "$2"
}
trap 'error_handler ${LINENO} $?' ERR
set -o errtrace -o errexit -o nounset -o pipefail
tables=(
message_model
message_instance
message_correlation
message_correlation_property
message_correlation_message_instance
)
for i in "${tables[@]}" ;do
echo "$i"
mysql -uroot -e "select * from spiffworkflow_backend_development.${i}"
done
echo "process_instance"
mysql -uroot -e "select id,process_model_identifier,process_group_identifier,status from spiffworkflow_backend_development.process_instance"