/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Public Attributes
DybPython::dbdumpload::DBDumpLoadArgs Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes

 parser

Detailed Description

Definition at line 146 of file dbdumpload.py.


Constructor & Destructor Documentation

def DybPython::dbdumpload::DBDumpLoadArgs::__init__ (   self,
  doc 
)

Definition at line 147 of file dbdumpload.py.

00148                             :
00149         parser =  argparse.ArgumentParser(description=doc, formatter_class=argparse.RawDescriptionHelpFormatter)
00150         parser.add_argument('dbsect', help='DBCONF section of source or target DB')
00151         parser.add_argument('cmd',    help='Command string', choices='dump load'.split() )
00152         parser.add_argument('path',   help='Input/Output path of mysqldump file ' )
00153         parser.add_argument( '-l', '--level', default="INFO", help='Logging level. Default %(default)s ')
00154         parser.add_argument( '-d', '--no-data', dest="no_data", action="store_true", default=False, help='mysqldump option that excluded table content in the dump, only table schema. Default %(default)s ')
00155         parser.add_argument( '-w', '--where', default="1=1",  help='Restricts rows dumped. Default %(default)s ')
00156         parser.add_argument( '-t', '--tables', default="",    help='Space delimited list of tables. Default %(default)s ')
00157         parser.add_argument( '-g', '--gbcheck', default=None,  help='Checks the gigabytes free when using `dump` using df for the directory of `path`. Default %(default)s ')
00158         parser.add_argument( '-a', '--append', action="store_true", help='Append to dump file rather than clobbering preexiting. Default %(default)s ')
00159         self.parser = parser


Member Function Documentation

def DybPython::dbdumpload::DBDumpLoadArgs::__call__ (   self,
  argl = None 
)

Definition at line 160 of file dbdumpload.py.

00161                                  :
00162         if argl:
00163             argl = argl.split() 
00164         args = self.parser.parse_args(argl)
00165         args.path = os.path.expandvars(os.path.expanduser(args.path))
00166         logging.basicConfig(level=getattr(logging,args.level.upper()))
00167         log.debug( "args %s " % pformat(vars(args)) )
00168         return args
00169 


Member Data Documentation

Definition at line 147 of file dbdumpload.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:55:40 for DybPython by doxygen 1.7.4