/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::MySQLDumpWhere Class Reference
Inheritance diagram for DybPython::dbcmd::MySQLDumpWhere:
Inheritance graph
[legend]
Collaboration diagram for DybPython::dbcmd::MySQLDumpWhere:
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 = "time %(exepath)s --no-defaults --skip-opt --extended-insert --quick %(no_data)s --host=%(host)s --user=%(user)s --password=%(password)s %(database)s %(tables)s --where \"%(where)s\" %(direct)s %(path)s "

Detailed Description

Unusual options:

--quick, -q

      This option is useful for dumping large tables. 
      It forces mysqldump to retrieve rows for a table from the server a row at a 
      time rather than retrieving the entire row set and
      buffering it in memory before writing it out.

Definition at line 218 of file dbcmd.py.


Member Function Documentation

def DybPython::dbcmd::MySQLDumpWhere::__call__ (   self,
  tables,
  dumppath,
  verbose = True 
)
Arguments are used to update the tables list and dumppath 

Definition at line 233 of file dbcmd.py.

00234                                                         :
00235         """Arguments are used to update the tables list and dumppath """
00236         self['tables']=" ".join(tables)
00237         self['path']=dumppath
00238         return CommandLine.__call__(self, verbose=verbose)
00239 

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::MySQLDumpWhere::_exenames = ['mysqldump','mysqldump5'] [static, private]

Definition at line 230 of file dbcmd.py.

string DybPython::dbcmd::MySQLDumpWhere::_cmd = "time %(exepath)s --no-defaults --skip-opt --extended-insert --quick %(no_data)s --host=%(host)s --user=%(user)s --password=%(password)s %(database)s %(tables)s --where \"%(where)s\" %(direct)s %(path)s " [static, private]

Definition at line 231 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