sql

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(db *sql.DB) *Repository

func (*Repository) FindByPID

func (r *Repository) FindByPID(ctx context.Context, pid int) (player.Player, error)

func (*Repository) FindByProviderBetweenPIDs

func (r *Repository) FindByProviderBetweenPIDs(ctx context.Context, pv provider.Provider, lower, upper int) ([]player.Player, error)

func (*Repository) Insert

func (r *Repository) Insert(ctx context.Context, p player.Player) error

func (*Repository) InsertMany

func (r *Repository) InsertMany(ctx context.Context, players []player.Player) error

func (*Repository) UpdateMany added in v0.3.1

func (r *Repository) UpdateMany(ctx context.Context, players []player.Player) error

Jump to

Keyboard shortcuts

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