JdbcOptions

annotation class JdbcOptions(val user: String = "", val password: String = "", val extractCredFromEnv: Boolean = false, val tableName: String = "", val sqlQuery: String = "")

An annotation class that represents options for JDBC connection.

Properties

Link copied to clipboard

Whether to extract the JDBC credentials from environment variables. Default value is false.

Link copied to clipboard

The password for the JDBC connection. Default value is an empty string. If extractCredFromEnv is true, the password value will be interpreted as key for system environment variable.

Link copied to clipboard

The SQL query to be executed in the JDBC connection. Default value is an empty string.

Link copied to clipboard

The name of the table for the JDBC connection. Default value is an empty string.

Link copied to clipboard

The username for the JDBC connection. Default value is an empty string. If extractCredFromEnv is true, the user value will be interpreted as key for system environment variable.