-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9577be
commit f8d92b5
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# @Author: chunyang.xu | ||
# @Email: [email protected] | ||
# @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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# @Author: chunyang.xu | ||
# @Email: [email protected] | ||
# @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: | ||
|