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
Click to show internal directories.
Click to hide internal directories.