diff options
| author | Austin Clements <austin@google.com> | 2025-12-11 13:55:33 -0500 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2025-12-11 11:57:52 -0800 |
| commit | ae62a1bd365fca4c41d8b29d62cca240ab45b212 (patch) | |
| tree | db12680ce12e2f7efd5a05bc032a9e96f8e8d23c /src/database/sql/driver/driver.go | |
| parent | 89614ad264803558cfa36d460d431f7cbd4bae47 (diff) | |
| download | go-ae62a1bd365fca4c41d8b29d62cca240ab45b212.tar.xz | |
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 <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Diffstat (limited to 'src/database/sql/driver/driver.go')
| -rw-r--r-- | src/database/sql/driver/driver.go | 12 |
1 files changed, 0 insertions, 12 deletions
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 |
