chore: upgrade to github.com/upper/db/v4 (#705)
* Upgrade to github.com/upper/db/v4 * fix(oonitest): repair imports after merge Oops, okay, it seems the merge did not preserve all the import changes, so let's ensure we use the right imports here! * cleanup(go.mod): don't refer to upper.io/db/v3 These lines didn't disappear previously because the merge commit failed to remove all references to upper.io/db/v3. Co-authored-by: stergem <sgemelas@protonmail.com> Co-authored-by: Simone Basso <bassosimone@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
"github.com/ooni/probe-cli/v3/cmd/ooniprobe/internal/config"
|
||||
"github.com/ooni/probe-cli/v3/cmd/ooniprobe/internal/ooni"
|
||||
"github.com/ooni/probe-cli/v3/internal/model"
|
||||
"upper.io/db.v3/lib/sqlbuilder"
|
||||
"github.com/upper/db/v4"
|
||||
)
|
||||
|
||||
// FakeOutput allows to fake the output package.
|
||||
@@ -28,7 +28,7 @@ func (fo *FakeOutput) SectionTitle(s string) {
|
||||
// FakeProbeCLI fakes ooni.ProbeCLI
|
||||
type FakeProbeCLI struct {
|
||||
FakeConfig *config.Config
|
||||
FakeDB sqlbuilder.Database
|
||||
FakeDB db.Session
|
||||
FakeIsBatch bool
|
||||
FakeHome string
|
||||
FakeTempDir string
|
||||
@@ -42,7 +42,7 @@ func (cli *FakeProbeCLI) Config() *config.Config {
|
||||
}
|
||||
|
||||
// DB implements ProbeCLI.DB
|
||||
func (cli *FakeProbeCLI) DB() sqlbuilder.Database {
|
||||
func (cli *FakeProbeCLI) DB() db.Session {
|
||||
return cli.FakeDB
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user