mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
database/sql: force users of NamedParam to name struct literals fields
Or they can use sql.Param instead. Change-Id: Icf21dbcc87170635c3f5d3f49736429a37abe9da Reviewed-on: https://go-review.googlesource.com/33576 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Daniel Theophanes <kardianos@gmail.com> Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
parent
a2bd5c5563
commit
f7b2f58cda
1 changed files with 2 additions and 0 deletions
|
|
@ -72,6 +72,8 @@ func Drivers() []string {
|
|||
// NamedParam may be passed into query parameter arguments to associate
|
||||
// a named placeholder with a value.
|
||||
type NamedParam struct {
|
||||
_Named_Fields_Required struct{}
|
||||
|
||||
// Name of the parameter placeholder. If empty the ordinal position in the
|
||||
// argument list will be used.
|
||||
Name string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue