Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix(deps): update module github.com/snowflakedb/gosnowflake to v2 (#19525)
renovate[bot]0836ef506b50
diff --git a/backend/plugin/db/snowflake/snowflake.go b/backend/plugin/db/snowflake/snowflake.goindex 5a6c6092f7..920c732b21 100644--- a/backend/plugin/db/snowflake/snowflake.go+++ b/backend/plugin/db/snowflake/snowflake.go@@ -24,7 +24,7 @@ import ("github.com/bytebase/bytebase/backend/plugin/db/util""github.com/bytebase/bytebase/backend/plugin/parser/base"- snow "github.com/snowflakedb/gosnowflake"+ snow "github.com/snowflakedb/gosnowflake/v2")var (@@ -271,10 +271,7 @@ func (d *Driver) executeInTransactionMode(ctx context.Context, statement string,// To submit a variable number of SQL statements in the statement field, set MULTI_STATEMENT_COUNT to 0."// https://docs.snowflake.com/en/developer-guide/sql-api/submitting-multiple-statements- mctx, err := snow.WithMultiStatement(ctx, 0 /* MULTI_STATEMENT_COUNT */)- if err != nil {- return 0, err- }+ mctx := snow.WithMultiStatement(ctx, 0 /* MULTI_STATEMENT_COUNT */)// Log the entire multi-statement executionopts.LogCommandExecute(&storepb.Range{Start: 0, End: int32(len(statement))}, statement)@@ -307,10 +304,7 @@ func (d *Driver) executeInTransactionMode(ctx context.Context, statement string,func (d *Driver) executeInAutoCommitMode(ctx context.Context, statement string, opts db.ExecuteOptions) (int64, error) {// To submit a variable number of SQL statements in the statement field, set MULTI_STATEMENT_COUNT to 0."// https://docs.snowflake.com/en/developer-guide/sql-api/submitting-multiple-statements- mctx, err := snow.WithMultiStatement(ctx, 0 /* MULTI_STATEMENT_COUNT */)- if err != nil {- return 0, err- }+ mctx := snow.WithMultiStatement(ctx, 0 /* MULTI_STATEMENT_COUNT */)// Log the entire multi-statement executionopts.LogCommandExecute(&storepb.Range{Start: 0, End: int32(len(statement))}, statement)diff --git a/go.mod b/go.modindex 4f8ffbb6d6..1175265dd0 100644--- a/go.mod+++ b/go.mod@@ -79,7 +79,7 @@ require (github.com/redis/go-redis/v9 v9.18.0github.com/shopspring/decimal v1.4.0github.com/sijms/go-ora/v2 v2.9.0- github.com/snowflakedb/gosnowflake v1.19.0+ github.com/snowflakedb/gosnowflake/v2 v2.0.0github.com/sourcegraph/conc v0.3.0github.com/sourcegraph/jsonrpc2 v0.2.1github.com/spf13/cobra v1.10.2@@ -198,7 +198,6 @@ require (github.com/jcmturner/gokrb5/v8 v8.4.4 // indirectgithub.com/jcmturner/rpc/v2 v2.0.3 // indirectgithub.com/json-iterator/go v1.1.12 // indirect- github.com/klauspost/asmfmt v1.3.2 // indirectgithub.com/klauspost/cpuid/v2 v2.2.11 // indirectgithub.com/kr/pretty v0.3.1 // indirectgithub.com/kr/text v0.2.0 // indirect@@ -206,8 +205,6 @@ require (github.com/lestrrat-go/httprc/v3 v3.0.2 // indirectgithub.com/lestrrat-go/option/v2 v2.0.0 // indirectgithub.com/magiconair/properties v1.8.10 // indirect- github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8 // indirect- github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3 // indirectgithub.com/mitchellh/go-homedir v1.1.0 // indirectgithub.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4 // indirectgithub.com/moby/docker-image-spec v1.3.1 // indirect@@ -319,7 +316,6 @@ require (github.com/gogo/protobuf v1.3.2 // indirectgithub.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirectgithub.com/golang/protobuf v1.5.4 // indirect- github.com/golang/snappy v1.0.0 // indirectgithub.com/google/flatbuffers v25.2.10+incompatible // indirectgithub.com/googleapis/enterprise-certificate-proxy v0.3.12 // indirectgithub.com/googleapis/gax-go/v2 v2.17.0 // indirectdiff --git a/go.sum b/go.sumindex 0c45ecce00..41f69b7870 100644--- a/go.sum+++ b/go.sum@@ -958,8 +958,8 @@ github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6Mwdgithub.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=-github.com/snowflakedb/gosnowflake v1.19.0 h1:Oy/w5/hXiSJV09kgG9zpFZFjNRNvF5Cet7r6vzd87OQ=-github.com/snowflakedb/gosnowflake v1.19.0/go.mod h1:7D4+cLepOWrerVsH+tevW3zdMJ5/WrEN7ZceAC6xBv0=+github.com/snowflakedb/gosnowflake/v2 v2.0.0 h1:oxTCOjOsJIPMG1a3cSc4s53nExst+wkgvqinBSwpeFo=+github.com/snowflakedb/gosnowflake/v2 v2.0.0/go.mod h1:B+dGQsCHnpwet3hgbdh2t/vqKBG7HpEO2o3jWt3KHeo=github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo=github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0=github.com/sourcegraph/jsonrpc2 v0.2.1 h1:2GtljixMQYUYCmIg7W9aF2dFmniq/mOr2T9tFRh6zSQ=