Skip to content

Commit

Permalink
add duckdb
Browse files Browse the repository at this point in the history
  • Loading branch information
albertobruin committed Nov 11, 2024
1 parent f0e87cd commit 8c2893d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/config/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,13 @@ func (c *Config) AddConnection(environmentName, name, connType string, creds map
}
conn.Name = name
env.Connections.Slack = append(env.Connections.Slack, conn)
case "duckdb":
var conn DuckDBConnection
if err := mapstructure.Decode(creds, &conn); err != nil {
return fmt.Errorf("failed to decode credentials: %w", err)
}
conn.Name = name
env.Connections.DuckDB = append(env.Connections.DuckDB, conn)
default:
return fmt.Errorf("unsupported connection type: %s", connType)
}
Expand Down

0 comments on commit 8c2893d

Please sign in to comment.