ThingEngineer / PHP-MySQLi-Database-Class

Wrapper for a PHP MySQL class, which utilizes MySQLi and prepared statements.
Other
3.3k stars 1.34k forks source link

Autoreconnect x times #999

Open Pappu420 opened 1 year ago

Pappu420 commented 1 year ago

Hi

It will be nice if, in the class, we can have an option to loop and to reconnect to the Db x times in case the connection failed.

When autoreconnect is true, then the script will keep trying till it times out and trigger all associated events and errors till it times out

Thanks