Doc fixes.

This commit is contained in:
Nuno Cruces
2024-06-07 12:10:03 +01:00
parent 7386a52b93
commit 35a3bfe2f9
2 changed files with 4 additions and 2 deletions

View File

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

View File

@@ -4,7 +4,8 @@ import "github.com/ncruces/go-sqlite3/internal/util"
// Pointer returns a pointer to a value that can be used as an argument to // Pointer returns a pointer to a value that can be used as an argument to
// [database/sql.DB.Exec] and similar methods. // [database/sql.DB.Exec] and similar methods.
// Pointer should NOT be used with [BindPointer] or [ResultPointer]. // Pointer should NOT be used with [Stmt.BindPointer],
// [Value.Pointer], or [Context.ResultPointer].
// //
// https://sqlite.org/bindptr.html // https://sqlite.org/bindptr.html
func Pointer[T any](value T) any { func Pointer[T any](value T) any {