Async CSV/COPY: import_csv / export_csv / import_text / export_text on AsyncConnection
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start in hyperdb-api/src/copy.rs at the listed Connection methods and compare them with AsyncClient::copy_in and copy_out. Review the existing TestConnection patterns in hyperdb-api/tests/ and examples in hyperdb-api/examples/. Done means all six AsyncConnection methods, real Hyper tests for each async path, and an async CSV import/export example with streaming I/O.
由索引模型根据 Issue 内容生成。
描述
Summary
The copy module is sync-only — import_csv, export_csv, import_text, export_text are all defined under impl Connection and have no async counterparts on AsyncConnection. Async users either block-on-thread or fall back to the Arrow path. The underlying primitives (AsyncClient::copy_in / copy_out) already exist, so this is plumbing, not new protocol work.
Current state
All four CSV/text COPY methods live in hyperdb-api/src/copy.rs:
Connection::export_csv— copy.rs:276Connection::export_text— copy.rs:320Connection::export_csv_string— copy.rs:365Connection::import_csv— copy.rs:401Connection::import_csv_with_header— copy.rs:415Connection::import_text— copy.rs:460
AsyncConnection exposes none of these. Original gap analysis: §4 of docs/RUST_API_GAP_ANALYSIS.md (predecessor repo).
Proposed work
- Add async equivalents on
AsyncConnection:export_csv,export_text,export_csv_string,import_csv,import_csv_with_header,import_text. Useimpl AsyncRead/AsyncWrite(fromtokio::io) instead ofstd::io::Read/Write. - Mirror the existing sync API surface and behavior exactly — same arguments, same return types, same error semantics.
- Add tests that exercise each async path against a real Hyper instance (use the existing
TestConnectionpatterns inhyperdb-api/tests/). - Add an example under
hyperdb-api/examples/demonstrating async CSV import + export.
Backwards compatibility
Purely additive. New methods on AsyncConnection only.
Performance note
The plumbing path is AsyncClient::copy_in/copy_out (already implemented). The async wrappers should stream through chunked I/O without buffering the full CSV — match the streaming behavior of the sync versions.
- 主要语言
- Rust
- 星标
- 3
- 派生
- 2
- 平均合并
- 22 小时 10 分钟
- 30 天内合并 PR
- 58
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tableau/hyper-api-rust 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
tableau/hyper-api-rust#294 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
tableau/hyper-api-rust#311 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
tableau/hyper-api-rust#305 ·
维护者通常 1 天内回复
-
Windows Named Pipe: verify DACL denies other users, and measure read-path perf for MCP workloads未关闭
难度 4/5 3-5 天 新手友好度 38/100
tableau/hyper-api-rust#302 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 72/100
tableau/hyper-api-rust#300 ·
维护者通常 1 天内回复
查看 tableau/hyper-api-rust 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 90/100
维护者通常 1 天内回复
-
agent:triaged bug bughunt pm:npm priority:p1
难度 2/5 1-3 小时 新手友好度 82/100
SocketDev/socket-patch#464 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复