classLiteralText
final class LiteralText
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Formats validated PHP scalars as PostgreSQL literal text.
Methods§
public function quoted(bool|int|float|string|Stringable $value): stringQuotes a validated scalar using PostgreSQL literal escaping.
Parameters
$value | bool|int|float|string|Stringable |
Returns
stringTest cases 1
Called from 2
- method-call ZtdQuery\Platform\Postgres\Sql\Value\PgSqlValueRenderer::renderValue() packages/ztd-query-postgres/src/Sql/Value/PgSqlValueRenderer.php:55
- method-call ZtdQuery\Platform\Postgres\Sql\Value\PgSqlValueRenderer::renderValue() packages/ztd-query-postgres/src/Sql/Value/PgSqlValueRenderer.php:67
public function untyped(bool|float|Stringable $value): stringPreserves the existing untyped boolean, float and Stringable expression semantics.
Parameters
$value | bool|float|Stringable |
Returns
stringTest cases 1
Called from 1
Test cases 13§
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 11
PgSqlSessionFactoryTestcallsPgSqlRewriterTestcallsStatementRewriterTestcallsRowSourceRendererTestcallsDeleteTransformerTestcallsInsertTransformerTestcallsMergeTransformerTestcallsPgSqlTransformerTestcallsSelectTransformerTestcallsUpdateTransformerTestcallsPgSqlValueRendererTestcalls
Relations§
Instantiated in 1
Method calls 3
- method-call ZtdQuery\Platform\Postgres\Sql\Value\PgSqlValueRenderer::renderValue() packages/ztd-query-postgres/src/Sql/Value/PgSqlValueRenderer.php:49
- method-call ZtdQuery\Platform\Postgres\Sql\Value\PgSqlValueRenderer::renderValue() packages/ztd-query-postgres/src/Sql/Value/PgSqlValueRenderer.php:55
- method-call ZtdQuery\Platform\Postgres\Sql\Value\PgSqlValueRenderer::renderValue() packages/ztd-query-postgres/src/Sql/Value/PgSqlValueRenderer.php:67