generics

package module
v0.0.0-...-7d7b03f Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryResultFieldToBaseTypeArray

func QueryResultFieldToBaseTypeArray[T any](res godb.QueryResult, fieldName string) ([]T, error)

QueryResultFieldToBaseTypeArray 结果某个字段转换成数组

func QueryResultRowFieldToBaseType

func QueryResultRowFieldToBaseType[T any](res godb.QueryResult, fieldName string, rowIndex ...int) (T, error)

QueryResultRowFieldToBaseType 结果某个字段转换成

func QueryResultRowToStruct

func QueryResultRowToStruct[T any](res godb.QueryResult, rowIndex ...int) (T, error)

QueryResultRowToStruct 结果转换成结构体

func QueryResultRowToStructPtr

func QueryResultRowToStructPtr[T any](res godb.QueryResult, rowIndex ...int) (*T, error)

QueryResultRowToStructPtr 结果转换成结构体指针

func QueryResultToStructArray

func QueryResultToStructArray[T any](res godb.QueryResult) ([]T, error)

QueryResultToStructArray 结果转换成结构体数组

func QueryResultToStructPtrArray

func QueryResultToStructPtrArray[T any](res godb.QueryResult) ([]*T, error)

QueryResultToStructPtrArray 结果转换成结构体指针数组

Types

This section is empty.

Jump to

Keyboard shortcuts

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