Database connection for Liquibase Groovy parser

I’m currently using a Groovy DSL for Liquibase (

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.

Do you think it’s possible?


The core liquibase library has support for customChange classes and a more powerful extension system ( 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. 

It may be worth checking with