symfony-bundle doctrine-init-bundle
nalogka/doctrine-init-bundle
- Tuesday, March 20, 2018
- by AntonTyutin
- Repository
- 0 Watchers
- 0 Stars
- 48 Installations
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 269 % Grown
Execution of initial SQLs after connection is established
Symfony bundle for executing some initial SQLs right after
database connection has been established., (*1)
Installing
composer require nalogka/doctrine-init-bundle
After that you can set up initial sql commands in project configuration:, (*2)
nalogka_connection_init:
initial_sqls:
- "SET SESSION wait_timeout = 3600" # setting up mysql inactivity timeout (sec)
Defined SQLs will be executed right after the connection has been established., (*3)