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

Issue 7819043: code review 7819043: database/sql: document non-open of Open; add Ping (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by bradfitz
Modified:
11 years, 1 month ago
Reviewers:
julienschmidt
CC:
golang-dev, r
Visibility:
Public.

Description

database/sql: document non-open of Open; add Ping Fixes issue 4804

Patch Set 1 #

Patch Set 2 : diff -r 77e6fc536a7d https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 77e6fc536a7d https://go.googlecode.com/hg/ #

Total comments: 2

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -2 lines) Patch
M src/pkg/database/sql/sql.go View 1 2 3 2 chunks +18 lines, -2 lines 0 comments Download

Messages

Total messages: 11
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 1 month ago (2013-03-14 19:41:04 UTC) #1
r
https://codereview.appspot.com/7819043/diff/4001/src/pkg/database/sql/sql.go File src/pkg/database/sql/sql.go (right): https://codereview.appspot.com/7819043/diff/4001/src/pkg/database/sql/sql.go#newcode271 src/pkg/database/sql/sql.go:271: // the dataSourceName: golang.org/issue/4804 update this comment? very odd ...
11 years, 1 month ago (2013-03-14 19:45:11 UTC) #2
bradfitz
On Thu, Mar 14, 2013 at 12:45 PM, <r@golang.org> wrote: > > https://codereview.appspot.**com/7819043/diff/4001/src/pkg/** > database/sql/sql.go<https://codereview.appspot.com/7819043/diff/4001/src/pkg/database/sql/sql.go> ...
11 years, 1 month ago (2013-03-14 19:56:49 UTC) #3
r
why don't you say that in the comments? -rob
11 years, 1 month ago (2013-03-14 20:00:39 UTC) #4
bradfitz
Because I don't want to guarantee that either, in case we let drivers do checks ...
11 years, 1 month ago (2013-03-14 20:06:07 UTC) #5
r
LGTM but consider naming https://codereview.appspot.com/7819043/diff/4001/src/pkg/database/sql/sql.go File src/pkg/database/sql/sql.go (right): https://codereview.appspot.com/7819043/diff/4001/src/pkg/database/sql/sql.go#newcode282 src/pkg/database/sql/sql.go:282: // Ping returns any error ...
11 years, 1 month ago (2013-03-14 20:09:01 UTC) #6
bradfitz
Connect isn't right, though. The database can be a local file, a single TCP connection, ...
11 years, 1 month ago (2013-03-14 20:22:56 UTC) #7
r
my concern about "Ping" is that it implies it's something you do as a keepalive, ...
11 years, 1 month ago (2013-03-14 20:40:33 UTC) #8
bradfitz
how about we call it: CheckAliveOrStillAlive On Thu, Mar 14, 2013 at 1:40 PM, Rob ...
11 years, 1 month ago (2013-03-14 20:49:51 UTC) #9
bradfitz
*** Submitted as https://code.google.com/p/go/source/detail?r=332e552cd896 *** database/sql: document non-open of Open; add Ping Fixes issue 4804 ...
11 years, 1 month ago (2013-03-14 21:06:49 UTC) #10
julienschmidt
11 years, 1 month ago (2013-03-14 21:10:56 UTC) #11
Message was sent while issue was closed.
Or just "Check" or "Alive"

On 2013/03/14 20:49:51, bradfitz wrote:
> how about we call it:
> 
> CheckAliveOrStillAlive
> 
> 
> On Thu, Mar 14, 2013 at 1:40 PM, Rob Pike <mailto:r@golang.org> wrote:
> 
> > my concern about "Ping" is that it implies it's something you do as a
> > keepalive, but unless i misunderstand it's really  part of (lowercase)
> > open.
> >
> > -rob
> >
Sign in to reply to this message.

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