\apex\app\dbdb_connections

Handles the various database connections, and whether they are read-only or write connections. Retrives the necessary db connection information from redis when necessary.

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
get_connection()
No protected properties found
N/A
get_server_info()
$app
$db
$connections
N/A

Properties

$app

$app : 

Type

$db

$db : 

Type

$connections

$connections : 

Type

Methods

get_connection()

get_connection(string  $type = 'read') 

Check database connection

Get database connection.

Checks to see whether we're connected to the mySQL database, and if so, if we're connected with the correct mySQL user depending on if it's a read / write connection.

Parameters

string $type

The type of connection we need (read or write).

get_server_info()

get_server_info(string  $type = 'read') 

Get a database server credentials.

Parameters

string $type

The type of connection. Must be 'read' or 'write'