Property | Type | Description | |
---|---|---|---|
$config | Autarky\Config\ConfigInterface | ||
$defaultConnection | string | The default connection to use | |
$factory | |||
$instances | PDO[] | PDO instances. |
Method | Description | |
---|---|---|
__construct ( Autarky\Config\ConfigInterface $config, Autarky\Database\ConnectionFactoryInterface $factory, string | null $defaultConnection = null ) | Constructor. | |
getConnectionConfig ( string $connection = null ) : array | Get the configuration array for a specific connection. | |
getPdo ( string | null $connection = null ) : PDO | Get a PDO instance. |
public __construct ( Autarky\Config\ConfigInterface $config, Autarky\Database\ConnectionFactoryInterface $factory, string | null $defaultConnection = null ) | ||
$config | Autarky\Config\ConfigInterface | |
$factory | Autarky\Database\ConnectionFactoryInterface | |
$defaultConnection | string | null | If null, "database.connection" is retrieved from $config |
public getConnectionConfig ( string $connection = null ) : array | ||
$connection | string | The name of the connection. |
return | array |
protected ConfigInterface,Autarky\Config $config | ||
return | Autarky\Config\ConfigInterface |
protected string $defaultConnection | ||
return | string |
protected ConnectionFactory,Autarky\Database $factory | ||
return |