Documentation ¶
Index ¶
- func QueryResultFieldToBaseTypeArray[T any](res godb.QueryResult, fieldName string) ([]T, error)
- func QueryResultRowFieldToBaseType[T any](res godb.QueryResult, fieldName string, rowIndex ...int) (T, error)
- func QueryResultRowToStruct[T any](res godb.QueryResult, rowIndex ...int) (T, error)
- func QueryResultRowToStructPtr[T any](res godb.QueryResult, rowIndex ...int) (*T, error)
- func QueryResultToStructArray[T any](res godb.QueryResult) ([]T, error)
- func QueryResultToStructPtrArray[T any](res godb.QueryResult) ([]*T, error)
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.
Click to show internal directories.
Click to hide internal directories.