List of other settings
Journal
JournalTo(IJournal journal);
JournalTo(Func<Func<IConnectionManager>, Func<IUpgradeLog>, IJournal> createJournal);
Logging
LogScriptOutput(this UpgradeEngineBuilder builder);
LogTo(IUpgradeLog log);
LogToAutodetectedLog(this UpgradeEngineBuilder builder);
LogToConsole(this UpgradeEngineBuilder builder);
LogToNowhere(this UpgradeEngineBuilder builder);
LogToTrace(this UpgradeEngineBuilder builder);
ResetConfiguredLoggers(this UpgradeEngineBuilder builder);
Transaction options
WithTransaction(this UpgradeEngineBuilder builder);
WithTransactionAlwaysRollback(this UpgradeEngineBuilder builder);
WithTransactionPerScript(this UpgradeEngineBuilder builder);
WithoutTransaction(this UpgradeEngineBuilder builder);
Variable replacement
WithVariable(string variableName, string value);
WithVariables(IDictionary<string, string> variables);
WithVariablesDisabled(this UpgradeEngineBuilder builder);
WithVariablesEnabled(this UpgradeEngineBuilder builder);
Pre-processor
Writing your own pre-processor
WithPreprocessor(IScriptPreprocessor preprocessor);
Methods available after having setup DbUp
When all options have been supplied and .Build() has been run, the resulting UpgradeEngine-object will have the following methods available:
GetScriptsToExecute()- Show all scripts that will be executedGetExecutedScripts()- Show all scripts that have been executedIsUpgradeRequired()- ??? Verify that all scripts have already been run?MarkAsExecuted()- ??? Mark scripts as executed?TryConnect()- Attempt to connect to the configured databasePerformUpgrade()- Run all scripts that either haven't run or have the option RunAlways setLogScriptOutput()- Log the output from the scripts
UNSORTED
WithExecutionTimeout(TimeSpan? timeout);
WithFilter(IScriptFilter filter);