3import "github.com/ncruces/go-sqlite3/internal/util"
5// Pointer returns a pointer to a value that can be used as an argument to
6// [database/sql.DB.Exec] and similar methods.
7// Pointer should NOT be used with [Stmt.BindPointer],
8// [Value.Pointer], or [Context.ResultPointer].
10// https://sqlite.org/bindptr.html
11func Pointer[T any](value T) any {
12 return util.Pointer[T]{Value: value}
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list