Exemple #1
0
 public BaselineCommand()
 {
     _databaseFeature         = Enable <DatabaseFeature>();
     _usernamePasswordFeature = Enable <UsernamePasswordFeature>();
     _scriptRootFeature       = Enable <ScriptRootFeature>();
     _loggingFeature          = Enable <LoggingFeature>();
 }
Exemple #2
0
        public UpdateCommand()
        {
            _databaseFeature         = Enable <DatabaseFeature>();
            _usernamePasswordFeature = Enable <UsernamePasswordFeature>();
            _scriptRootFeature       = Enable <ScriptRootFeature>();
            _defineVariablesFeature  = Enable <DefineVariablesFeature>();

            Options.Add("no-create", "If the database does not already exist, do not attempt to create it", v => _createIfMissing = false);

            _loggingFeature = Enable <LoggingFeature>();
        }
Exemple #3
0
        public UpdateCommand()
        {
            _databaseFeature         = Enable <DatabaseFeature>();
            _usernamePasswordFeature = Enable <UsernamePasswordFeature>();

            Options.Add(
                "s=|script-root=",
                "The root directory to search for scripts",
                v => _scriptRoot = v);

            _defineVariablesFeature = Enable <DefineVariablesFeature>();

            Options.Add("no-create", "If the database does not already exist, do not attempt to create it", v => _createIfMissing = false);

            _loggingFeature = Enable <LoggingFeature>();
        }
Exemple #4
0
 public LogCommand()
 {
     _databaseFeature         = Enable <DatabaseFeature>();
     _usernamePasswordFeature = Enable <UsernamePasswordFeature>();
     _loggingFeature          = Enable <LoggingFeature>();
 }