Liquibase updateSQL command as a service.
This service is useful for projects that treat Liquibase changelog
as single source of truth but deliver plain SQL files as well.
So, when developers finish updating the changelog, they can easily generate
the corresponding SQL files.
The result of running this service should be equal to the CLI command below:
/path/to/liquibase-3.8.9-bin/liquibase --url=offline:<db-type> --changeLogFile=/path/to/changelog.yml updateSQL
The service:
- currently supports only YAML changelogs (not JSON nor XML)
- generates SQL for MySql, MSSQL and Oracle databases
- replaces external SQL files inclusion with
-- Content placeholder (<file-name>)
- does not support external changelogs inclusion (will result in Bad Request)
docker run -d -p 8080:8080 polarfish/update-sql
mvn clean package && java -jar target/update-sql*.jar
mvn spring-boot:run