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 = ['mysqlimport','mysqlimport5'] |
string | _cmd = '%(exepath)s --no-defaults --local --host=%(host)s --user=%(user)s --password=%(password)s --fields-optionally-enclosed-by="\\"" --fields-terminated-by=, --ignore-lines=1 %(database)s %(tabfile)s ' |
http://dev.mysql.com/doc/refman/5.0/en/mysqlimport.html `no-defaults` must be the first option `local` option needed, otherwise mysqlimport: Error: Can't get stat of ... the table must be pre-existing, otherwise 'tmp_offline_db.SimPmtSpecVld' doesn't exist, when using table: SimPmtSpecVld a bad import leads to NULLified rows 0 0000-00-00 00:00:00 0000-00-00 00:00:00 NULL NULL NULL NULL NULL 0000-00-00 00:00:00 0000-00-00 00:00:00
Definition at line 68 of file dbcmd.py.
def DybPython::dbcmd::MySQLImport::__call__ | ( | self, | ||
tabfile, | ||||
verbose = True | ||||
) |
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::MySQLImport::_exenames = ['mysqlimport','mysqlimport5'] [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] |