CLI cookbook: disabling LogSync for a dSource
This topic provides a simple example of how the nested state is represented and manipulated. The LogSync state is maintained in the sourcingPolicy property of dSources, itself an object with several different fields.
Procedure
Select the dSource to be changed and run the
update
command.CODEdelphix> database "example" delphix "example"> update
Get the current property using dot-delimited notation.
CODEdelphix "example" update *> get sourcingPolicy.logsyncEnabled true
The property could also be set using dot-delimited notation, but for illustrative purposes, we can also use the
edit
command and set it directly.CODEdelphix "example" update *> edit sourcingPolicy delphix "example" update sourcingPolicy *> set logsyncEnabled=false
Commit the state, either from within the editing context or after running
back
to return to the parent context.CODEdelphix "example" update sourcingPolicy *> commit delphix "example">