Skip to content

Commit

Permalink
Merge branch 'master' into support-truncating-values
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Sep 25, 2024
2 parents 87d8dd9 + 12da05a commit 4617d61
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions lib/config/destination_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package config

import "github.com/artie-labs/transfer/lib/config/constants"

type S3Settings struct {
FolderName string `yaml:"folderName"`
Bucket string `yaml:"bucket"`
AwsAccessKeyID string `yaml:"awsAccessKeyID"`
AwsSecretAccessKey string `yaml:"awsSecretAccessKey"`
OutputFormat constants.S3OutputFormat `yaml:"outputFormat"`
type BigQuery struct {
// PathToCredentials is _optional_ if you have GOOGLE_APPLICATION_CREDENTIALS set as an env var
// Links to credentials: https://cloud.google.com/docs/authentication/application-default-credentials#GAC
PathToCredentials string `yaml:"pathToCredentials"`
DefaultDataset string `yaml:"defaultDataset"`
ProjectID string `yaml:"projectID"`
Location string `yaml:"location"`
}

type MSSQL struct {
Expand All @@ -18,15 +19,6 @@ type MSSQL struct {
Database string `yaml:"database"`
}

type BigQuery struct {
// PathToCredentials is _optional_ if you have GOOGLE_APPLICATION_CREDENTIALS set as an env var
// Links to credentials: https://cloud.google.com/docs/authentication/application-default-credentials#GAC
PathToCredentials string `yaml:"pathToCredentials"`
DefaultDataset string `yaml:"defaultDataset"`
ProjectID string `yaml:"projectID"`
Location string `yaml:"location"`
}

type Redshift struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
Expand All @@ -39,6 +31,14 @@ type Redshift struct {
CredentialsClause string `yaml:"credentialsClause"`
}

type S3Settings struct {
FolderName string `yaml:"folderName"`
Bucket string `yaml:"bucket"`
AwsAccessKeyID string `yaml:"awsAccessKeyID"`
AwsSecretAccessKey string `yaml:"awsSecretAccessKey"`
OutputFormat constants.S3OutputFormat `yaml:"outputFormat"`
}

type Snowflake struct {
AccountID string `yaml:"account"`
Username string `yaml:"username"`
Expand Down

0 comments on commit 4617d61

Please sign in to comment.