MagicStack / MagicStack/asyncpg
TypeError: can't set attributes of built-in/extension type 'asyncpg.Record'
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 8.1k
- 派生
- 468
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi, I am trying to monkey patch the Record class (the getter) to get an history of every column that got accessed in the record (to only query what the user really need for the next n queries). However I cant do that, I got the error of the title.
I am pretty sure this is related to https://github.com/MagicStack/asyncpg/issues/451 and the strange nature of Record object.
I would like to know why Records are made like that and if you will change that. Right now I think I will re implement my driver class with another library if you dont have any workaround
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先从 asyncpg.Record 类及其 getter 行为入手,然后阅读相关的 asyncpg issue #451。确定支持属性变更或公开访问跟踪是否属于范围之内;完成的标准是由 maintainer 作出决定,并记录一种受支持的方法,或明确解释该限制。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- postgresql, python
- 领域
- databases
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 20/100