Skip to content

Commit

Permalink
Refactor MySQLConnection to use connection pooling and update connect…
Browse files Browse the repository at this point in the history
…ion pool size parameter
  • Loading branch information
josephmancuso committed Oct 27, 2024
1 parent 1ad5ad7 commit ba7372f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/integrations/config/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,23 @@
They can be named whatever you want.
"""


DATABASES = {
"default": "mysql",
"mysql": {
"driver": "mysql",
"host": os.getenv("MYSQL_DATABASE_HOST"),
"user": os.getenv("MYSQL_DATABASE_USER"),
"password": os.getenv("MYSQL_DATABASE_PASSWORD"),
"database": "rothco_ll_preproduction",
"database": os.getenv("MYSQL_DATABASE_DATABASE"),
"port": os.getenv("MYSQL_DATABASE_PORT"),
"prefix": "",
"options": {"charset": "utf8mb4"},
"log_queries": True,
"propagate": False,
"connection_pooling_enabled": True,
"connection_pooling_size": 2,
"connection_pooling_max_size": 10,
"connection_pool_min_size": None,
},
"t": {"driver": "sqlite", "database": "orm.sqlite3", "log_queries": True, "foreign_keys": True},
"devprod": {
Expand Down

0 comments on commit ba7372f

Please sign in to comment.