sev-2 / raiden

A Framework for Supabase
MIT License
24 stars 2 forks source link

FEAT Model binding on Model Runner #73

Closed toopay closed 2 months ago

toopay commented 2 months ago

Description

To refactor the PostgrestRequest function so it can bind the response to a Go struct

Fixes # (issue)

Type of change

Please delete options that are not relevant.

Checklist

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 62.50000% with 21 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/db/postgrest_request.go 50.00% 6 Missing and 3 partials :warning:
pkg/db/insert.go 50.00% 2 Missing and 1 partial :warning:
pkg/db/update.go 50.00% 2 Missing and 1 partial :warning:
pkg/db/upsert.go 57.14% 2 Missing and 1 partial :warning:
pkg/db/db.go 83.33% 2 Missing :warning:
pkg/db/delete.go 80.00% 1 Missing :warning:
Flag Coverage Δ
-race 72.12% <62.50%> (-0.05%) :arrow_down:
-tags "sonic avx" 72.17% <62.50%> (+0.01%) :arrow_up:
-tags go_json 72.16% <62.50%> (-0.02%) :arrow_down:
-tags nomsgpack 72.19% <62.50%> (+<0.01%) :arrow_up:
go-1.21 71.51% <62.50%> (-0.01%) :arrow_down:
go-1.22 72.19% <62.50%> (-0.02%) :arrow_down:
macos-latest 72.20% <62.50%> (+0.02%) :arrow_up:
ubuntu-latest 72.21% <62.50%> (-0.02%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
pkg/db/aggregate.go 61.90% <100.00%> (-1.96%) :arrow_down:
pkg/db/delete.go 80.00% <80.00%> (+2.22%) :arrow_up:
pkg/db/db.go 80.26% <83.33%> (+1.09%) :arrow_up:
pkg/db/insert.go 66.66% <50.00%> (ø)
pkg/db/update.go 77.77% <50.00%> (ø)
pkg/db/upsert.go 69.23% <57.14%> (+2.56%) :arrow_up:
pkg/db/postgrest_request.go 70.90% <50.00%> (+0.07%) :arrow_up:

... and 1 file with indirect coverage changes