go-sql-driver/mysql

Implement cursor support

Open

#1,053 创建于 2020年1月7日

在 GitHub 查看
 (4 评论) (7 反应) (0 负责人)Go (9,946 star) (1,789 fork)batch import
database/sql issueenhancementhelp wanted

描述

Issue description

In some cases it might be undesirable to fetch a potentially huge resultset at once.

MySQL provides cursors for that in the binary protocol (prepared statements).

First, a cursor flag has to be set in COM_STMT_EXECUTE, then the result chunks can be requested with the COM_STMT_FETCH command.

Initially, we will probably only support forward-only and read-only cursors. However the question remains, trough what interface we make this feature available.

贡献者指南

Implement cursor support · go-sql-driver/mysql#1053 | Good First Issue