Reading changelog properties in change (at runtime)

Hi,


Please see this page – http://www.liquibase.org/manual/changelog_parameters


When using Liquibase programmatically, how can I read the property values of the changelog (in this case <span class=“Apple-style-span” etc.) using Liquibase API?


Regards,

Shantanu

The current database type can be found with the Database.getTypeName() method.


There is a ChangeLogParameters object which can be gotten from the Liquibase object that has a getValue() method. So you can call liquibase.getChangeLogParameters().getValue(“clob.type”)


Nathan

first one.

u can use XMLChangeLogSerializer class for getting details about the changes information.


secondly,

u can get the database name and version by using Database interface.