← 输入框|github.com|刷新
Skip to content

Make the host and port configurable #95

Closed

Description

@mrigger

Currently, the JDBC string containing the host name and port is hardcoded. For example, consider the connection string for MySQL:

String url = "jdbc:mysql://localhost:3306/?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true";

It would be desirable to make this configurable. We could provide an option to set the JDBC string for each DBMS. For example, for MySQL, the string could look like this:

"jdbc:mysql://$(HOST_NAME):$(PORT)/?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true"

We could then also provide two options to set the host name and port, which are then used to replace the placeholder in the JDBC string.

This would make everything configurable, but also be convenient for users. Most users could go with the default options. Some users might need to configure the port and host. Only very few users probably would need to change the JDBC query string.

Activity

  1. mrigger commented on Jul 30, 2020

    @mrigger
    ContributorAuthor

    #133 implemented similar functionality for Postgres.

  2. mrigger commented on Mar 8, 2021

    @mrigger
    ContributorAuthor

    Yes, you are very welcome to work on this! As a heads up: I will be quite busy until March 17, so I might not have time to review pull requests or give feedback until after this date.

  3. mrigger commented on Mar 25, 2021

    @mrigger
    ContributorAuthor

    Yes, thanks for addressing this issue and for the reminder!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions