Page MenuHomeDevCentral

Initialize MySQL instance when needed
ClosedPublic

Authored by dereckson on Nov 3 2017, 18:04.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 30, 07:38
Unknown Object (File)
Sat, Mar 28, 08:36
Unknown Object (File)
Fri, Mar 27, 04:54
Unknown Object (File)
Wed, Mar 25, 00:32
Unknown Object (File)
Tue, Mar 24, 19:01
Unknown Object (File)
Tue, Mar 24, 17:57
Unknown Object (File)
Sun, Mar 22, 22:45
Unknown Object (File)
Mon, Mar 16, 16:24
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
No Lint Coverage
Unit
No Test Coverage
Branch
mysql-facultative
Build Status
Buildable 1828
Build 2076: arc lint + arc unit

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.