Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1198)

Issue 5674084: code review 5674084: database/sql/driver: API cleanups (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by bradfitz
Modified:
12 years, 2 months ago
Reviewers:
CC:
golang-dev, r, rsc
Visibility:
Public.

Description

database/sql/driver: API cleanups -- add driver.Value type and documentation, convert from interface{} to Value where appropriate. -- don't say "subset" anywhere, -- SubsetValuer -> Valuer -- SubsetValue -> Value -- IsParameterSubsetType -> IsValue -- IsScanSubsetType -> IsScanValue Fixes issue 2842

Patch Set 1 #

Patch Set 2 : diff -r 1e3137b41422 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 1e3137b41422 https://go.googlecode.com/hg/ #

Total comments: 10

Patch Set 4 : diff -r 8759e83c1b14 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r c76997f376a5 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -113 lines) Patch
M src/pkg/database/sql/convert.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/database/sql/driver/driver.go View 1 2 3 5 chunks +24 lines, -27 lines 0 comments Download
M src/pkg/database/sql/driver/types.go View 1 2 3 9 chunks +30 lines, -50 lines 0 comments Download
M src/pkg/database/sql/fakedb_test.go View 1 2 3 7 chunks +8 lines, -8 lines 0 comments Download
M src/pkg/database/sql/sql.go View 1 2 3 10 chunks +28 lines, -26 lines 0 comments Download

Messages

Total messages: 7
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 2 months ago (2012-02-17 05:00:25 UTC) #1
r
LGTM but wait for others http://codereview.appspot.com/5674084/diff/3001/src/pkg/database/sql/driver/driver.go File src/pkg/database/sql/driver/driver.go (right): http://codereview.appspot.com/5674084/diff/3001/src/pkg/database/sql/driver/driver.go#newcode13 src/pkg/database/sql/driver/driver.go:13: // A driver Value ...
12 years, 2 months ago (2012-02-17 05:06:41 UTC) #2
rsc
LGTM http://codereview.appspot.com/5674084/diff/3001/src/pkg/database/sql/driver/driver.go File src/pkg/database/sql/driver/driver.go (right): http://codereview.appspot.com/5674084/diff/3001/src/pkg/database/sql/driver/driver.go#newcode189 src/pkg/database/sql/driver/driver.go:189: // DDLSuccess is a pre-defined Result for drivers ...
12 years, 2 months ago (2012-02-17 16:28:38 UTC) #3
bradfitz
Hello golang-dev@googlegroups.com, r@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 2 months ago (2012-02-20 03:03:17 UTC) #4
bradfitz
I think this is good now. Before I submit, though, I've changed the disliked DDLSuccess ...
12 years, 2 months ago (2012-02-20 03:05:24 UTC) #5
bradfitz
Russ LGTM'd on chat. On Mon, Feb 20, 2012 at 2:05 PM, Brad Fitzpatrick <bradfitz@golang.org>wrote: ...
12 years, 2 months ago (2012-02-20 03:12:50 UTC) #6
bradfitz
12 years, 2 months ago (2012-02-20 03:25:35 UTC) #7
*** Submitted as http://code.google.com/p/go/source/detail?r=2c15f43065c1 ***

database/sql/driver: API cleanups

-- add driver.Value type and documentation,
   convert from interface{} to Value where
   appropriate.
-- don't say "subset" anywhere,
-- SubsetValuer -> Valuer
-- SubsetValue -> Value
-- IsParameterSubsetType -> IsValue
-- IsScanSubsetType -> IsScanValue

Fixes issue 2842

R=golang-dev, r, rsc
CC=golang-dev
http://codereview.appspot.com/5674084
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b