Documentation ¶
Index ¶
- func NewTodoDBRepository(dialector gorm.Dialector) (ports.TodoRepository, error)
- type GormTodoDBRepository
- func (r *GormTodoDBRepository) All() ([]domain.TodoItem, error)
- func (r *GormTodoDBRepository) Create(data *domain.TodoItem) error
- func (r *GormTodoDBRepository) Delete(data *domain.TodoItem) error
- func (r *GormTodoDBRepository) FindById(id any) (*domain.TodoItem, error)
- func (r *GormTodoDBRepository) Save(data *domain.TodoItem) error
- func (r *GormTodoDBRepository) SaveBatch(data []*domain.TodoItem) error
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) 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)
Click to show internal directories.
Click to hide internal directories.