Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.1.12
    • Documentation
    • None

    Description

      it seem strange that for create a pool there is a need to have to call another method :

                  pool = mariadb.ConnectionPool(pool_name="mariadb_pool")
                  pool.set_config({
                                      user: 'root',
                                      host: 'localhost',
                                      database: 'testp',
                                      port: 3306, 
                  });
      

      It would be better to directly permit setting config, something like :

                  pool = mariadb.ConnectionPool(
                                   pool_name="mariadb_pool", 
                                   config: {
                                      user: 'root',
                                      host: 'localhost',
                                      database: 'testp',
                                      port: 3306, 
                                   }
                              );
      

      Attachments

        Activity

          diego dupin Diego Dupin added a comment - it might be only documentation issue : https://mariadb-corporation.github.io/mariadb-connector-python/pool.html

          People

            georg Georg Richter
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.