Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
ctr-estimate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵建伟
ctr-estimate
Commits
8bd5b419
Commit
8bd5b419
authored
Apr 15, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
535b2b4e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ctr_pfr_crt_del.py
libs/ctr_pfr_crt_del.py
+2
-2
ctr_pfr_rct_del.py
libs/ctr_pfr_rct_del.py
+2
-2
No files found.
libs/ctr_pfr_crt_del.py
View file @
8bd5b419
...
@@ -39,8 +39,8 @@ class MysqlOperator:
...
@@ -39,8 +39,8 @@ class MysqlOperator:
# 删除或修改数据
# 删除或修改数据
def
del_or_update
(
sql
):
def
del_or_update
(
sql
):
#
operator = MysqlOperator('172.16.40.170', 4000, 'data_user', 'YPEzp78HQBuhByWPpefQu6X3D6hEPfD6', 'jerry_test')
operator
=
MysqlOperator
(
'172.16.40.170'
,
4000
,
'data_user'
,
'YPEzp78HQBuhByWPpefQu6X3D6hEPfD6'
,
'jerry_test'
)
operator
=
MysqlOperator
(
'172.18.44.3'
,
3306
,
'root'
,
'5OqYM^zLwotJ3oSo'
,
'jerry_test'
)
#
operator = MysqlOperator('172.18.44.3', 3306, 'root', '5OqYM^zLwotJ3oSo', 'jerry_test')
operator
.
execute_sql
(
sql
)
operator
.
execute_sql
(
sql
)
operator
.
close_connect
()
operator
.
close_connect
()
...
...
libs/ctr_pfr_rct_del.py
View file @
8bd5b419
...
@@ -37,8 +37,8 @@ class MysqlOperator:
...
@@ -37,8 +37,8 @@ class MysqlOperator:
# 删除或修改数据
# 删除或修改数据
def
del_or_update
(
sql
):
def
del_or_update
(
sql
):
#
operator = MysqlOperator('172.16.40.170', 4000, 'data_user', 'YPEzp78HQBuhByWPpefQu6X3D6hEPfD6', 'jerry_test')
operator
=
MysqlOperator
(
'172.16.40.170'
,
4000
,
'data_user'
,
'YPEzp78HQBuhByWPpefQu6X3D6hEPfD6'
,
'jerry_test'
)
operator
=
MysqlOperator
(
'172.18.44.3'
,
3306
,
'root'
,
'5OqYM^zLwotJ3oSo'
,
'jerry_test'
)
#
operator = MysqlOperator('172.18.44.3', 3306, 'root', '5OqYM^zLwotJ3oSo', 'jerry_test')
operator
.
execute_sql
(
sql
)
operator
.
execute_sql
(
sql
)
operator
.
close_connect
()
operator
.
close_connect
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment