mapper

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColumnMapRowMapper

func ColumnMapRowMapper(rows *sql.Rows) interface{}

Types

type BeanPropertyRowMapper

type BeanPropertyRowMapper interface {
	RowMapper(row *sql.Row) interface{}
	RowsMapper(rows *sql.Rows) interface{}
}

func NewBeanPropertyRowMapper

func NewBeanPropertyRowMapper(example interface{}) BeanPropertyRowMapper

type RowConvertor

type RowConvertor interface {
	Map(mapper RowMapper) RowConvertor
	MapTo(example interface{}) RowConvertor
	ToObject() interface{}
}

func NewRowConvertor

func NewRowConvertor(datasource datasource.DbManager, sqlstr string, args []interface{}) RowConvertor

func NewTxRowConvertor added in v1.3.1

func NewTxRowConvertor(tx *sql.Tx, sqlstr string, args []interface{}) RowConvertor

type RowMapper

type RowMapper func(row *sql.Row) interface{}

type RowsConvertor

type RowsConvertor interface {
	Map(mapper RowsMapper) RowsConvertor
	MapTo(example interface{}) RowsConvertor
	ToArray() []interface{}
}

func NewRowsConvertor

func NewRowsConvertor(dataSource datasource.DbManager, sqlstr string, args []interface{}) RowsConvertor

func NewTxRowsConvertor added in v1.3.1

func NewTxRowsConvertor(tx *sql.Tx, sqlstr string, args []interface{}) RowsConvertor

type RowsMapper

type RowsMapper func(rows *sql.Rows) interface{}

type TxRowsConvertor added in v1.3.1

type TxRowsConvertor interface {
	Map(mapper RowsMapper) RowsConvertor
	MapTo(example interface{}) RowsConvertor
	ToArray() []interface{}
}

Jump to

Keyboard shortcuts

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