sqlxq

package
v0.0.0-...-92667b2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Queryx

func Queryx[T any](db sqlx.Queryer, query string, args ...any) (glinq.IEnumerable[T], error)

func QueryxP

func QueryxP[T any](db sqlx.Queryer, query string, args ...any) (glinq.IEnumerable[*T], error)

QueryxP returns IEnumerable[*T], which is faster when T is a large struct, because it avoids copying the struct in LINQ operations.

Types

type RowsEnumerator

type RowsEnumerator[T any] struct {
	*sqlx.Rows
	// contains filtered or unexported fields
}

func (*RowsEnumerator[T]) Any

func (me *RowsEnumerator[T]) Any() bool

func (*RowsEnumerator[T]) Count

func (me *RowsEnumerator[T]) Count() int

func (*RowsEnumerator[T]) Current

func (me *RowsEnumerator[T]) Current() (result T)

func (*RowsEnumerator[T]) GetEnumerator

func (me *RowsEnumerator[T]) GetEnumerator() glinq.IEnumerator[T]

func (*RowsEnumerator[T]) MoveNext

func (me *RowsEnumerator[T]) MoveNext() (err error)

Jump to

Keyboard shortcuts

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