Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
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, |
}
|
);
|
it might be only documentation issue : https://mariadb-corporation.github.io/mariadb-connector-python/pool.html