pgxutilx

package
v0.0.0-...-3f23c4f Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecResult

func ExecResult[T any](params []T, bulk ExecResulter) (err error)

ExecResult ...

func QueryResult

func QueryResult[D, S any](params []S, bulk QueryResulter[D]) (results []D, err error)

QueryResult ...

func QueryResultFunc

func QueryResultFunc[D, S, R any](params []S, bulk QueryResulter[D], fn func(D) R) (results []R, err error)

QueryResult ...

Types

type ExecResulter

type ExecResulter interface {
	Close() error
	Exec(func(int, error))
}

ExecResulter ...

type QueryResulter

type QueryResulter[T any] interface {
	Close() error
	Query(func(int, []T, error))
}

QueryResulter ...

Jump to

Keyboard shortcuts

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