should-snapshot-data
The should-snapshot-data
parameter is a Boolean that allows Liquibase to snapshot your database data. The default value is false
.
Uses
You can use the should-snapshot-data
parameter with the generate-changelog command. If you specify shouldSnapshotData=true
, the generate-changelog
command will include insert statements for the data in your database or <loadData>
if the dataDir
argument is set.
Note: The diff-changelog command does not compare data and therefore does not generate the data-related changesets, even if you have shouldSnapshotData=true
.
Syntax
You can set this parameter in the following ways:
Option | Syntax |
---|---|
Liquibase properties file (defaults file) |
|
Global flow file argument (example) |
|
Global CLI parameter |
|
JVM system property (JAVA_OPTS Environment Variable) |
|
Liquibase Environment Variables |
|
For more information, see Working with Command Parameters.