enumParameterPrefix
enum ParameterPrefix: string
Public API: explicitly declared with
@visibility public.The characters a bind parameter starts with.
Source: https://sqlite.org/lang_expr.html#parameters.
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT :id');
$query->statement->columns[0]->expression->prefix // => \SqlSemantics\Platform\Sqlite\Statement\Expression\ParameterPrefix::ColonCases§
case Question = '?'case Colon = ':'case At = '@'case Dollar = '$'Test cases 10§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 7
ExpressionRuleTest::testParameterLowersEveryPrefixWithItsLabelcallsProgramOnlyTest::testHoldsFindsANodeOfAClassAnywhereInTheStructurecallsProgramOnlyTest::testInsideProgramReportsABindParameterOncecallsBindParameterTest::testMarkerJoinsThePrefixAndTheLabelcallsBindParameterTest::testMarkerReadsEveryWrittenPrefixcallsBindParameterTest::testRenderWritesANewlyBuiltParametercallsFrameBoundTest::testRenderWritesANewlyBuiltBoundarycalls