go/src/database/sql/driver/types.go

type ValueConverter

type Valuer

var Bool

type boolType

var _

func (boolType) String() string {}

func (boolType) ConvertValue(src any) (Value, error) {}

var Int32

type int32Type

var _

func (int32Type) ConvertValue(v any) (Value, error) {}

var String

type stringType

func (stringType) ConvertValue(v any) (Value, error) {}

type Null

func (n Null) ConvertValue(v any) (Value, error) {}

type NotNull

func (n NotNull) ConvertValue(v any) (Value, error) {}

// IsValue reports whether v is a valid [Value] parameter type.
func IsValue(v any) bool {}

// IsScanValue is equivalent to [IsValue].
// It exists for compatibility.
func IsScanValue(v any) bool {}

var DefaultParameterConverter

type defaultConverter

var _

var valuerReflectType

// callValuerValue returns vr.Value(), with one exception:
// If vr.Value is an auto-generated method on a pointer type and the
// pointer is nil, it would panic at runtime in the panicwrap
// method. Treat it like nil instead.
// Issue 8415.
//
// This is so people can implement driver.Value on value types and
// still use nil pointers to those types to mean nil/NULL, just like
// string/*string.
//
// This function is mirrored in the database/sql package.
func callValuerValue(vr Valuer) (v Value, err error) {}

func (defaultConverter) ConvertValue(v any) (Value, error) {}

type decimalDecompose