mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-07-07 11:01:33 +08:00
✨ feat(editor): 支持 SQL 编辑器增删改事务提交
- 为 SQL 编辑器 DML 新增后端托管事务会话和提交回滚接口 - 增加手动提交与自动提交设置,并显示待提交状态 - 补充前后端事务执行、提交、回滚和自动提交测试
This commit is contained in:
@@ -130,12 +130,14 @@ type ResultSetData struct {
|
||||
|
||||
// QueryResult 是 Wails 绑定方法的统一响应格式,前端通过此结构体接收后端结果。
|
||||
type QueryResult struct {
|
||||
Success bool `json:"success"`
|
||||
Message string `json:"message"`
|
||||
Data interface{} `json:"data"`
|
||||
Fields []string `json:"fields,omitempty"`
|
||||
Messages []string `json:"messages,omitempty"`
|
||||
QueryID string `json:"queryId,omitempty"` // Unique ID for query cancellation
|
||||
Success bool `json:"success"`
|
||||
Message string `json:"message"`
|
||||
Data interface{} `json:"data"`
|
||||
Fields []string `json:"fields,omitempty"`
|
||||
Messages []string `json:"messages,omitempty"`
|
||||
QueryID string `json:"queryId,omitempty"` // Unique ID for query cancellation
|
||||
TransactionID string `json:"transactionId,omitempty"`
|
||||
TransactionPending bool `json:"transactionPending,omitempty"`
|
||||
}
|
||||
|
||||
// ColumnDefinition 描述表的一个列定义。
|
||||
|
||||
Reference in New Issue
Block a user