enumTrimSide
enum TrimSide: string
Public API: explicitly declared with
@visibility public.The ends of a string TRIM removes characters from.
BOTH is the default and the written BOTH is noise; each side selects the function the server calls. Source: https://www.postgresql.org/docs/17/functions-string.html.
\SqlSemantics\Platform\PostgreSql\Statement\Invocation\Text\TrimSide::Leading->function() // => 'ltrim'Cases§
case Both = 'BOTH'case Leading = 'LEADING'case Trailing = 'TRAILING'Methods§
public function function(): stringAnswers the pg_catalog function the server calls.
Returns
stringCalled from 2
- method-call SqlSemantics\Platform\PostgreSql\Statement\Invocation\Text\Trim::outputName() packages/sql-semantics-postgres/src/Statement/Invocation/Text/Trim.php:57
- method-call SqlSemantics\Platform\PostgreSql\Statement\Invocation\Text\Trim::deriveScalar() packages/sql-semantics-postgres/src/Statement/Invocation/Text/Trim.php:74
Calls 3
- class-const TrimSide::Both() line 30
- class-const TrimSide::Leading() line 31
- class-const TrimSide::Trailing() line 32
Test cases 6§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 5
Relations§
Method calls 2
- method-call SqlSemantics\Platform\PostgreSql\Statement\Invocation\Text\Trim::outputName() packages/sql-semantics-postgres/src/Statement/Invocation/Text/Trim.php:57
- method-call SqlSemantics\Platform\PostgreSql\Statement\Invocation\Text\Trim::deriveScalar() packages/sql-semantics-postgres/src/Statement/Invocation/Text/Trim.php:74
Constant reads 5
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\TextRule packages/sql-semantics-postgres/src/Lowering/Invocation/TextRule.php:45
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\TextRule packages/sql-semantics-postgres/src/Lowering/Invocation/TextRule.php:46
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\TextRule packages/sql-semantics-postgres/src/Lowering/Invocation/TextRule.php:47
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Invocation\TextRule packages/sql-semantics-postgres/src/Lowering/Invocation/TextRule.php:48
- class-const SqlSemantics\Platform\PostgreSql\Statement\Invocation\Text\Trim::render() packages/sql-semantics-postgres/src/Statement/Invocation/Text/Trim.php:83