예제 #1
0
 public FlywayInfoOptionGroup()
 {
     Url                          = new FlywayUrlOption();
     Driver                       = new FlywayDriverOption();
     User                         = new FlywayUserOption();
     Password                     = new FlywayPasswordOption();
     ConnectRetries               = new FlywayConnectRetriesOption();
     InitSql                      = new FlywayInitSqlOption();
     DefaultSchema                = new FlywayDefaultSchemaOption();
     Schemas                      = new FlywaySchemasOption();
     Table                        = new FlywayTableOption();
     Locations                    = new FlywayLocationsOption();
     Color                        = new FlywayColorOption();
     JarDirs                      = new FlywayJarDirsOption();
     SqlMigrationPrefix           = new FlywaySqlMigrationPrefixOption();
     UndoSqlMigrationPrefix       = new FlywayUndoSqlMigrationPrefixOption();
     RepeatableSqlMigrationPrefix = new FlywayRepeatableSqlMigrationPrefixOption();
     SqlMigrationSeparator        = new FlywaySqlMigrationSeparatorOption();
     SqlMigrationSuffixes         = new FlywaySqlMigrationSuffixesOption();
     ValidateMigrationNaming      = new FlywayValidateMigrationNamingOption();
     Encoding                     = new FlywayEncodingOption();
     PlaceholderReplacement       = new FlywayPlaceholderReplacementOption();
     Placeholders                 = new FlywayPlaceholdersOption();
     PlaceholderPrefix            = new FlywayPlaceholderPrefixOption();
     PlaceholderSuffix            = new FlywayPlaceholderSuffixOption();
     Resolvers                    = new FlywayResolversOption();
     SkipDefaultResolvers         = new FlywaySkipDefaultResolversOption();
     Callbacks                    = new FlywayCallbacksOption();
     SkipDefaultCallbacks         = new FlywaySkipDefaultCallbacksOption();
     Target                       = new FlywayTargetOption();
     OutOfOrder                   = new FlywayOutOfOrderOption();
     WorkingDirectory             = new FlywayWorkingDirectoryOption();
     LicenseKey                   = new FlywayLicenseKeyOption();
 }
예제 #2
0
 public FlywayMigrateOptionGroup()
 {
     Url                          = new FlywayUrlOption();
     Driver                       = new FlywayDriverOption();
     User                         = new FlywayUserOption();
     Password                     = new FlywayPasswordOption();
     ConnectRetries               = new FlywayConnectRetriesOption();
     InitSql                      = new FlywayInitSqlOption();
     Schemas                      = new FlywaySchemasOption();
     Table                        = new FlywayTableOption();
     Locations                    = new FlywayLocationsOption();
     JarDirs                      = new FlywayJarDirsOption();
     SqlMigrationPrefix           = new FlywaySqlMigrationPrefixOption();
     UndoSqlMigrationPrefix       = new FlywayUndoSqlMigrationPrefixOption();
     RepeatableSqlMigrationPrefix = new FlywayRepeatableSqlMigrationPrefixOption();
     SqlMigrationSeparator        = new FlywaySqlMigrationSeparatorOption();
     SqlMigrationSuffixes         = new FlywaySqlMigrationSuffixesOption();
     Stream                       = new FlywayStreamOption();
     Batch                        = new FlywayBatchOption();
     Mixed                        = new FlywayMixedOption();
     Group                        = new FlywayGroupOption();
     Encoding                     = new FlywayEncodingOption();
     PlaceholderReplacement       = new FlywayPlaceholderReplacementOption();
     Placeholders                 = new FlywayPlaceholdersOption();
     PlaceholderPrefix            = new FlywayPlaceholderPrefixOption();
     PlaceholderSuffix            = new FlywayPlaceholderSuffixOption();
     Resolvers                    = new FlywayResolversOption();
     SkipDefaultResolvers         = new FlywaySkipDefaultResolversOption();
     Callbacks                    = new FlywayCallbacksOption();
     SkipDefaultCallbacks         = new FlywaySkipDefaultCallbacksOption();
     Target                       = new FlywayTargetOption();
     OutOfOrder                   = new FlywayOutOfOrderOption();
     ValidateOnMigrate            = new FlywayValidateOnMigrateOption();
     CleanOnValidationError       = new FlywayCleanOnValidationErrorOption();
     IgnoreMissingMigrations      = new FlywayIgnoreMissingMigrationsOption();
     IgnoreIgnoredMigrations      = new FlywayIgnoreIgnoredMigrationsOption();
     IgnoreFutureMigrations       = new FlywayIgnoreFutureMigrationsOption();
     CleanDisabled                = new FlywayCleanDisabledOption();
     BaselineOnMigrate            = new FlywayBaselineOnMigrateOption();
     BaselineVersion              = new FlywayBaselineVersionOption();
     BaselineDescription          = new FlywayBaselineDescriptionOption();
     InstalledBy                  = new FlywayInstalledByOption();
     ErrorOverrides               = new FlywayErrorOverridesOption();
     DryRunOutput                 = new FlywayDryRunOutputOption();
     OracleSqlplus                = new FlywayOracleSqlplusOption();
     LicenseKey                   = new FlywayLicenseKeyOption();
     DefaultSchema                = new FlywayDefaultSchemaOption();
     TableSpace                   = new FlywayTableSpaceOption();
     Color                        = new FlywayColorOption();
     ValidateMigrationNaming      = new FlywayValidateMigrationNamingOption();
     OutputQueryResults           = new FlywayOutputQueryResultsOption();
     OracleSqlplusWarn            = new FlywayOracleSqlplusWarnOption();
     WorkingDirectory             = new FlywayWorkingDirectoryOption();
 }
