Skip to content

Commit 35a3bfe

Browse files
committed
Doc fixes.
1 parent 7386a52 commit 35a3bfe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: json.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import "github.com/ncruces/go-sqlite3/internal/util"
55
// JSON returns a value that can be used as an argument to
66
// [database/sql.DB.Exec], [database/sql.Row.Scan] and similar methods to
77
// store value as JSON, or decode JSON into value.
8-
// JSON should NOT be used with [BindJSON] or [ResultJSON].
8+
// JSON should NOT be used with [Stmt.BindJSON], [Stmt.ColumnJSON],
9+
// [Value.JSON], or [Context.ResultJSON].
910
func JSON(value any) any {
1011
return util.JSON{Value: value}
1112
}

Diff for: pointer.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import "github.com/ncruces/go-sqlite3/internal/util"
44

55
// Pointer returns a pointer to a value that can be used as an argument to
66
// [database/sql.DB.Exec] and similar methods.
7-
// Pointer should NOT be used with [BindPointer] or [ResultPointer].
7+
// Pointer should NOT be used with [Stmt.BindPointer],
8+
// [Value.Pointer], or [Context.ResultPointer].
89
//
910
// https://sqlite.org/bindptr.html
1011
func Pointer[T any](value T) any {

0 commit comments

Comments
 (0)