DatabaseConnection
in package
implements
IDatabaseConnection
Table of Contents
Interfaces
- IDatabaseConnection
- DB接続。
Properties
Methods
- __construct() : mixed
- 生成。
- getConnectionSetting() : ConnectionSetting
- DB接続情報を取得。
- open() : DatabaseContext
- DB接続を開く。
Properties
$loggerFactory read-only
protected
ILoggerFactory
$loggerFactory
$setting read-only
protected
ConnectionSetting
$setting
Methods
__construct()
生成。
public
__construct(ConnectionSetting $setting, ILoggerFactory $loggerFactory) : mixed
Parameters
- $setting : ConnectionSetting
-
接続設定。
- $loggerFactory : ILoggerFactory
getConnectionSetting()
DB接続情報を取得。
public
getConnectionSetting() : ConnectionSetting
Return values
ConnectionSettingopen()
DB接続を開く。
public
open() : DatabaseContext