go-rel/gin-example

View on GitHub
todos/clear.go

Summary

Maintainability
A
0 mins
Test Coverage
package todos

import (
    "context"

    "github.com/go-rel/rel"
)

type clear struct {
    repository rel.Repository
}

func (c clear) Clear(ctx context.Context) {
    c.repository.MustDeleteAny(ctx, rel.From("todos"))
}