Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-1085

Utility method to display configuration from url string

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • 3.2.0
    • configuration
    • None

    Description

      New static method Configuration.toConf(String url) addition in order to display configuration from an url string.

      Example:

      Configuration.toConf("jdbc:mariadb:loadbalance://host1:3305,address=(host=host2)(port=3307)(type=replica)/db?nonExisting&nonExistingWithValue=tt&user=me&password=***&timezone=UTC&autocommit=false&createDatabaseIfNotExist=true&")
      

      Will return a String like :

      Configuration:
       * resulting Url : jdbc:mariadb:loadbalance://address=(host=host1)(port=3305)(type=primary),address=(host=host2)(port=3307)(type=replica)/db?user=me&password=***&nonExisting=&nonExistingWithValue=tt&timezone=UTC&autocommit=false&createDatabaseIfNotExist=true
      Unknown options : 
       * nonExisting : 
       * nonExistingWithValue : tt
       
      Non default options : 
       * addresses : [address=(host=host1)(port=3305)(type=primary), address=(host=host2)(port=3307)(type=replica)]
       * autocommit : false
       * createDatabaseIfNotExist : true
       * database : db
       * haMode : LOADBALANCE
       * password : ***
       * timezone : UTC
       * user : me
       
      default options :
       * allowLocalInfile : true
       * allowMultiQueries : false
       * allowPublicKeyRetrieval : false
       * ...
      

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.