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

Accept jdbcUrl as an environment variable #32

Merged
merged 3 commits into from
Dec 5, 2024

Conversation

codedmart
Copy link
Contributor

@codedmart codedmart commented Dec 5, 2024

This PR adds the ability to set in the config an environment variable for jdbcUrl. It is backwards compatible and also allows for a literal value.

TODO:

  • Check and update cli to default to using the environment variable in the config when writing it
  • Update changelog
  • Updating connector packaging

@@ -28,7 +29,7 @@ class JdbcUrlConfigDeserializer : JsonDeserializer<JdbcUrlConfig>() {
}

data class ConnectorConfiguration(
val jdbcUrl: JdbcUrlConfig = JdbcUrlConfig.Literal(""),
val jdbcUrl: JdbcUrlConfig = JdbcUrlConfig.EnvVar("JDBC_URL"),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, defaulting to the env var is for the CLI, yeah.

@codedmart codedmart merged commit 9cd2c1b into main Dec 5, 2024
@codedmart codedmart deleted the codedmart/env-var-jdbcurl branch December 5, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants