Skip to content

Commit

Permalink
chore: remove spanner underscore import (#250)
Browse files Browse the repository at this point in the history
rationale: clients open `*db.SQL` on it own, so it is not in a scope of
library to import particular db driver
  • Loading branch information
slsyy authored Jan 2, 2025
1 parent f8ceb32 commit 3e80dba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions spanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import (
"database/sql"
"errors"
"fmt"

_ "github.com/googleapis/go-sql-spanner"
)

type spanner struct {
Expand Down
2 changes: 2 additions & 0 deletions spanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import (
"cloud.google.com/go/spanner/admin/database/apiv1/databasepb"
instance "cloud.google.com/go/spanner/admin/instance/apiv1"
"cloud.google.com/go/spanner/admin/instance/apiv1/instancepb"

_ "github.com/googleapis/go-sql-spanner"
)

func TestSpanner(t *testing.T) {
Expand Down

0 comments on commit 3e80dba

Please sign in to comment.