types

package
v1.0.0-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2025 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

The `types` package is reference from :

https://jackieli.dev/posts/pointers-in-go-used-in-sql-scanner/

This package is a helper library to prevent the value being fallback using reflection in `database/sql`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinaryMarshaler

func BinaryMarshaler[T interface {
	encoding.BinaryMarshaler
}](addr T) driver.Valuer

func BinaryUnmarshaler

func BinaryUnmarshaler[T any, Ptr interface {
	*T
	encoding.BinaryUnmarshaler
}](addr Ptr) sql.Scanner

Types

type ValueScanner

type ValueScanner[T any] interface {
	driver.Valuer
	sql.Scanner
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL