mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-11 21:49:13 +00:00
Doc fixes.
This commit is contained in:
3
json.go
3
json.go
@@ -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}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user