AppDatabaseConnection
extends DatabaseConnection
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- 生成。
- getConnectionSetting() : ConnectionSetting
- DB接続情報を取得。
- getSqliteFilePath() : string
- open() : DatabaseContext
- DB接続を開く。
Properties
$loggerFactory read-only
protected
ILoggerFactory
$loggerFactory
$setting read-only
protected
ConnectionSetting
$setting
Methods
__construct()
生成。
public
__construct(AppConfiguration $config, ILoggerFactory $loggerFactory) : mixed
Parameters
- $config : AppConfiguration
- $loggerFactory : ILoggerFactory
getConnectionSetting()
DB接続情報を取得。
public
getConnectionSetting() : ConnectionSetting
Return values
ConnectionSettinggetSqliteFilePath()
public
static getSqliteFilePath(string $connection) : string
Parameters
- $connection : string
Return values
stringopen()
DB接続を開く。
public
open() : DatabaseContext