feat(storage): read only transactions for queries (#6415)

* fix: tests

* bastle wie en grosse

* fix(database): scan as callback

* fix tests

* fix merge failures

* remove as of system time

* refactor: remove unused test

* refacotr: remove unused lines
This commit is contained in:
Silvan
2023-08-22 12:49:22 +02:00
committed by GitHub
parent a9fb2a6e5c
commit 99e1c654a3
128 changed files with 1355 additions and 897 deletions

View File

@@ -381,13 +381,13 @@ func Test_ProjectGrantPrepares(t *testing.T) {
return nil, true
},
},
object: nil,
object: (*ProjectGrants)(nil),
},
{
name: "prepareProjectGrantQuery no result",
prepare: prepareProjectGrantQuery,
want: want{
sqlExpectations: mockQueries(
sqlExpectations: mockQueriesScanErr(
regexp.QuoteMeta(projectGrantQuery),
nil,
nil,
@@ -568,7 +568,7 @@ func Test_ProjectGrantPrepares(t *testing.T) {
return nil, true
},
},
object: nil,
object: (*ProjectGrant)(nil),
},
}
for _, tt := range tests {