repository

package
v0.0.0-...-1d5ad26 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersonRepository

type PersonRepository interface {
	Create(ctx context.Context, name string, age int) error
	FindAll(ctx context.Context) ([]model.Person, error)
	FindById(ctx context.Context, id int) (model.Person, error)
	Update(ctx context.Context, id int, name string, age int) error
	Delete(ctx context.Context, id int) error
	Count(ctx context.Context) (int, error)
}

func NewPersonRepository

func NewPersonRepository(pgx *pgx.Conn) PersonRepository

Jump to

Keyboard shortcuts

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