repository

package
v0.0.0-...-476bcdb Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 4 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 {
	Db *sqlx.DB
}

func NewRepository

func NewRepository(db *sqlx.DB) Repository

func (Repository) Create

func (r Repository) Create(ctx context.Context, entity *model.ToDo) error

func (Repository) Find

func (r Repository) Find(ctx context.Context, id int) (model.ToDo, error)

func (Repository) FindAll

func (r Repository) FindAll(ctx context.Context) ([]model.ToDo, error)

func (Repository) Update

func (r Repository) Update(ctx context.Context, entity model.ToDo) error

Jump to

Keyboard shortcuts

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