예제 #3
0
 public FlywayCleanOptionGroup()
 {
     Url                     = new FlywayUrlOption();
     Driver                  = new FlywayDriverOption();
     User                    = new FlywayUserOption();
     Password                = new FlywayPasswordOption();
     ConnectRetries          = new FlywayConnectRetriesOption();
     InitSql                 = new FlywayInitSqlOption();
     Schemas                 = new FlywaySchemasOption();
     Color                   = new FlywayColorOption();
     DefaultSchema           = new FlywayDefaultSchemaOption();
     JarDirs                 = new FlywayJarDirsOption();
     Callbacks               = new FlywayCallbacksOption();
     SkipDefaultCallbacks    = new FlywaySkipDefaultCallbacksOption();
     CleanDisabled           = new FlywayCleanDisabledOption();
     ValidateMigrationNaming = new FlywayValidateMigrationNamingOption();
     WorkingDirectory        = new FlywayWorkingDirectoryOption();
     LicenseKey              = new FlywayLicenseKeyOption();
 }
예제 #4
0
 public FlywayBaselineOptionGroup()
 {
     Url                     = new FlywayUrlOption();
     Driver                  = new FlywayDriverOption();
     User                    = new FlywayUserOption();
     Password                = new FlywayPasswordOption();
     ConnectRetries          = new FlywayConnectRetriesOption();
     InitSql                 = new FlywayInitSqlOption();
     DefaultSchema           = new FlywayDefaultSchemaOption();
     Schemas                 = new FlywaySchemasOption();
     Color                   = new FlywayColorOption();
     Table                   = new FlywayTableOption();
     TableSpace              = new FlywayTableSpaceOption();
     JarDirs                 = new FlywayJarDirsOption();
     Callbacks               = new FlywayCallbacksOption();
     SkipDefaultCallbacks    = new FlywaySkipDefaultCallbacksOption();
     BaselineVersion         = new FlywayBaselineVersionOption();
     BaselineDescription     = new FlywayBaselineDescriptionOption();
     ValidateMigrationNaming = new FlywayValidateMigrationNamingOption();
     WorkingDirectory        = new FlywayWorkingDirectoryOption();
     LicenseKey              = new FlywayLicenseKeyOption();
 }
