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

Issue 14087043: code review 14087043: database/sql: Improve package documentation

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by mattcottingham
Modified:
10 years, 6 months ago
Reviewers:
kisielk, bradfitz
CC:
golang-dev, kisielk, adg, r, rsc, dave_cheney.net, ahormann, bradfitz
Visibility:
Public.

Description

database/sql: Improve package documentation Adds implementation-independent documentation for connecting to and querying databases. Fixes issue 5886.

Patch Set 1 #

Patch Set 2 : diff -r 67b829e5a2a8 https://code.google.com/p/go #

Patch Set 3 : diff -r 67b829e5a2a8 https://code.google.com/p/go #

Total comments: 8

Patch Set 4 : diff -r 67b829e5a2a8 https://code.google.com/p/go #

Patch Set 5 : diff -r 67b829e5a2a8 https://code.google.com/p/go #

Patch Set 6 : diff -r 67b829e5a2a8 https://code.google.com/p/go #

Total comments: 8

Patch Set 7 : diff -r 24ea55b48f9f https://code.google.com/p/go #

Patch Set 8 : diff -r 24ea55b48f9f https://code.google.com/p/go #

Total comments: 2

Patch Set 9 : diff -r 24ea55b48f9f https://code.google.com/p/go #

Patch Set 10 : diff -r 24ea55b48f9f https://code.google.com/p/go #

Patch Set 11 : diff -r d2cb80eac1ac https://code.google.com/p/go #

Patch Set 12 : diff -r d2cb80eac1ac https://code.google.com/p/go #

Total comments: 2

Patch Set 13 : diff -r 35d5bae6aac8 https://code.google.com/p/go #

