Hi,
Is there any way i can generate the sql file using Springliquibase without executing the scripts? i am using the below code to generate the sql file.
public class SpringLiquibaseWriter extends SpringLiquibase {
@Override</div>
public void afterPropertiesSet() throws LiquibaseException {</div>
try (Connection connection = getDataSource().getConnection()) {</div>
Liquibase liquibase = createLiquibase(connection);</div>
Writer writer;</div>
try {</div>
writer = new FileWriter("c:\\files\\temp.sql");</div>
System.out.println(getDataSource().getConnection().getMetaData().getURL());</div>
String s=null;</div>
liquibase.update(s,writer);</div>
</div>
super.afterPropertiesSet();</div>
writer.close();</div>
} catch (LiquibaseException | IOException e) {</div>
// handle</div>
}</div>
} catch (SQLException e1) {</div>
// TODO Auto-generated catch block</div>
e1.printStackTrace();</div>
}</div>
}</div>
</div>
</div>
}
But it is still not working. can you please help me?