Documentation

diff

array public static
\Bitrix\Perfmon\Sql\Compare::diff(
 \Bitrix\Perfmon\Sql\Schema $source,
 \Bitrix\Perfmon\Sql\Schema $target
);

Non-static method compares layouts of two databases and returns array of pairs.

Array's pair consists of the following two elements:

-First element with index элемент "0" is an object from source content.

-Second element with index "1" is an object from $targetList. Paired object can be empty if such element wasn't found.

Parameters

ParameterDescriptionVersion
$sourceSource layout.
$targetTarget layout.

Example



© «Bitrix24», 2001-2024