Install klint.
Format code:
ktlint --format
Lint:
ktlint
Build Docker image:
docker build -t rolldebee/sqlgen .
Run with Docker:
docker run --rm -it --name rolldebee-sqlgen -p 9898:9898 rolldebee/sqlgen
Generate for MySQL:
curl -X GET "http://localhost:9898/scripts/compose?db=mysql"
Generate for Oracle:
curl -X GET "http://localhost:9898/compose?db=red"