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

golang-migrate / migrate / 13600698669

01 Mar 2025 03:37AM UTC coverage: 56.319%. Remained the same
13600698669

Pull #862

github

Zengyu
Add pgx/v5 and set isolation to serializable level

Following this comment: https://github.com/golang-migrate/migrate/pull/862#issuecomment-1864041631

And reference PR:
https://github.com/golang-migrate/migrate/pull/656/files
Pull Request #862: Use DELETE FROM instead of TRUNCATE for pgx

2 of 2 new or added lines in 2 files covered. (100.0%)

4559 of 8095 relevant lines covered (56.32%)

52.03 hits per line

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

0.0
/database/error.go
1
package database
2

3
import (
4
        "fmt"
5
)
6

7
// Error should be used for errors involving queries ran against the database
8
type Error struct {
9
        // Optional: the line number
10
        Line uint
11

12
        // Query is a query excerpt
13
        Query []byte
14

15
        // Err is a useful/helping error message for humans
16
        Err string
17

18
        // OrigErr is the underlying error
19
        OrigErr error
20
}
21

22
func (e Error) Error() string {
×
23
        if len(e.Err) == 0 {
×
24
                return fmt.Sprintf("%v in line %v: %s", e.OrigErr, e.Line, e.Query)
×
25
        }
×
26
        return fmt.Sprintf("%v in line %v: %s (details: %v)", e.Err, e.Line, e.Query, e.OrigErr)
×
27
}
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

© 2026 Coveralls, Inc