/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 | Properties | Static Private Attributes
DybPython::dbcmd::MySQLDumpDBI Class Reference
Inheritance diagram for DybPython::dbcmd::MySQLDumpDBI:
Inheritance graph
[legend]
Collaboration diagram for DybPython::dbcmd::MySQLDumpDBI:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __call__
def __str__
def __call__

Properties

 exepath = property( _exepath )
 cmd = property( lambda self:self._cmd % self )
 cmd_nopw = property( lambda self:self._cmd % dict(self, password="***") )

Static Private Attributes

list _exenames = ['mysqldump','mysqldump5']
string _cmd = ";"

Detailed Description

Does the dump in 2 steps, with output concatenated to a single dumpfile:

#. payload and validity tables
#. LOCALSEQNO table with a where clause, to only pluck entries relevant to the selected tables

Definition at line 188 of file dbcmd.py.


Member Function Documentation

def DybPython::dbcmd::MySQLDumpDBI::__call__ (   self,
  tables,
  dumppath,
  verbose = True 
)
Arguments control the tables list and dumppath 

:param tables: list of all tables to be dumped, including payload and validity tables 
:param dumppath: path of dump file

Definition at line 203 of file dbcmd.py.

00204                                                         :
00205         """
00206         Arguments control the tables list and dumppath 
00207 
00208         :param tables: list of all tables to be dumped, including payload and validity tables 
00209         :param dumppath: path of dump file
00210 
00211         """
00212         dbi_tables=filter(lambda t:t != 'LOCALSEQNO',tables)
00213         pay_tables=filter(lambda t:t[-3:] != 'Vld',dbi_tables)
00214         self['argline']=" ".join(dbi_tables)                  ## excludes LOCALSEQNO from initial dump
00215         self['path']=dumppath
00216         self['where'] = "TABLENAME in %s " % str(tuple( ['*'] + pay_tables ))
00217         return CommandLine.__call__(self, verbose=verbose)

def DybPython::dbcmd::CommandLine::__str__ (   self) [inherited]

Definition at line 30 of file dbcmd.py.

00031                      :
00032         return "%s %s " % (self.__class__.__name__, self.cmd_nopw )

def DybPython::dbcmd::CommandLine::__call__ (   self,
  kwa 
) [inherited]

Definition at line 33 of file dbcmd.py.

00034                              :
00035         verbose = kwa.pop('verbose', False)
00036         self.update(kwa)
00037         if verbose:
00038             log.info(self)
00039         else:
00040             log.debug(self)
00041         return os.popen(self.cmd).read()        


Member Data Documentation

list DybPython::dbcmd::MySQLDumpDBI::_exenames = ['mysqldump','mysqldump5'] [static, private]

Definition at line 196 of file dbcmd.py.

string DybPython::dbcmd::MySQLDumpDBI::_cmd = ";" [static, private]

Definition at line 197 of file dbcmd.py.


Property Documentation

DybPython::dbcmd::CommandLine::exepath = property( _exepath ) [static, inherited]

Definition at line 18 of file dbcmd.py.

DybPython::dbcmd::CommandLine::cmd = property( lambda self:self._cmd % self ) [static, inherited]

Definition at line 19 of file dbcmd.py.

DybPython::dbcmd::CommandLine::cmd_nopw = property( lambda self:self._cmd % dict(self, password="***") ) [static, inherited]

Definition at line 20 of file dbcmd.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