Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Re : Using Liquibase Java API to generate SQL file from ChangeLog

$
0
0
Nathan,

Could you please explain what this writer parameter is?  I want to use updateSQL command without the Maven plugin using the command line tool.  I have already setup our db using Liquibase changelogs. 

I think, to generate SQL and save to a file,  I just need the same commands I used to create the db via LB,  but instead of update at the end of the command I need to use updateSQL > outfile.txt.  My concern however is that this would only generate the sql for the changelog that is specified in the command line.  How do I generate the sql for the entire db.  Can I simply exclude the changelog file,  but it is a required parameter.  Also, I believe the sql will be generated only for the specified user/schema, correct?

Thank you in advance for your response.

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>