Class Misago\ActiveRecord\Connection

Handles database connections.

Methods

Public static methods

create($environment)

Creates a singleton (one single connection object per configuration entry).

Shouldn't be called directly, except on a few circumstances. Use get() instead.

get($environment)

Returns the connection object for the given configuration. Will create it automatically, if it doesn't exists already.

load_configuration()

Loads configurations from config/database.yml.