Repo options

This commit is contained in:
Eden Kirin
2024-06-25 01:19:40 +02:00
parent c2bcbea5d2
commit 4615d55309
8 changed files with 112 additions and 37 deletions

View File

@ -15,7 +15,7 @@ func TestGetMethod(t *testing.T) {
defer sqldb.Close()
repo := RepoBase[MyModel]{}
repo.Init(db)
repo.Init(db, nil)
id := uuid.New()
filter := MyModelFilter{
@ -40,7 +40,7 @@ func TestGetMethod(t *testing.T) {
defer sqldb.Close()
repo := RepoBase[MyModel]{}
repo.Init(db)
repo.Init(db, nil)
id := uuid.New()
raiseError := true