Skip to content

Commit d43072e

Browse files
authored
Update sqlds to v5 (#359)
1 parent df5ddd2 commit d43072e

File tree

14 files changed

+23
-15
lines changed

14 files changed

+23
-15
lines changed

.github/workflows/dependabot-reviewer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ jobs:
77
call-workflow-passing-data:
88
uses: grafana/security-github-actions/.github/workflows/dependabot-automerge.yaml@main
99
with:
10-
packages-minor-autoupdate: '["github.com/aws/aws-sdk-go","github.com/aws/aws-sdk-go-v2","github.com/aws/aws-sdk-go-v2/config","github.com/aws/aws-sdk-go-v2/credentials","github.com/aws/aws-sdk-go-v2/feature/ec2/imds","github.com/aws/aws-sdk-go-v2/service/sts","github.com/aws/smithy-go","github.com/google/go-cmp","github.com/grafana/grafana-plugin-sdk-go","github.com/grafana/sqlds/v4","github.com/jpillora/backoff","github.com/magefile/mage","github.com/stretchr/testify"]'
10+
packages-minor-autoupdate: '["github.com/aws/aws-sdk-go","github.com/aws/aws-sdk-go-v2","github.com/aws/aws-sdk-go-v2/config","github.com/aws/aws-sdk-go-v2/credentials","github.com/aws/aws-sdk-go-v2/feature/ec2/imds","github.com/aws/aws-sdk-go-v2/service/sts","github.com/aws/smithy-go","github.com/google/go-cmp","github.com/grafana/grafana-plugin-sdk-go","github.com/grafana/sqlds/v5","github.com/jpillora/backoff","github.com/magefile/mage","github.com/stretchr/testify"]'
1111
repository-merge-method: "squash"

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## 1.3.2
6+
- Update sqlds to v5 [#359](https://github.com/grafana/grafana-aws-sdk/pull/359)
7+
- Add AWS/NetworkManager namespace metrics and dimensions [#358](https://github.com/grafana/grafana-aws-sdk/pull/358)
8+
- fix bedrock metrics with split namespaces [#356](https://github.com/grafana/grafana-aws-sdk/pull/356)
9+
- Add missing ap-southeast-6 opt in region [#355](https://github.com/grafana/grafana-aws-sdk/pull/355)
10+
- Dependabot updates:
11+
- Bump the aws-sdk-go-v2 group with 5 updates [#354](https://github.com/grafana/grafana-aws-sdk/pull/354)
12+
513
## 1.3.1
614

715
- Update bedrock support with new metrics and dimensions in [#350](https://github.com/grafana/grafana-aws-sdk/pull/350)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/aws/smithy-go v1.23.1
1212
github.com/google/go-cmp v0.7.0
1313
github.com/grafana/grafana-plugin-sdk-go v0.281.0
14-
github.com/grafana/sqlds/v4 v4.2.7
14+
github.com/grafana/sqlds/v5 v5.0.3
1515
github.com/jpillora/backoff v1.0.0
1616
github.com/magefile/mage v1.15.0
1717
github.com/stretchr/testify v1.11.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ github.com/grafana/otel-profiling-go v0.5.1 h1:stVPKAFZSa7eGiqbYuG25VcqYksR6iWvF
8585
github.com/grafana/otel-profiling-go v0.5.1/go.mod h1:ftN/t5A/4gQI19/8MoWurBEtC6gFw8Dns1sJZ9W4Tls=
8686
github.com/grafana/pyroscope-go/godeltaprof v0.1.9 h1:c1Us8i6eSmkW+Ez05d3co8kasnuOY813tbMN8i/a3Og=
8787
github.com/grafana/pyroscope-go/godeltaprof v0.1.9/go.mod h1:2+l7K7twW49Ct4wFluZD3tZ6e0SjanjcUUBPVD/UuGU=
88-
github.com/grafana/sqlds/v4 v4.2.7 h1:sFQhsS7DBakNMdxa++yOfJ9BVvkZwFJ0B95o57K0/XA=
89-
github.com/grafana/sqlds/v4 v4.2.7/go.mod h1:BQRjUG8rOqrBI4NAaeoWrIMuoNgfi8bdhCJ+5cgEfLU=
88+
github.com/grafana/sqlds/v5 v5.0.3 h1:+yUMUxfa0WANQsmS9xtTFSRX1Q55Iv1B9EjlrW4VlBU=
89+
github.com/grafana/sqlds/v5 v5.0.3/go.mod h1:GKeTTiC+GeR1X0z3f0Iee+hZnNgN62uQpj5XVMx5Uew=
9090
github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.1.0 h1:QGLs/O40yoNK9vmy4rhUGBVyMf1lISBGtXRpsu/Qu/o=
9191
github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.1.0/go.mod h1:hM2alZsMUni80N33RBe6J0e423LB+odMj7d3EMP9l20=
9292
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.2 h1:sGm2vDRFUrQJO/Veii4h4zG2vvqG6uWNkBHSTqXOZk0=

pkg/awsds/asyncDatasource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/grafana/grafana-plugin-sdk-go/data"
1414
"github.com/grafana/grafana-plugin-sdk-go/data/sqlutil"
1515
"github.com/grafana/grafana-plugin-sdk-go/experimental/errorsource"
16-
"github.com/grafana/sqlds/v4"
16+
"github.com/grafana/sqlds/v5"
1717
)
1818

1919
const defaultKeySuffix = "default"
@@ -282,5 +282,5 @@ func (ds *AsyncAWSDatasource) handleAsyncQuery(ctx context.Context, req backend.
282282

283283
func queryAsync(ctx context.Context, conn *sql.DB, settings backend.DataSourceInstanceSettings, converters []sqlutil.Converter, fillMode *data.FillMissing, q *AsyncQuery, rowLimit int64) (data.Frames, error) {
284284
query := sqlds.NewQuery(conn, settings, converters, fillMode, rowLimit)
285-
return query.Run(ctx, &q.Query, sql.NamedArg{Name: "queryID", Value: q.QueryID})
285+
return query.Run(ctx, &q.Query, nil, sql.NamedArg{Name: "queryID", Value: q.QueryID})
286286
}

pkg/awsds/asyncDatasource_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/grafana/grafana-plugin-sdk-go/data/sqlutil"
1212

1313
"github.com/grafana/grafana-plugin-sdk-go/backend"
14-
"github.com/grafana/sqlds/v4"
14+
"github.com/grafana/sqlds/v5"
1515
"github.com/stretchr/testify/assert"
1616
"github.com/stretchr/testify/mock"
1717
)

pkg/awsds/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
"github.com/grafana/grafana-plugin-sdk-go/data/sqlutil"
11-
"github.com/grafana/sqlds/v4"
11+
"github.com/grafana/sqlds/v5"
1212

1313
"github.com/grafana/grafana-plugin-sdk-go/backend"
1414
)

pkg/sql/api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/grafana/grafana-aws-sdk/pkg/awsds"
99
"github.com/grafana/grafana-plugin-sdk-go/backend/log"
10-
"github.com/grafana/sqlds/v4"
10+
"github.com/grafana/sqlds/v5"
1111
"github.com/jpillora/backoff"
1212
)
1313

pkg/sql/datasource/datasource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
asyncDriver "github.com/grafana/grafana-aws-sdk/pkg/sql/driver/async"
1313
"github.com/grafana/grafana-aws-sdk/pkg/sql/models"
1414
"github.com/grafana/grafana-plugin-sdk-go/backend"
15-
"github.com/grafana/sqlds/v4"
15+
"github.com/grafana/sqlds/v5"
1616
)
1717

1818
// AWSClient provides creation and caching of sessions, database connections, and API clients

pkg/sql/datasource/datasource_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
sqlDriver "github.com/grafana/grafana-aws-sdk/pkg/sql/driver"
1414
"github.com/grafana/grafana-aws-sdk/pkg/sql/models"
1515
"github.com/grafana/grafana-plugin-sdk-go/backend"
16-
"github.com/grafana/sqlds/v4"
16+
"github.com/grafana/sqlds/v5"
1717
)
1818

1919
type fakeLoader struct {

0 commit comments

Comments
 (0)