Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(warehouse): snowflake roles support. #3031

Merged
merged 8 commits into from
Feb 27, 2023
10 changes: 6 additions & 4 deletions warehouse/integrations/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ func New(destType string) (Manager, error) {
var bq bigquery.HandleT
return &bq, nil
case warehouseutils.SNOWFLAKE:
var sf snowflake.HandleT
return &sf, nil
sf := snowflake.NewSnowflake()
snowflake.WithConfig(sf, config.Default)
return sf, nil
case warehouseutils.POSTGRES:
pg := postgres.NewHandle()
postgres.WithConfig(pg, config.Default)
Expand Down Expand Up @@ -105,8 +106,9 @@ func NewWarehouseOperations(destType string) (WarehouseOperations, error) {
var bq bigquery.HandleT
return &bq, nil
case warehouseutils.SNOWFLAKE:
var sf snowflake.HandleT
return &sf, nil
sf := snowflake.NewSnowflake()
snowflake.WithConfig(sf, config.Default)
return sf, nil
case warehouseutils.POSTGRES:
pg := postgres.NewHandle()
postgres.WithConfig(pg, config.Default)
Expand Down