-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
新增mssql 执行 #212
新增mssql 执行 #212
Conversation
LeoQuote
commented
May 17, 2019
•
edited
Loading
edited
- 实现engine 中的 execute 和 execute_workflow
Codecov Report
@@ Coverage Diff @@
## master #212 +/- ##
==========================================
+ Coverage 82.03% 82.16% +0.13%
==========================================
Files 64 64
Lines 7895 7964 +69
==========================================
+ Hits 6477 6544 +67
- Misses 1418 1420 +2
Continue to review full report at Codecov.
|
split_sql = [f"""use [{db_name}]"""] + sqlparse.split(sql) | ||
for statement in split_sql: | ||
check_result.rows.append(ReviewResult( | ||
id=1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是不是也可以自增
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
怎么做自增?在model里吗?
errormessage='None', | ||
sql=statement, | ||
affected_rows=cursor.rowcount, | ||
execute_time=0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
执行时间可以参考redis和oracle使用计时器获取
execute_time=0, | ||
)) | ||
rowid += 1 | ||
if execute_result.error: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
发现oracle的执行失败可以参考这个来,哈哈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果是一样可以提取到EngineBase中
* 实现engine 中的 execute 和 execute_workflow
5311d84
to
995eb36
Compare
关联issue #227 |