Skip to content

Commit

Permalink
go: bump planetscale-go to v0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fatih committed Apr 6, 2021
1 parent 9b6be0c commit 717bf7e
Show file tree
Hide file tree
Showing 13 changed files with 165 additions and 318 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require (
github.com/mitchellh/go-homedir v1.1.0
github.com/pkg/browser v0.0.0-20201112035734-206646e67786
github.com/pkg/errors v0.9.1
github.com/planetscale/planetscale-go v0.14.0
github.com/planetscale/planetscale-go v0.15.0
github.com/planetscale/sql-proxy v0.2.0
github.com/spf13/cobra v1.1.3
github.com/spf13/pflag v1.0.5
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/planetscale/planetscale-go v0.9.0/go.mod h1:R+07GStW2oGSfeTwWoplnimSEFzxIzEofOHgPFxArg0=
github.com/planetscale/planetscale-go v0.14.0 h1:vlR5okb353ne253SvSpuRu5xaMhpy01jjAYZvPG5iMU=
github.com/planetscale/planetscale-go v0.14.0/go.mod h1:R+07GStW2oGSfeTwWoplnimSEFzxIzEofOHgPFxArg0=
github.com/planetscale/planetscale-go v0.15.0 h1:lmC0xkgCQZAf5AuLaUs51FEoQjKx1q4eGvXshbQ119s=
github.com/planetscale/planetscale-go v0.15.0/go.mod h1:R+07GStW2oGSfeTwWoplnimSEFzxIzEofOHgPFxArg0=
github.com/planetscale/sql-proxy v0.2.0 h1:E6BDEYSP+t68kTxnyCNEMowJfiyGcJUTYplY4Q+VMag=
github.com/planetscale/sql-proxy v0.2.0/go.mod h1:ZEBm1sist+VFnuxx0lWcMSKq/NfIWRqn2uDIfCERcI4=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand Down
9 changes: 5 additions & 4 deletions internal/cmdutil/terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ func Bold(msg string) string {
return color.New(color.Bold).Sprint(msg)
}

func IsNotFoundError(ogErr error) bool {
err, ok := ogErr.(*planetscale.ErrorResponse)
if ok {
return err.Code == "not_found"
func IsNotFoundError(err error) bool {
if pErr, ok := err.(*planetscale.Error); ok {
if pErr.Code == planetscale.ErrNotFound {
return true
}
}

return false
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 717bf7e

Please sign in to comment.