Skip to content

Commit 7b51aba

Browse files
committed
bq: extract write API output into bigquery sub-package
Move BigQuery Storage Write API output from gcp/enterprise/ into gcp/enterprise/bigquery/, following the AWS pattern of one package per service. Rename files to output.go, output_test.go, integration_test.go since the package name provides context.
1 parent ffafdc3 commit 7b51aba

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

internal/impl/gcp/enterprise/integration_bigquery_write_api_test.go renamed to internal/impl/gcp/enterprise/bigquery/integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
// https://github.com/redpanda-data/connect/blob/main/licenses/rcl.md
88

9-
package enterprise
9+
package bigquery
1010

1111
import (
1212
"context"

internal/impl/gcp/enterprise/output_bigquery_write_api.go renamed to internal/impl/gcp/enterprise/bigquery/output.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
// https://github.com/redpanda-data/connect/blob/main/licenses/rcl.md
88

9-
package enterprise
9+
package bigquery
1010

1111
import (
1212
"context"

internal/impl/gcp/enterprise/output_bigquery_write_api_test.go renamed to internal/impl/gcp/enterprise/bigquery/output_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
// https://github.com/redpanda-data/connect/blob/main/licenses/rcl.md
88

9-
package enterprise
9+
package bigquery
1010

1111
import (
1212
"context"

public/components/gcp/enterprise/package.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ package enterprise
1111
import (
1212
// Bring in the internal plugin definitions.
1313
_ "github.com/redpanda-data/connect/v4/internal/impl/gcp/enterprise"
14+
_ "github.com/redpanda-data/connect/v4/internal/impl/gcp/enterprise/bigquery"
1415
)

0 commit comments

Comments
 (0)