Ah, I see what you are saying. In that case, I can see how a tool might
be useful. We have written something like that recently using DaticalDB.
We have a command line interface for DaticalDB that is somewhat similar
to the one for Liquibase, but works with "project" files that
can contain connection information for multiple databases. The command
line itself is scriptable using groovy. We wrote a groovy script that
will do basically what is described above, but for multiple SQL files.
Right now our target databases are Oracle and MS SQL Server, so we use
their command line tools to apply the SQL scripts to the database, then
use the Liquibase diffChangelog command to 'convert' the SQL
that was applied to the database into XML changesets.
↧