1
0
mirror of https://github.com/uptrace/go-clickhouse.git synced 2025-08-06 22:12:48 +02:00

feat: add proper Rows implementation and some optimizations

This commit is contained in:
Vladimir Mihailenco
2022-04-30 10:30:34 +03:00
parent c1e00ef235
commit 658ad14fc0
20 changed files with 1311 additions and 524 deletions

View File

@ -49,6 +49,11 @@ func (cn *Conn) RemoteAddr() net.Addr {
return cn.netConn.RemoteAddr()
}
func (cn *Conn) Reader(ctx context.Context, timeout time.Duration) *chproto.Reader {
_ = cn.netConn.SetReadDeadline(cn.deadline(ctx, timeout))
return cn.rd
}
func (cn *Conn) WithReader(
ctx context.Context,
timeout time.Duration,