macOS ◆ xterm-256color ◆ bash 1383 views

Kudos to Neil Kodner for the nifty idea to use watch :)

Full command:

watch -n 1 -x \
docker-compose exec mysql bash -c '\
  echo "SELECT * FROM ORDERS ORDER BY CREATE_TS DESC LIMIT 5;" | \
  mysql -u root -p$MYSQL_ROOT_PASSWORD demo'