final class DollarQuotedText
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

A dollar-quoted string: $tag$ text $tag$ (MySQL 8.1 and later).

The text between the delimiters is taken as it is, without escapes; the server treats it as the opaque code of an external language. The tag is part of the spelling the text needs: the text cannot hold its own closing delimiter. Source: https://dev.mysql.com/doc/refman/9.1/en/create-procedure.html.

Holding dollar-quoted codedoctest
$quoted = new \SqlSemantics\Platform\MySql\Statement\Routine\DollarQuotedText('return 1', 'js');
    [$quoted->tag, $quoted->text] // => ['js', 'return 1']

Properties§

public string $text
public string $tag = ''

Methods§

public function __construct(public string $text, public string $tag = '')

Parameters

$textstringThe text between the delimiters
$tagstringThe tag between the dollar signs of each delimiter; may be empty
Calls 3
public function render(Output $out): void

Writes the delimiters around the text.

Parameters

$outOutput
Test cases 2
Calls 1

Test cases 10§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 7
Other tests reaching this symbol 3

Relations§

Instantiated in 1
Type checks 1
Type declarations 2