page

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package page provides the pagination implementation for sqlcredo. It implements the PageResolver interface, handling paginated queries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PageResolver

type PageResolver[T any] struct {
	// contains filtered or unexported fields
}

func NewPageResolver

func NewPageResolver[T any](table table.Info,
	executor domain.SQLExecutor, driver string,
) *PageResolver[T]

func (*PageResolver[T]) Count

func (r *PageResolver[T]) Count(ctx context.Context) (uint64, error)

func (*PageResolver[T]) GetPage

func (r *PageResolver[T]) GetPage(ctx context.Context, dest *domain.Page[T], opts ...domain.PageOpt) error

Jump to

Keyboard shortcuts

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