orm

package
v0.0.0-...-4240263 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTodoDBRepository

func NewTodoDBRepository(dialector gorm.Dialector) (ports.TodoRepository, error)

Types

type GormTodoDBRepository

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

func (*GormTodoDBRepository) All

func (r *GormTodoDBRepository) All() ([]domain.TodoItem, error)

func (*GormTodoDBRepository) Create

func (r *GormTodoDBRepository) Create(data *domain.TodoItem) error

func (*GormTodoDBRepository) Delete

func (r *GormTodoDBRepository) Delete(data *domain.TodoItem) error

func (*GormTodoDBRepository) FindById

func (r *GormTodoDBRepository) FindById(id any) (*domain.TodoItem, error)

func (*GormTodoDBRepository) Save

func (r *GormTodoDBRepository) Save(data *domain.TodoItem) error

func (*GormTodoDBRepository) SaveBatch

func (r *GormTodoDBRepository) SaveBatch(data []*domain.TodoItem) error

Jump to

Keyboard shortcuts

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