Page MenuHomeDevCentral

Initialize MySQL instance when needed
ClosedPublic

Authored by dereckson on Nov 3 2017, 18:04.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 23:38
Unknown Object (File)
Mon, Apr 15, 05:29
Unknown Object (File)
Sun, Apr 14, 06:41
Unknown Object (File)
Sun, Apr 14, 04:34
Unknown Object (File)
Sat, Apr 13, 00:15
Unknown Object (File)
Wed, Apr 10, 14:03
Unknown Object (File)
Tue, Apr 9, 04:42
Unknown Object (File)
Sat, Apr 6, 08:04
Subscribers
None

Details

Summary

$db was populated at global level.

This change introduces a singleton pattern in the sql_db class
to load it when needed.

If a container is introduced, sql_db could be a facade for the
SQL service in the container.

Ref T1294

Diff Detail

Repository
rTOOLS Nasqueron Tools
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Nov 3 2017, 18:05
This revision was automatically updated to reflect the committed changes.