xorm是否有办法设置查询超时 #1177

Closed
opened 2018-12-18 02:05:29 +00:00 by 84970000 · 1 comment
84970000 commented 2018-12-18 02:05:29 +00:00 (Migrated from github.com)

除了在dsn里面指定全局的超时,xorm有没有办法对于一个特定的sql请求指定超时时间

除了在dsn里面指定全局的超时,xorm有没有办法对于一个特定的sql请求指定超时时间
84970000 commented 2018-12-19 16:45:39 +00:00 (Migrated from github.com)

go的sql包里面提供了QueryContext来控制超时,xorm目前实现没有调用这个方法,后续应该可以增加接口来控制超时

go的sql包里面提供了QueryContext来控制超时,xorm目前实现没有调用这个方法,后续应该可以增加接口来控制超时
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/xorm#1177
No description provided.