# add the use indexes option parser.add_option( "--use-indexes", action="store", type="string", default='', dest="use_indexes", help="for each table, indicate which index to use as if were a " "primary key (each of his columns must not allow null values)." ) # Add verbosity and quiet (silent) mode add_verbosity(parser, True) # Add difftype option add_difftype(parser, True) # Add the direction (changes-for) add_changes_for(parser) # Add show reverse option add_reverse(parser) # Add regexp add_regexp(parser) # Add ssl options add_ssl_options(parser) # Now we process the rest of the arguments. opt, args = parser.parse_args() # Fail if no db arguments or --all option. if len(args) == 0 and not opt.all:
dest="compact", help="compact output from a diff.") # Skip check of table options. parser.add_option("--skip-table-options", action="store_true", dest="skip_tbl_opts", help="skip check of all table options (e.g., " "AUTO_INCREMENT, ENGINE, CHARSET, etc.).") # Add verbosity and quiet (silent) mode add_verbosity(parser, True) # Add difftype option with SQL option add_difftype(parser, True) # Add the direction (changes-for) add_changes_for(parser, None) # Add show reverse option add_reverse(parser) # Now we process the rest of the arguments. opt, args = parser.parse_args() # Check security settings check_password_security(opt, args, "# ") # Warn if quiet and verbosity are both specified check_verbosity(opt) # Set options for database operations. options = {
default="False", dest="toggle_binlog", help="turn binary logging off during operation if enabled " "(SQL_LOG_BIN=1). Note: may require SUPER privilege. " "Prevents compare operations from being written to the " "binary log.", ) # Add verbosity and quiet (silent) mode add_verbosity(parser, True) # Add difftype option add_difftype(parser, True) # Add the direction (changes-for) add_changes_for(parser) # Add show reverse option add_reverse(parser) # Now we process the rest of the arguments. opt, args = parser.parse_args() # Warn if quiet and verbosity are both specified check_verbosity(opt) # Set options for database operations. options = { "quiet": opt.quiet, "verbosity": opt.verbosity, "difftype": opt.difftype,
# Skip check of table options. parser.add_option("--skip-table-options", action="store_true", dest="skip_tbl_opts", help="skip check of all table options (e.g., " "AUTO_INCREMENT, ENGINE, CHARSET, etc.).") # Add verbosity and quiet (silent) mode add_verbosity(parser, True) # Add difftype option with SQL option add_difftype(parser, True) # Add the direction (changes-for) add_changes_for(parser, None) # Add show reverse option add_reverse(parser) # Now we process the rest of the arguments. opt, args = parser.parse_args() # Check security settings check_password_security(opt, args, "# ") # Warn if quiet and verbosity are both specified check_verbosity(opt) # Set options for database operations. options = {