Welcome Guest, Not a member yet? Register   Sign In
Unload Database
#6

(12-18-2021, 05:33 AM)iRedds Wrote: The connection to the database is made on the first request to the database.
Don't want to connect? Do not make inquiries into it.

In CI3, autoloading meant pre-linking libraries. In order not to be distracted by initialization while the application is running.



This helped me solving the problem: the database was loaded in a model.
I removed all the queries and now I don't get any connection error if the db is not reachable.
Thank you very muchs!
Reply


Messages In This Thread
Unload Database - by maui82 - 12-16-2021, 01:06 PM
RE: Unload Database - by kenjis - 12-16-2021, 09:50 PM
RE: Unload Database - by maui82 - 12-17-2021, 05:21 AM
RE: Unload Database - by John_Betong - 12-17-2021, 05:38 AM
RE: Unload Database - by iRedds - 12-18-2021, 05:33 AM
RE: Unload Database - by maui82 - 01-17-2022, 09:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB