knex/scripts/docker-for-test.sh
Mikael Lepistö 15639d03db Build native sql for a dialect without to string (#2237)
* Exposed also positionBinding method to client base class and refactored calls to em

* Added toSQL().toNative() getter which returns dialect specfic sql and bindings.

* Refactored toSQL method implementation
2017-09-27 13:12:40 +03:00

15 lines
367 B
Bash

#!/usr/bin/env bash
if [ -n "$(docker info)" ]; then
DOCKER_IMAGES=("mysql:5.7" "postgres:9.6")
for image in ${DOCKER_IMAGES[@]}; do
if [ -z "$(docker images -q ${image})" ]; then
echo "Installing Docker image ${image}"
docker pull ${image}
else
echo "Docker image ${image} found!"
fi
done
fi