Public Member Functions | |
def | __call__ |
def | __init__ |
def | __str__ |
def | __call__ |
Static Public Attributes | |
tuple | exepath = property( _exepath ) |
tuple | cmd = property( lambda self:self._cmd % self ) |
tuple | cmd_nopw = property( lambda self:self._cmd % dict(self, password="***") ) |
Static Private Attributes | |
list | _exenames = ['mysql','mysql5'] |
string | _cmd = "cat %(path)s | %(exepath)s --no-defaults --host=%(host)s --user=%(user)s --password=%(password)s %(database)s " |
Wrapper around sql loading commandline that hooks up to the config parameters from the :file:`~/.my.cnf`
Definition at line 34 of file dbcmd.py.
def DybPython::dbcmd::MySQLLoad::__call__ | ( | self, | ||
path, | ||||
verbose = True | ||||
) |
Arguments are used to update the tables list and dumppath
Definition at line 39 of file dbcmd.py.
00042 : 00043 """Arguments are used to update the tables list and dumppath """ 00044 assert os.path.exists(path), "MySQLLoad ERROR no mysqldump file at %s " % path 00045 assert self['database'].startswith('tmp_'), "MySQLLoad error invalid database name %r " % self 00046 self.update( path=path ) return CommandLine.__call__(self, verbose=verbose)
def DybPython::dbcmd::CommandLine::__init__ | ( | self, | ||
args, | ||||
kwa | ||||
) | [inherited] |
def DybPython::dbcmd::CommandLine::__str__ | ( | self | ) | [inherited] |
def DybPython::dbcmd::CommandLine::__call__ | ( | self, | ||
verbose = False | ||||
) | [inherited] |
list DybPython::dbcmd::MySQLLoad::_exenames = ['mysql','mysql5'] [static, private] |
tuple DybPython::dbcmd::CommandLine::exepath = property( _exepath ) [static, inherited] |
tuple DybPython::dbcmd::CommandLine::cmd = property( lambda self:self._cmd % self ) [static, inherited] |
tuple DybPython::dbcmd::CommandLine::cmd_nopw = property( lambda self:self._cmd % dict(self, password="***") ) [static, inherited] |