util

package
v1.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapRowsToModel

func MapRowsToModel(rows *sql.Rows, model interface{}, modelType reflect.Type, isPointer bool) error

MapRowsToModel maps database rows to the provided model

func MapRowsToSliceModel

func MapRowsToSliceModel(rows *sql.Rows, model interface{}, modelType reflect.Type) error

func ResolveModelInfo

func ResolveModelInfo(model interface{}) (reflect.Type, string, bool, error)

ResolveModelInfo extracts model information for table and type resolution

func ScanRow

func ScanRow(rows *sql.Rows, targetValue reflect.Value) error

ScanRow scans a single row into a struct or a pointer to a struct

Types

This section is empty.

Jump to

Keyboard shortcuts

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