classColumnMapping
final class ColumnMapping
Restricted visibility: declared "@visibility ZtdQuery\Platform\MySql". Code outside that scope must not name this declaration.
Column Mapping.
Methods§
public function inputTargets(
LoadStatement $statement,
TableDefinition $definition,
string $sql,
): list<string>Parameters
$statement | LoadStatement | |
$definition | TableDefinition | |
$sql | string |
Returns
list<string>Throws
Test cases 1
Called from 1
Calls 10
- function-call
array_valuesline 30 - function-call
array_filterline 30 - function-call
countline 35 - new UnsupportedSqlException line 36
- static-call SqlTokenStream::tokenize() line 43
- static-call MySqlLexerProfile::create() line 43
- function-call
substrline 53 - method-call ColumnMapping::inputTarget() line 57
- function-call
strtolowerline 58 - function-call
in_arrayline 63
public function inputTarget(string $sqlPart, string $sql): stringInput Target for the supplied MySQL input.
Parameters
$sqlPart | string | |
$sql | string |
Returns
stringThrows
Test cases 2
Called from 1
Calls 4
- static-call SqlTokenStream::tokenize() line 82
- static-call MySqlLexerProfile::create() line 82
- new UnsupportedSqlException line 86
- function-call
countline 93
public function setOperations(
LoadStatement $statement,
TableDefinition $definition,
string $sql,
): array<string, string>Parameters
$statement | LoadStatement | |
$definition | TableDefinition | |
$sql | string |
Returns
array<string, string>Throws
Test cases 1
Called from 1
Calls 2
- function-call
in_arrayline 121 - new UnsupportedSqlException line 122
public function ignoreRows(LoadStatement $statement, string $sql): intIgnore Rows for the supplied MySQL input.
Parameters
$statement | LoadStatement | |
$sql | string |
Returns
intThrows
Test cases 1
Called from 1
Calls 3
- function-call
filter_varline 146 - function-call
is_intline 147 - new UnsupportedSqlException line 148
public function optionValue(?OptionsArray $options, string $name, string $default): stringOption Value for the supplied MySQL input.
Parameters
$options | ?OptionsArray | |
$name | string | |
$default | string |
Returns
stringTest cases 1
Called from 5
- method-call ZtdQuery\Platform\MySql\Rewrite\LoadData\InputFormat::fromStatement() packages/ztd-query-mysql/src/Rewrite/LoadData/InputFormat.php:49
- method-call ZtdQuery\Platform\MySql\Rewrite\LoadData\InputFormat::fromStatement() packages/ztd-query-mysql/src/Rewrite/LoadData/InputFormat.php:50
- method-call ZtdQuery\Platform\MySql\Rewrite\LoadData\InputFormat::fromStatement() packages/ztd-query-mysql/src/Rewrite/LoadData/InputFormat.php:51
- method-call ZtdQuery\Platform\MySql\Rewrite\LoadData\InputFormat::fromStatement() packages/ztd-query-mysql/src/Rewrite/LoadData/InputFormat.php:52
- method-call ZtdQuery\Platform\MySql\Rewrite\LoadData\InputFormat::fromStatement() packages/ztd-query-mysql/src/Rewrite/LoadData/InputFormat.php:53
Test cases 11§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 6
Other tests reaching this symbol 5
MySqlSessionFactoryTestcallsInputFormatTestcallsMySqlLoadDataProjectorTestcallsRecordParserTestcallsMySqlRewriterTestcalls
Relations§
Instantiated in 8
- new ZtdQuery\Platform\MySql\Rewrite\LoadData\InputFormat::fromStatement() packages/ztd-query-mysql/src/Rewrite/LoadData/InputFormat.php:49
- new ZtdQuery\Platform\MySql\Rewrite\LoadData\InputFormat::fromStatement() packages/ztd-query-mysql/src/Rewrite/LoadData/InputFormat.php:50
- new ZtdQuery\Platform\MySql\Rewrite\LoadData\InputFormat::fromStatement() packages/ztd-query-mysql/src/Rewrite/LoadData/InputFormat.php:51
- new ZtdQuery\Platform\MySql\Rewrite\LoadData\InputFormat::fromStatement() packages/ztd-query-mysql/src/Rewrite/LoadData/InputFormat.php:52
- new ZtdQuery\Platform\MySql\Rewrite\LoadData\InputFormat::fromStatement() packages/ztd-query-mysql/src/Rewrite/LoadData/InputFormat.php:53
- new ZtdQuery\Platform\MySql\Rewrite\LoadData\MySqlLoadDataProjector::project() packages/ztd-query-mysql/src/Rewrite/LoadData/MySqlLoadDataProjector.php:60
- new ZtdQuery\Platform\MySql\Rewrite\LoadData\MySqlLoadDataProjector::project() packages/ztd-query-mysql/src/Rewrite/LoadData/MySqlLoadDataProjector.php:61
- new ZtdQuery\Platform\MySql\Rewrite\LoadData\MySqlLoadDataProjector::project() packages/ztd-query-mysql/src/Rewrite/LoadData/MySqlLoadDataProjector.php:62
Method calls 8
- method-call ZtdQuery\Platform\MySql\Rewrite\LoadData\InputFormat::fromStatement() packages/ztd-query-mysql/src/Rewrite/LoadData/InputFormat.php:49
- method-call ZtdQuery\Platform\MySql\Rewrite\LoadData\InputFormat::fromStatement() packages/ztd-query-mysql/src/Rewrite/LoadData/InputFormat.php:50
- method-call ZtdQuery\Platform\MySql\Rewrite\LoadData\InputFormat::fromStatement() packages/ztd-query-mysql/src/Rewrite/LoadData/InputFormat.php:51
- method-call ZtdQuery\Platform\MySql\Rewrite\LoadData\InputFormat::fromStatement() packages/ztd-query-mysql/src/Rewrite/LoadData/InputFormat.php:52
- method-call ZtdQuery\Platform\MySql\Rewrite\LoadData\InputFormat::fromStatement() packages/ztd-query-mysql/src/Rewrite/LoadData/InputFormat.php:53
- method-call ZtdQuery\Platform\MySql\Rewrite\LoadData\MySqlLoadDataProjector::project() packages/ztd-query-mysql/src/Rewrite/LoadData/MySqlLoadDataProjector.php:60
- method-call ZtdQuery\Platform\MySql\Rewrite\LoadData\MySqlLoadDataProjector::project() packages/ztd-query-mysql/src/Rewrite/LoadData/MySqlLoadDataProjector.php:61
- method-call ZtdQuery\Platform\MySql\Rewrite\LoadData\MySqlLoadDataProjector::project() packages/ztd-query-mysql/src/Rewrite/LoadData/MySqlLoadDataProjector.php:62