enumTemporalForm
enum TemporalForm: string
Public API: explicitly declared with
@visibility public.The keywords a standard date and time literal is written with.
Source: https://dev.mysql.com/doc/refman/8.4/en/date-and-time-literals.html.
\SqlSemantics\Platform\MySql\Statement\Literal\TemporalForm::Timestamp->value // => 'TIMESTAMP'Cases§
case Date = 'DATE'case Time = 'TIME'case Timestamp = 'TIMESTAMP'Test cases 13§
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 12
LiteralRuleTest::testLiteralLowersEveryLiteralFormcallsKeywordCallTest::testDeriveScalarTypesAddDateAsDateArithmeticcallsDateArithmeticTest::testDeriveScalarFollowsTheDateAndTheUnitcallsTimestampCallTest::testDeriveScalarTypesADifferenceAsAnIntegercallsTimestampCallTest::testDeriveScalarTypesAnAdditionAsDateArithmeticcallsIntervalAdditionTest::testDeriveScalarMakesADateTimeForATimeUnitcallsIntervalArithmeticTest::testDeriveScalarKeepsADateForADateUnitcallsTemporalLiteralTest::testDeriveScalarAnswersTheTemporalTypeThatIsNeverNullcallsTemporalLiteralTest::testDeriveScalarRejectsALiteralSpelledUnderTheOtherEscapeRulecallsTemporalLiteralTest::testTypeAnswersDateTimeForTimestampAndIgnoresATimeZoneOffsetcallsTemporalLiteralTest::testTypeAnswersDateWithoutAPrecisioncallsTemporalLiteralTest::testTypeCountsTheFractionalDigitsUpToSixcalls
Relations§
Constant reads 5
- class-const SqlSemantics\Platform\MySql\Lowering\Leaf\LiteralRule packages/sql-semantics-mysql/src/Lowering/Leaf/LiteralRule.php:76
- class-const SqlSemantics\Platform\MySql\Lowering\Leaf\LiteralRule packages/sql-semantics-mysql/src/Lowering/Leaf/LiteralRule.php:76
- class-const SqlSemantics\Platform\MySql\Lowering\Leaf\LiteralRule packages/sql-semantics-mysql/src/Lowering/Leaf/LiteralRule.php:77
- class-const SqlSemantics\Platform\MySql\Statement\Literal\TemporalLiteral::type() packages/sql-semantics-mysql/src/Statement/Literal/TemporalLiteral.php:57
- class-const SqlSemantics\Platform\MySql\Statement\Literal\TemporalLiteral::type() packages/sql-semantics-mysql/src/Statement/Literal/TemporalLiteral.php:62