mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
feat: 数据库sql执行支持取消执行操作
This commit is contained in:
@@ -196,9 +196,10 @@ export class DbInst {
|
||||
* @param sql sql
|
||||
* @param remark 执行备注
|
||||
*/
|
||||
async runSql(dbName: string, sql: string, remark: string = '') {
|
||||
async runSql(dbName: string, sql: string, remark: string = '', key: string = '') {
|
||||
return await dbApi.sqlExec.request({
|
||||
id: this.id,
|
||||
execId: key,
|
||||
db: dbName,
|
||||
sql: sql.trim(),
|
||||
remark,
|
||||
|
||||
Reference in New Issue
Block a user