in the Liquibase documentation the feature of writing the sql statements to standard out instead of executing it is introduced. Unfortunately it’s only documented for running Liquibase from the command line or Grails. I use the servlet listener and wonder how to configure the “output-only” behaviour. It would be great to redirect the output to a self defined stream or something like that.
Just to let you know some facts about the intention of my question: Often customers don’t allow the database user of the application to create and/or alter tables. If Liquibase detects that the user has insufficient privileges (I don’t know how to detect this either, but that’s another topic…), the SQL script should be generated, so a database administrator can execute it.
Thanks for your help.