diff --git a/pydbapi/api/mysql.py b/pydbapi/api/mysql.py index 39c4902..3e46b7d 100644 --- a/pydbapi/api/mysql.py +++ b/pydbapi/api/mysql.py @@ -1,7 +1,7 @@ # @Author: chunyang.xu # @Email: 398745129@qq.com # @Date: 2020-06-10 14:40:50 -# @Last Modified time: 2021-03-08 15:10:02 +# @Last Modified time: 2021-03-10 17:37:02 # @github: https://github.com/longfengpili # !/usr/bin/env python3 @@ -96,10 +96,12 @@ def dumpdata(self, tablename, columns, dumpfile, condition=None, verbose=0): sqlcompile = SqlMysqlCompile(tablename) sql_for_dump = sqlcompile.dumpsql(columns, dumpfile, condition=condition) rows, action, result = self.execute(sql_for_dump, verbose=verbose) + mysqllogger.info("【{action}】{tablename} dumpdata {rows} rows succeed, outfile: {dumpfile} !") return rows, action, result def loaddata(self, tablename, columns, loadfile, verbose=0): sqlcompile = SqlMysqlCompile(tablename) sql_for_load = sqlcompile.loadsql(columns, loadfile) rows, action, result = self.execute(sql_for_load, verbose=verbose) + mysqllogger.info("【{action}】{tablename} loaddata {rows} rows succeed, loadfile: {loadfile} !") return rows, action, result diff --git a/setup.py b/setup.py index 4e37836..e430fd2 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ # @Author: chunyang.xu # @Email: 398745129@qq.com # @Date: 2020-06-09 16:46:54 -# @Last Modified time: 2021-03-10 17:13:31 +# @Last Modified time: 2021-03-10 17:37:18 # @github: https://github.com/longfengpili # !/usr/bin/env python3 @@ -12,7 +12,7 @@ import shutil import setuptools -VERSION = '0.0.48' +VERSION = '0.0.49' PROJECT_NAME = 'pydbapi' with open('README.md', 'r', encoding='utf-8') as f: