classCopySourceRule
final class CopySourceRule
implements RewriteRule
Implements gram.y/CopyStmt: PROGRAM needs a filename and COPY TO cannot carry a WHERE clause.
Methods§
public function rewrite(TerminalSequence $sequence): TerminalSequenceCompletes only the corresponding COPY source and condition, retaining nested query clauses.
Parameters
$sequence | TerminalSequence |
Returns
Test cases 2
Calls 5
- method-call TerminalSequence::occurrences() line 23
- method-call TerminalSequence::child() line 24
- method-call TerminalSequence::range() line 26
- function-call
in_arrayline 28 - method-call TerminalSequence::nameAt() line 28
Test cases 8§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 6
MySqlProviderTestcallsGenerationContextTestcallsRewriteDefinitionsTestcallsPostgreSqlProviderTestcallsSqlGeneratorFactoryTestcallsSqliteProviderTestcalls