github.com/ncruces/go-sqlite3@v0.15.1-0.20240520133447-53eef1510ff0/pointer.go (about) 1 package sqlite3 2 3 import "github.com/ncruces/go-sqlite3/internal/util" 4 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 [BindPointer] or [ResultPointer]. 8 // 9 // https://sqlite.org/bindptr.html 10 func Pointer[T any](value T) any { 11 return util.Pointer[T]{Value: value} 12 }