Метод |
Описание |
|
__destruct ( ) |
|
|
add ( Connection $conn, string $id = 'default' ) |
Add connection. |
|
addDataSource ( string $id, array $config ) |
Add custom data source:. |
|
close ( $sourceId ) |
Close connection. |
|
closeAll ( ) |
Close all connections. |
|
free ( ) |
free connections,
reset data sources. |
|
get ( $dsId ) |
|
|
getConnection ( $sourceId ) |
Create connection. |
|
getDataSource ( $id ) : array |
Get datasource config. |
|
getDataSourceIdList ( ) : array |
Return datasource id(s). |
|
getDefaultConnection ( ) : string |
Get default data source id. |
|
getDriverType ( $id ) |
|
|
getInstance ( ) |
Get singleton instance. |
|
getQueryDriver ( string $id ) : LazyRecord\QueryDriver |
Get SQLBuilder\QueryDriver by data source id. |
|
has ( string $id ) |
Check if we have connected already. |
|
hasDataSource ( $id = 'default' ) |
|
|
init ( ConfigLoader $config ) |
|
|
offsetExists ( string $name ) |
Check if a connection exists. |
|
offsetGet ( string $name ) |
Get connection by data source id. |
|
offsetSet ( string $name, Connection $value ) |
ArrayAccess interface. |
|
offsetUnset ( $name ) |
|
|
prepareAndExecute ( $dsId, $sql, array $args = [] ) |
|
|
query ( $dsId, string $sql ) |
get pdo connetion and make a query. |
|
removeDataSource ( $id ) |
|
|