Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearStructFieldCaches ¶
func ClearStructFieldCaches()
ClearCaches clears all caches of struct field information. This is intended only for testing. This is not synchronized with access of the caches, and so must not be called simultaneously with any active use of pgx-collect.
Types ¶
type StructRowFieldReceiver ¶
func ReceiverFromPointer ¶
func ReceiverFromPointer[T any](ptr *T) StructRowFieldReceiver
type StructRowFields ¶
type StructRowFields []structRowField
func GetStructRowFieldsByName ¶
func GetStructRowFieldsByName( typ reflect.Type, fldDescs []pgconn.FieldDescription, ) (StructRowFields, string, error)
func GetStructRowFieldsByPos ¶
func GetStructRowFieldsByPos( typ reflect.Type, fldDescs []pgconn.FieldDescription, ) (StructRowFields, error)
func (StructRowFields) NumFields ¶
func (fs StructRowFields) NumFields() int
func (StructRowFields) Populate ¶
func (fs StructRowFields) Populate(r StructRowFieldReceiver, scanTargets []any)
Click to show internal directories.
Click to hide internal directories.