HomeDevCentral

Initialize MySQL instance when needed

Description

Initialize MySQL instance when needed

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

Reviewers: dereckson

Reviewed By: dereckson

Maniphest Tasks: T1294

Differential Revision: https://devcentral.nasqueron.org/D1162

Details

Provenance
derecksonAuthored on Nov 3 2017, 17:42
derecksonPushed on Nov 3 2017, 18:06
Reviewer
dereckson
Differential Revision
D1162: Initialize MySQL instance when needed
Parents
rTOOLS2bc2a86f91aa: Fix whitespace issues
Branches
Unknown
Tags
Unknown
Tasks
T1294: Dockerize tools.nasqueron.org