Skip to content

Commit

Permalink
fix: db connector type fix (#3560)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvmakine authored Nov 28, 2024
1 parent 66c3518 commit 6d25f64
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/schema/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ func DatabaseConnectorFromProto(s *schemapb.DatabaseConnector) DatabaseConnector
switch s := s.Value.(type) {
case *schemapb.DatabaseConnector_DsnDatabaseConnector:
return &DSNDatabaseConnector{DSN: s.DsnDatabaseConnector.Dsn}
case *schemapb.DatabaseConnector_AwsiamAuthDatabaseConnector:
return &AWSIAMAuthDatabaseConnector{
Username: s.AwsiamAuthDatabaseConnector.Username,
Endpoint: s.AwsiamAuthDatabaseConnector.Endpoint,
Database: s.AwsiamAuthDatabaseConnector.Database,
}
default:
panic(fmt.Sprintf("unknown database connector type: %T", s))
}
Expand Down

0 comments on commit 6d25f64

Please sign in to comment.