Skip to content

feat: 执行帧 Go context 与 Database\bind - #22

Merged
ctfang merged 2 commits into
mainfrom
feat/frame-context-on-main
Nov 12, 2026
Merged

ctfang merged 2 commits into
mainfrom
feat/frame-context-on-main

Conversation

@ctfang

@ctfang ctfang commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

为发布 v1.0.9,将本机 feat/frame-context-sql-executor 上的两笔提交 cherry-pick 到当前 main(已含 #21 ReflectionAttribute 修复)。

变更

  1. 执行帧 Go context(cff7a40 → 693d73e)
    • 在执行帧上保存 Go context
    • 子调用 / include 只继承帧上保存的 context,避免借用的 deadline 掩盖后续取消
  2. Database\bind(51286ed → 3671875)
    • Database\\bind 绑定 Database\\Sql 返回的 *sql.Tx
    • 查询优先使用该 executor,再回退连接池

cherry-pick 无冲突。原工作区未提交的改动未纳入。

ctfang and others added 2 commits November 12, 2026 23:09
Child calls and includes inherit only the context saved on the frame. Restoring that stored value keeps a borrowed call deadline from hiding a later cancellation.

Co-authored-by: Cursor <cursoragent@cursor.com>
Database\bind attaches the *sql.Tx returned by Database\Sql. The query uses that executor before the connection pool.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ctfang
ctfang merged commit 232c9ac into main Nov 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant