Skip to content

Commit

Permalink
Add missing RawFind method
Browse files Browse the repository at this point in the history
  • Loading branch information
huuhait committed Sep 2, 2022
1 parent 7e188b2 commit b3949de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions usecase/usecase.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ func (u Usecase[V]) Delete(context context.Context, model *V, fs ...gpa.Filter)
}
}

func (u Usecase[V]) RawFind(context context.Context, dst interface{}, sql string, attrs ...interface{}) error {
return u.Repository.Raw(context, sql, attrs...).Find(dst).Error
}

func (u Usecase[V]) Es() ElasticsearchUsecase[V] {
return u.ElasticsearchUsecase
}
Expand Down

0 comments on commit b3949de

Please sign in to comment.