Sometimes I need to construct a data transformation changeSet based on results of a database query. This query could be made if Liquibase Core pass a database connection to Groovy Liquibase parser.
The core liquibase library has support for customChange classes and a more powerful extension system (liquibase.org/extension) that lets you do arbitrary work in a changeSet, including querying the database. I’m not sure if the groovy dsl supports either system, however.