File tree 1 file changed +13
-6
lines changed 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -72,19 +72,26 @@ func Drivers() []string {
72
72
return list
73
73
}
74
74
75
- // A NamedArg used as an argument to Query or Exec
76
- // binds to the corresponding named parameter in the SQL statement.
75
+ // A NamedArg is a named argument. NamedArg values may be used as
76
+ // arguments to Query or Exec and bind to the corresponding named
77
+ // parameter in the SQL statement.
78
+ //
79
+ // For a more concise way to create NamedArg values, see
80
+ // the Named function.
77
81
type NamedArg struct {
78
82
_Named_Fields_Required struct {}
79
83
80
- // Name of the parameter placeholder. If empty the ordinal position in the
81
- // argument list will be used.
84
+ // Name is the name of the parameter placeholder.
85
+ //
86
+ // If empty, the ordinal position in the argument list will be
87
+ // used.
82
88
//
83
89
// Name must omit any symbol prefix.
84
90
Name string
85
91
86
- // Value of the parameter. It may be assigned the same value types as
87
- // the query arguments.
92
+ // Value is the value of the parameter.
93
+ // It may be assigned the same value types as the query
94
+ // arguments.
88
95
Value interface {}
89
96
}
90
97
You can’t perform that action at this time.
0 commit comments