Override to use a different app
Override to use a different app
A Map containing all the information needed to created cached functions that check DB availability
A Map containing all the information needed to created cached functions that check DB availability
Defines the functions used to check db availability for each db name
Defines the functions used to check db availability for each db name
The default name used by the apply action that has a default name
The default name used by the apply action that has a default name
Override to change default error page
Override to change default error page
Used to determine which db name config sections are to be included
Used to determine which db name config sections are to be included
Used to includeFilter and to determine defaultName
Used to includeFilter and to determine defaultName
Use the DBAction when you want to use the default settings in your controller.
By default it uses the database named by default in the configuration in all modes (Prod, Dev) except in test, where it uses test.
It is possible to define a maximum amount queries per request that can be handled at a given point to avoid overloading the application (user gets the error page instead of seeing a slow app).
The maximum amount of per requests is read from: db.<db-name>.maxQueriesPerRequest
If you need to override the default behavior, create a new object with the DefaultDBAction trait.