Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-5771

Support database.url for PostgreSQLConnector

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 2.2-backlog
    • 2.0.0.Final
    • postgresql-connector
    • None
    • False
    • None
    • False

      What Debezium connector do you use and what version?

      PostgreSQL Connector 2.0

      Feature request or enhancement

      For feature requests or enhancements, provide this information, please:

      Which use case/requirement will be addressed by the proposed feature?

      I am trying to start an embedded Debezium Engine in my Spring Boot application. I configure Spring Boot by giving it a property which contains the URL, ie. 
      dbc:postgresql://127.0.0.1:5435/mydatabase. To start Debezium I need to split that URL to get to the properties I need (database.hostname, database.port, database.dbname).

      It would be easier to just pass the URL to Debezium instead of the parts. 

      Implementation ideas (optional)

      I see io.debezium.connector.postgresql.connection.PostgresConnection uses a pattern based factory to create the jdbc url from the given properties. It should be possible to use a patternfactory or urlfactory based on the given properties. Use the url if given, otherwise use the other properties to create the url based on the pattern.

            Unassigned Unassigned
            nickstolwijk Nick Stolwijk (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: