• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 19880047649

03 Dec 2025 02:15AM UTC coverage: 55.457% (-0.06%) from 55.514%
19880047649

Pull #4568

github

web-flow
Merge ffcff0ec1 into c4baba6d3
Pull Request #4568: fix: include storage version in services command

4 of 39 new or added lines in 2 files covered. (10.26%)

7 existing lines in 2 files now uncovered.

6728 of 12132 relevant lines covered (55.46%)

6.21 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.33
/internal/utils/tenant/database.go
1
package tenant
2

3
import (
4
        "context"
5

6
        "github.com/go-errors/errors"
7
        "github.com/supabase/cli/internal/utils"
8
)
9

10
var errDatabaseVersion = errors.New("Database version not found.")
11

12
func GetDatabaseVersion(ctx context.Context, projectRef string) (string, error) {
3✔
13
        resp, err := utils.GetSupabase().V1GetProjectWithResponse(ctx, projectRef)
3✔
14
        if err != nil {
3✔
NEW
15
                return "", errors.Errorf("failed to retrieve project: %w", err)
×
16
        }
×
17
        if resp.JSON200 == nil {
4✔
18
                return "", errors.Errorf("unexpected retrieve project status %d: %s", resp.StatusCode(), string(resp.Body))
1✔
19
        }
1✔
20
        if len(resp.JSON200.Database.Version) > 0 {
3✔
21
                return resp.JSON200.Database.Version, nil
1✔
22
        }
1✔
23
        return "", errors.New(errDatabaseVersion)
1✔
24
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc