コード例 #1
0
ファイル: Column.cs プロジェクト: yuxueliang/ComparePgsqlTool
 private void PrepareOptions()
 {
     OptionValueList.Add(new OptionValue
     {
         OptionName      = "is_nullable",
         ComparisonValue = "NO",
         ValueIfEqual    = "NOT NULL"
     });
 }
コード例 #2
0
 private void PreparerOptions()
 {
     OptionValueList.Add(new OptionValue
     {
         OptionName       = "rolcanlogin",
         ComparisonValue  = "True",
         ValueIfDifferent = "NOLOGIN",
         ValueIfEqual     = "WITH PASSWORD 'changeme' LOGIN"
     });
     OptionValueList.Add(new OptionValue
     {
         OptionName      = "rolsuper",
         ComparisonValue = "True",
         ValueIfEqual    = "SUPERUSER"
     });
     OptionValueList.Add(new OptionValue
     {
         OptionName      = "rolcreatedb",
         ComparisonValue = "True",
         ValueIfEqual    = "CREATEDB"
     });
     OptionValueList.Add(new OptionValue
     {
         OptionName      = "rolcreaterole",
         ComparisonValue = "True",
         ValueIfEqual    = "CREATEROLE"
     });
     OptionValueList.Add(new OptionValue
     {
         OptionName       = "rolinherit",
         ComparisonValue  = "True",
         ValueIfDifferent = "NOINHERIT",
         ValueIfEqual     = "INHERIT"
     });
     OptionValueList.Add(new OptionValue
     {
         OptionName       = "rolreplication",
         ComparisonValue  = "True",
         ValueIfDifferent = "NOREPLICATION",
         ValueIfEqual     = "REPLICATION"
     });
 }