Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-120

Provide way to inspect defaults

    XMLWordPrintable

Details

    • New Feature
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      With the python connector, we can do conn.connect() or conn.connect(default_file=) to connect to the database. This will automatically (great feature!) read cnf files in the same precedence as command line tools.

      The problem is, as developers we don't know what these are, only that a connection is made.

      There should be an object conn.defaults() or conn.configuration_settings() etc that can be used to understand what files, sections and variables are being used to create a connection.

      This should work prior to conn.connect() and after. i.e. it will show what it would use to connect if it tries to connect. After connection, it would show what it used to connect.

      Attachments

        Activity

          People

            georg Georg Richter
            manjot Manjot Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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