Documentation

getConnection

\Bitrix\Main\Data\Connection|null public
\Bitrix\Main\Data\ConnectionPool::getConnection(
 string $name = ""
);

This non-static method returns database connection by its name. Creates new connection, when required.

Parameters

ParameterDescriptionVersion
$nameConnection name.

Examples



© «Bitrix24», 2001-2022
Up