@@ -35,13 +35,14 @@ type ExecOptions struct {
35
35
//
36
36
// Basic reflection on Args is used to map:
37
37
//
38
- // integers to BindInt64
39
- // floats to BindFloat
40
- // []byte to BindBytes
41
- // string to BindText
42
- // bool to BindBool
38
+ // - integers to BindInt64
39
+ // - floats to BindFloat
40
+ // - []byte to BindBytes
41
+ // - string to BindText
42
+ // - bool to BindBool
43
+ // - untyped nil to BindNull
43
44
//
44
- // All other kinds are printed using fmt.Sprint(v) and passed to BindText.
45
+ // All other kinds are printed using [ fmt.Sprint] and passed to BindText.
45
46
Args []any
46
47
47
48
// Named is the set of named arguments to bind to the statement. Keys must
@@ -50,13 +51,14 @@ type ExecOptions struct {
50
51
//
51
52
// Basic reflection on Named is used to map:
52
53
//
53
- // integers to BindInt64
54
- // floats to BindFloat
55
- // []byte to BindBytes
56
- // string to BindText
57
- // bool to BindBool
54
+ // - integers to BindInt64
55
+ // - floats to BindFloat
56
+ // - []byte to BindBytes
57
+ // - string to BindText
58
+ // - bool to BindBool
59
+ // - untyped nil to BindNull
58
60
//
59
- // All other kinds are printed using fmt.Sprint(v) and passed to BindText.
61
+ // All other kinds are printed using [ fmt.Sprint] and passed to BindText.
60
62
Named map [string ]any
61
63
62
64
// ResultFunc is called for each result row.
@@ -76,14 +78,14 @@ type ExecOptions struct {
76
78
// query using the [sqlite.Stmt] Bind* methods. Basic reflection on args is used
77
79
// to map:
78
80
//
79
- // integers to BindInt64
80
- // floats to BindFloat
81
- // []byte to BindBytes
82
- // string to BindText
83
- // bool to BindBool
81
+ // - integers to BindInt64
82
+ // - floats to BindFloat
83
+ // - []byte to BindBytes
84
+ // - string to BindText
85
+ // - bool to BindBool
86
+ // - untyped nil to BindNull
84
87
//
85
- // All other kinds are printed using fmt.Sprintf("%v", v) and passed
86
- // to BindText.
88
+ // All other kinds are printed using [fmt.Sprint] and passed to BindText.
87
89
//
88
90
// Exec is implemented using the Stmt prepare mechanism which allows
89
91
// better interactions with Go's type system and avoids pitfalls of
0 commit comments