Patch Set 14 : diff -r 35d5bae6aac8 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M src/pkg/database/sql/sql.go View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 41
mattcottingham
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 6 months ago (2013-09-28 19:11:13 UTC) #1
nathany
https://codereview.appspot.com/14087043/diff/5001/src/pkg/database/sql/doc.go File src/pkg/database/sql/doc.go (right): https://codereview.appspot.com/14087043/diff/5001/src/pkg/database/sql/doc.go#newcode18 src/pkg/database/sql/doc.go:18: Open is used to open a database: maybe this ...
10 years, 6 months ago (2013-09-29 03:21:45 UTC) #2
kisielk
https://codereview.appspot.com/14087043/diff/5001/src/pkg/database/sql/doc.go File src/pkg/database/sql/doc.go (right): https://codereview.appspot.com/14087043/diff/5001/src/pkg/database/sql/doc.go#newcode36 src/pkg/database/sql/doc.go:36: result, err:= db.Exec( Maybe describe what the purpose of ...
10 years, 6 months ago (2013-09-29 05:37:12 UTC) #3
mattcottingham
Hello golang-dev@googlegroups.com, kamil.kisiel@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 6 months ago (2013-09-29 12:53:25 UTC) #4
mattcottingham
https://codereview.appspot.com/14087043/diff/5001/src/pkg/database/sql/doc.go File src/pkg/database/sql/doc.go (right): https://codereview.appspot.com/14087043/diff/5001/src/pkg/database/sql/doc.go#newcode18 src/pkg/database/sql/doc.go:18: Open is used to open a database: On 2013/09/29 ...
10 years, 6 months ago (2013-09-29 12:54:05 UTC) #5
kisielk
https://codereview.appspot.com/14087043/diff/18001/src/pkg/database/sql/doc.go File src/pkg/database/sql/doc.go (right): https://codereview.appspot.com/14087043/diff/18001/src/pkg/database/sql/doc.go#newcode18 src/pkg/database/sql/doc.go:18: Open is used to create a database handle (type ...
10 years, 6 months ago (2013-10-01 05:53:38 UTC) #6
mattcottingham
Thanks for the review. PTAL https://codereview.appspot.com/14087043/diff/18001/src/pkg/database/sql/doc.go File src/pkg/database/sql/doc.go (right): https://codereview.appspot.com/14087043/diff/18001/src/pkg/database/sql/doc.go#newcode18 src/pkg/database/sql/doc.go:18: Open is used to ...
10 years, 6 months ago (2013-10-01 18:15:44 UTC) #7
mattcottingham
Hello golang-dev@googlegroups.com, kamil.kisiel@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 6 months ago (2013-10-01 18:16:24 UTC) #8
kisielk
LGTM other than the spacing fix. Someone from the Go team should probably pick it ...
10 years, 6 months ago (2013-10-01 18:21:05 UTC) #9
mattcottingham
https://codereview.appspot.com/14087043/diff/37001/src/pkg/database/sql/doc.go File src/pkg/database/sql/doc.go (right): https://codereview.appspot.com/14087043/diff/37001/src/pkg/database/sql/doc.go#newcode36 src/pkg/database/sql/doc.go:36: result, err:= db.Exec( On 2013/10/01 18:21:05, kisielk wrote: > ...
10 years, 6 months ago (2013-10-01 18:30:32 UTC) #10
mattcottingham
Hello golang-dev@googlegroups.com, kamil.kisiel@gmail.com, adg@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 6 months ago (2013-10-01 18:31:19 UTC) #11
r
This comment is too long, and putting large code snippets in comments is poor design ...
10 years, 6 months ago (2013-10-01 19:33:08 UTC) #12
mattcottingham
On 2013/10/01 19:33:08, r wrote: > This comment is too long, and putting large code ...
10 years, 6 months ago (2013-10-01 20:30:13 UTC) #13
kisielk
Looks like there already some examples in example_test.go Could probably flesh out some more of ...
10 years, 6 months ago (2013-10-01 21:02:25 UTC) #14
r
There's an open bug to fix the documentation for package net. Please don't use it ...
10 years, 6 months ago (2013-10-01 21:17:09 UTC) #15
mattcottingham
On 2013/10/01 21:17:09, r wrote: > There's an open bug to fix the documentation for ...
10 years, 6 months ago (2013-10-01 21:46:04 UTC) #16
mattcottingham
On 2013/10/01 21:02:25, kisielk wrote: > Looks like there already some examples in example_test.go > ...
10 years, 6 months ago (2013-10-01 21:48:40 UTC) #17
r
We had a chat about this CL today. Here's what we think: 1) Brad Fitzpatrick ...
10 years, 6 months ago (2013-10-01 23:34:01 UTC) #18
r
In any case, making examples is always welcome. -rob
10 years, 6 months ago (2013-10-01 23:34:18 UTC) #19
mattcottingham
On 2013/10/01 23:34:01, r wrote: > We had a chat about this CL today. Here's ...
10 years, 6 months ago (2013-10-02 10:45:23 UTC) #20
mattcottingham
On 2013/10/01 23:34:18, r wrote: > In any case, making examples is always welcome. > ...
10 years, 6 months ago (2013-10-02 10:46:17 UTC) #21
rsc
On 2013/10/02 10:46:17, mattcottingham wrote: > On 2013/10/01 23:34:18, r wrote: > > In any ...
10 years, 6 months ago (2013-10-02 16:42:39 UTC) #22
mattcottingham
On 2013/10/02 16:42:39, rsc wrote: > On 2013/10/02 10:46:17, mattcottingham wrote: > > On 2013/10/01 ...
10 years, 6 months ago (2013-10-03 14:16:58 UTC) #23
rsc
On Thu, Oct 3, 2013 at 10:16 AM, <MattCottingham@gmail.com> wrote: > Could someone add me ...
10 years, 6 months ago (2013-10-03 15:00:27 UTC) #24
dave_cheney.net
On 2013/10/03 15:00:27, rsc wrote: > On Thu, Oct 3, 2013 at 10:16 AM, <mailto:MattCottingham@gmail.com> ...
10 years, 6 months ago (2013-10-04 01:08:55 UTC) #25
adg
On 4 October 2013 11:08, <dave@cheney.net> wrote: > @rsc, I don't know what you did, ...
10 years, 6 months ago (2013-10-04 01:12:56 UTC) #26
mattcottingham
Hello golang-dev@googlegroups.com, kamil.kisiel@gmail.com, adg@golang.org, r@golang.org, rsc@golang.org, dave@cheney.net (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 6 months ago (2013-10-06 19:50:57 UTC) #27
mattcottingham
On 2013/10/01 23:34:01, r wrote: > We had a chat about this CL today. Here's ...
10 years, 6 months ago (2013-10-06 19:56:23 UTC) #28
r
the package comment looks good. can someone more involved with SQL please review the examples?
10 years, 6 months ago (2013-10-08 16:25:02 UTC) #29
r
While we're waiting, please sign the CLA.
10 years, 6 months ago (2013-10-08 16:25:52 UTC) #30
ahormann
It would probably be best to collaborate with https://github.com/VividCortex/go-database-sql-tutorial/blob/master/README.md It's written by Baron Schwartz, one ...
10 years, 6 months ago (2013-10-08 18:17:51 UTC) #31
mattcottingham
On 2013/10/08 18:17:51, ahormann wrote: > It would probably be best to collaborate with > ...
10 years, 6 months ago (2013-10-08 19:31:57 UTC) #32
mattcottingham
On 2013/10/08 16:25:52, r wrote: > While we're waiting, please sign the CLA. Signed.
10 years, 6 months ago (2013-10-09 16:48:34 UTC) #33
mattcottingham_gmail.com
Will this need to be included in 1.2? I can remove the examples if they're ...
10 years, 6 months ago (2013-10-16 10:05:28 UTC) #34
bradfitz
https://codereview.appspot.com/14087043/diff/73001/src/pkg/database/sql/example_test.go File src/pkg/database/sql/example_test.go (right): https://codereview.appspot.com/14087043/diff/73001/src/pkg/database/sql/example_test.go#newcode54 src/pkg/database/sql/example_test.go:54: id, err := result.LastInsertId() I would probably move LastInsertId ...
10 years, 6 months ago (2013-10-16 16:27:01 UTC) #35
bradfitz
If you'd like to just get in the link at the top of the package ...
10 years, 6 months ago (2013-10-16 16:30:43 UTC) #36
mattcottingham
Hello golang-dev@googlegroups.com, kamil.kisiel@gmail.com, adg@golang.org, r@golang.org, rsc@golang.org, dave@cheney.net, arnehormann@gmail.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 6 months ago (2013-10-18 16:00:02 UTC) #37
mattcottingham
On 2013/10/16 16:30:43, bradfitz wrote: > If you'd like to just get in the link ...
10 years, 6 months ago (2013-10-18 16:00:25 UTC) #38
mattcottingham
On 2013/10/16 16:30:43, bradfitz wrote: > If you'd like to just get in the link ...
10 years, 6 months ago (2013-10-24 09:59:11 UTC) #39
bradfitz
LGTM
10 years, 6 months ago (2013-10-24 17:12:17 UTC) #40
bradfitz
10 years, 6 months ago (2013-10-24 17:13:26 UTC) #41
*** Submitted as https://code.google.com/p/go/source/detail?r=7ebbddd21330 ***

database/sql: link to wiki in package docs

Update issue 5886

R=golang-dev, kamil.kisiel, adg, r, rsc, dave, arnehormann, bradfitz
CC=golang-dev
https://codereview.appspot.com/14087043

Committer: Brad Fitzpatrick <bradfitz@golang.org>
Sign in to reply to this message.

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