예제 #5
0
        public FlywayConfiguration(Action <string, string> saver, Func <string, string[]> loader, string flywayPath = null, string configurationFilePath = null)
        {
            if (saver is null)
            {
                throw new ArgumentNullException(nameof(saver));
            }

            if (loader is null)
            {
                throw new ArgumentNullException(nameof(loader));
            }

            FlywayPath            = flywayPath;
            ConfigurationFilePath = configurationFilePath;
            Saver  = saver;
            Loader = loader;

            IsInMemory = string.IsNullOrWhiteSpace(ConfigurationFilePath);

            Prefix prefix = IsInMemory ? Prefix.Cli : Prefix.File;

            Url                          = new FlywayUrlOption(prefix: prefix);
            Driver                       = new FlywayDriverOption(prefix: prefix);
            User                         = new FlywayUserOption(prefix: prefix);
            Password                     = new FlywayPasswordOption(prefix: prefix);
            ConnectRetries               = new FlywayConnectRetriesOption(prefix: prefix);
            InitSql                      = new FlywayInitSqlOption(prefix: prefix);
            Schemas                      = new FlywaySchemasOption(prefix: prefix);
            Table                        = new FlywayTableOption(prefix: prefix);
            Locations                    = new FlywayLocationsOption(prefix: prefix);
            Resolvers                    = new FlywayResolversOption(prefix: prefix);
            SkipDefaultResolvers         = new FlywaySkipDefaultResolversOption(prefix: prefix);
            JarDirs                      = new FlywayJarDirsOption(prefix: prefix);
            SqlMigrationPrefix           = new FlywaySqlMigrationPrefixOption(prefix: prefix);
            UndoSqlMigrationPrefix       = new FlywayUndoSqlMigrationPrefixOption(prefix: prefix);
            RepeatableSqlMigrationPrefix = new FlywayRepeatableSqlMigrationPrefixOption(prefix: prefix);
            SqlMigrationSeparator        = new FlywaySqlMigrationSeparatorOption(prefix: prefix);
            SqlMigrationSuffixes         = new FlywaySqlMigrationSuffixesOption(prefix: prefix);
            Stream                       = new FlywayStreamOption(prefix: prefix);
            Batch                        = new FlywayBatchOption(prefix: prefix);
            PlaceholderReplacement       = new FlywayPlaceholderReplacementOption(prefix: prefix);
            Placeholders                 = new FlywayPlaceholdersOption(prefix: prefix);
            PlaceholderPrefix            = new FlywayPlaceholderPrefixOption(prefix: prefix);
            PlaceholderSuffix            = new FlywayPlaceholderSuffixOption(prefix: prefix);
            Target                       = new FlywayTargetOption(prefix: prefix);
            ValidateOnMigrate            = new FlywayValidateOnMigrateOption(prefix: prefix);
            CleanOnValidationError       = new FlywayCleanOnValidationErrorOption(prefix: prefix);
            CleanDisabled                = new FlywayCleanDisabledOption(prefix: prefix);
            BaselineVersion              = new FlywayBaselineVersionOption(prefix: prefix);
            BaselineDescription          = new FlywayBaselineDescriptionOption(prefix: prefix);
            BaselineOnMigrate            = new FlywayBaselineOnMigrateOption(prefix: prefix);
            OutOfOrder                   = new FlywayOutOfOrderOption(prefix: prefix);
            Callbacks                    = new FlywayCallbacksOption(prefix: prefix);
            SkipDefaultCallbacks         = new FlywaySkipDefaultCallbacksOption(prefix: prefix);
            IgnoreMissingMigrations      = new FlywayIgnoreMissingMigrationsOption(prefix: prefix);
            IgnoreIgnoredMigrations      = new FlywayIgnoreIgnoredMigrationsOption(prefix: prefix);
            IgnorePendingMigrations      = new FlywayIgnorePendingMigrationsOption(prefix: prefix);
            IgnoreFutureMigrations       = new FlywayIgnoreFutureMigrationsOption(prefix: prefix);
            Mixed                        = new FlywayMixedOption(prefix: prefix);
            Group                        = new FlywayGroupOption(prefix: prefix);
            InstalledBy                  = new FlywayInstalledByOption(prefix: prefix);
            ErrorOverrides               = new FlywayErrorOverridesOption(prefix: prefix);
            DryRunOutput                 = new FlywayDryRunOutputOption(prefix: prefix);
            OracleSqlplus                = new FlywayOracleSqlplusOption(prefix: prefix);
            Encoding                     = new FlywayEncodingOption(prefix: prefix);
            LicenseKey                   = new FlywayLicenseKeyOption(prefix: prefix);
            DefaultSchema                = new FlywayDefaultSchemaOption(prefix: prefix);
            TableSpace                   = new FlywayTableSpaceOption(prefix: prefix);
            Color                        = new FlywayColorOption(prefix: prefix);
            ValidateMigrationNaming      = new FlywayValidateMigrationNamingOption(prefix: prefix);
            OutputQueryResults           = new FlywayOutputQueryResultsOption(prefix: prefix);
            OracleSqlplusWarn            = new FlywayOracleSqlplusWarnOption(prefix: prefix);
            WorkingDirectory             = new FlywayWorkingDirectoryOption(prefix: prefix);
        }