From ae62a1bd365fca4c41d8b29d62cca240ab45b212 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Thu, 11 Dec 2025 13:55:33 -0500 Subject: Revert "database/sql: allow drivers to override Scan behavior" This reverts CL 588435. This new API is difficult to use correctly, and in many cases cannot be used efficiently. We're going to work on this problem a bit more. The release notes are removed by CL 729340, since they were moved to the x/website repository since the original CL was made. Reopens #67546. Change-Id: I2a2bd25f2fce5f02e4d28cd33a9cc651bf35ab50 Reviewed-on: https://go-review.googlesource.com/c/go/+/729360 Reviewed-by: Damien Neil LUCI-TryBot-Result: Go LUCI Reviewed-by: Sean Liao --- src/database/sql/driver/driver.go | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/database/sql/driver') diff --git a/src/database/sql/driver/driver.go b/src/database/sql/driver/driver.go index 487870be63..d0892e80fc 100644 --- a/src/database/sql/driver/driver.go +++ b/src/database/sql/driver/driver.go @@ -515,18 +515,6 @@ type RowsColumnTypePrecisionScale interface { ColumnTypePrecisionScale(index int) (precision, scale int64, ok bool) } -// RowsColumnScanner may be implemented by [Rows]. It allows the driver to completely -// take responsibility for how values are scanned and replace the normal [database/sql]. -// scanning path. This allows drivers to directly support types that do not implement -// [database/sql.Scanner]. -type RowsColumnScanner interface { - Rows - - // ScanColumn copies the column in the current row into the value pointed at by - // dest. It returns [ErrSkip] to fall back to the normal [database/sql] scanning path. - ScanColumn(dest any, index int) error -} - // Tx is a transaction. type Tx interface { Commit() error -- cgit v1.3