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 = ['mysqldump','mysqldump5'] |
| string | _cmd = "time %(exepath)s --no-defaults --skip-opt --host=%(host)s --user=%(user)s --password=%(password)s %(database)s %(argline)s > %(path)s " |
Wrapper around a mysqldump command line that integrates
config parameters from the :file:`~/.my.cnf` with table list and
dumppath call arguments.
For background on mysqldump see http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html
Options used with the mysqldump command includes `--no-defaults` which
ensures the command is fully controlled by this script and does not depend on
users defaults. Also the `--skip-opt` is used to avoid an error when used by
with mysql identities without LOCK TABLES privilege::
mysqldump: Got error: 1044: Access denied for user 'dayabay'@'%' to database 'offline_db' when doing LOCK TABLES
Definition at line 87 of file dbcmd.py.
| def DybPython::dbcmd::MySQLDump::__call__ | ( | self, | ||
| tables, | ||||
| dumppath, | ||||
verbose = True | ||||
| ) |
Arguments are used to update the tables list and dumppath
Definition at line 92 of file dbcmd.py.
00093 ://dev.mysql.com/doc/refman/5.0/en/mysqldump.html 00094 00095 Options used with the mysqldump command includes `--no-defaults` which 00096 ensures the command is fully controlled by this script and does not depend on 00097 users defaults. Also the `--skip-opt` is used to avoid an error when used by 00098 with mysql identities without LOCK TABLES privilege::
| 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::MySQLDump::_exenames = ['mysqldump','mysqldump5'] [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] |
1.4.7