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

Issue 44920043: code review 44920043: database/sql: add more executable examples

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 4 months ago by mattcottingham
Modified:
9 years, 4 months ago
Reviewers:
CC:
golang-codereviews, gobot, bradfitz
Visibility:
Public.

Description

database/sql: add more executable examples This follows on and incorporates the comments from CL 14087043. Examples for Begin, Exec and LastInsertID have been added. An extended example showing a prepared statement being used in an HTTP service has been added.

Patch Set 1 #

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

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

Total comments: 15

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

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

Total comments: 2

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -1 line) Patch
A src/pkg/database/sql/example_concurrent_test.go View 1 2 3 4 5 1 chunk +63 lines, -0 lines 0 comments Download
M src/pkg/database/sql/example_test.go View 1 2 3 4 5 2 chunks +28 lines, -1 line 0 comments Download

Messages

Total messages: 18
mattcottingham
Hello golang-codereviews@googlegroups.com (cc: bradfitz@golang.org), I'd like you to review this change to https://code.google.com/p/go
10 years, 4 months ago (2013-12-21 11:26:04 UTC) #1
gobot
R=bradfitz@golang.org (assigned by r@golang.org)
10 years, 4 months ago (2013-12-23 17:56:55 UTC) #2
bradfitz
https://codereview.appspot.com/44920043/diff/40001/src/pkg/database/sql/example_prepare_test.go File src/pkg/database/sql/example_prepare_test.go (right): https://codereview.appspot.com/44920043/diff/40001/src/pkg/database/sql/example_prepare_test.go#newcode28 src/pkg/database/sql/example_prepare_test.go:28: func UsersHandler(w http.ResponseWriter, req *http.Request) { I don't think ...
10 years, 4 months ago (2013-12-26 19:01:24 UTC) #3
mattcottingham
https://codereview.appspot.com/44920043/diff/40001/src/pkg/database/sql/example_prepare_test.go File src/pkg/database/sql/example_prepare_test.go (right): https://codereview.appspot.com/44920043/diff/40001/src/pkg/database/sql/example_prepare_test.go#newcode28 src/pkg/database/sql/example_prepare_test.go:28: func UsersHandler(w http.ResponseWriter, req *http.Request) { On 2013/12/26 19:01:24, ...
10 years, 4 months ago (2013-12-27 12:44:47 UTC) #4
bradfitz
https://codereview.appspot.com/44920043/diff/40001/src/pkg/database/sql/example_prepare_test.go File src/pkg/database/sql/example_prepare_test.go (right): https://codereview.appspot.com/44920043/diff/40001/src/pkg/database/sql/example_prepare_test.go#newcode15 src/pkg/database/sql/example_prepare_test.go:15: // Prepared statement is compiled once and used by ...
10 years, 3 months ago (2014-01-14 23:18:57 UTC) #5
mattcottingham
Hello golang-codereviews@googlegroups.com, gobot@golang.org, bradfitz@golang.org (cc: bradfitz@golang.org, golang-codereviews@googlegroups.com), Please take another look.
10 years, 2 months ago (2014-02-03 20:48:58 UTC) #6
mattcottingham
Might be good to trim the handler more (the HTTP method check probably doesn't need ...
10 years, 2 months ago (2014-02-03 20:58:09 UTC) #7
mattcottingham
On 2014/02/03 20:58:09, mattcottingham wrote: > Might be good to trim the handler more (the ...
10 years, 1 month ago (2014-03-04 11:18:45 UTC) #8
gobot
R=bradfitz@golang.org (assigned by MattCottingham@gmail.com)
10 years ago (2014-04-15 12:15:08 UTC) #9
gobot
R=bradfitz@golang.org (assigned by MattCottingham@gmail.com)
10 years ago (2014-04-15 12:15:15 UTC) #10
mattcottingham_gmail.com
Whoops, that was just me clicking the edit button because it was there. I'm not ...
10 years ago (2014-04-15 12:18:24 UTC) #11
bradfitz
https://codereview.appspot.com/44920043/diff/80001/src/pkg/database/sql/example_prepare_test.go File src/pkg/database/sql/example_prepare_test.go (right): https://codereview.appspot.com/44920043/diff/80001/src/pkg/database/sql/example_prepare_test.go#newcode57 src/pkg/database/sql/example_prepare_test.go:57: func Example_prepare() { why is prepare lowercase here? does ...
9 years, 11 months ago (2014-05-13 21:37:43 UTC) #12
mattcottingham
On 2014/05/13 21:37:43, bradfitz wrote: > https://codereview.appspot.com/44920043/diff/80001/src/pkg/database/sql/example_prepare_test.go > File src/pkg/database/sql/example_prepare_test.go (right): > > https://codereview.appspot.com/44920043/diff/80001/src/pkg/database/sql/example_prepare_test.go#newcode57 > ...
9 years, 11 months ago (2014-05-26 20:07:59 UTC) #13
mattcottingham
Hello golang-codereviews@googlegroups.com, gobot@golang.org, bradfitz@golang.org (cc: bradfitz@golang.org, golang-codereviews@googlegroups.com), Please take another look.
9 years, 11 months ago (2014-05-26 20:08:11 UTC) #14
mattcottingham
On 2014/05/26 20:08:11, mattcottingham wrote: > Hello mailto:golang-codereviews@googlegroups.com, mailto:gobot@golang.org, mailto:bradfitz@golang.org > (cc: mailto:bradfitz@golang.org, mailto:golang-codereviews@googlegroups.com), > ...
9 years, 10 months ago (2014-06-16 19:18:24 UTC) #15
bradfitz
The 1.3 ship sailed a long time ago. On Mon, Jun 16, 2014 at 12:18 ...
9 years, 10 months ago (2014-06-16 19:21:38 UTC) #16
mattcottingham
Ping. On 2014/06/16 19:21:38, bradfitz wrote: > The 1.3 ship sailed a long time ago. ...
9 years, 9 months ago (2014-07-11 08:43:07 UTC) #17
gobot
9 years, 4 months ago (2014-12-19 05:17:52 UTC) #18
R=close

To the author of this CL:

The Go project has moved to Gerrit Code Review.

If this CL should be continued, please see the latest version of
https://golang.org/doc/contribute.html for instructions on
how to set up Git and the Go project's Gerrit codereview plugin,
and then create a new change with your current code.

If there has been discussion on this CL, please give a link to it
(golang.org/cl/44920043 is best) in the description in your
new CL.

Thanks very much.
Sign in to reply to this message.

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