enumJsonResponseKind
enum JsonResponseKind: string
Public API: explicitly declared with
@visibility public.What JSON_VALUE and a JSON_TABLE column return when the path finds nothing or an error occurs.
Each case holds the keyword. Source: https://dev.mysql.com/doc/refman/8.4/en/json-search-functions.html#function_json-value.
\SqlSemantics\Platform\MySql\Statement\Call\Json\JsonResponseKind::Default->value // => 'DEFAULT'Cases§
case Error = 'ERROR'case Null = 'NULL'case Default = 'DEFAULT'Test cases 10§
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 9
JsonRuleTest::testPathKeepsTheReversedOrdercallsJsonRuleTest::testResponseLowersOneClausecallsJsonRuleTest::testResponsesLowersOnErrorcallsJsonRuleTest::testValueLowersJsonValuecallsJsonResponseTest::testRenderWritesTheDefaultcallsJsonValueCallTest::testDeriveScalarAnswersTheReturningTypecallsJsonValueCallTest::testRenderWritesTheResponsescallsPathColumnTest::testDeriveColumnsAnswersTheDeclaredTypecallsPathColumnTest::testRenderKeepsTheOrderOfTheResponsescalls
Relations§
Constant reads 4
- class-const SqlSemantics\Platform\MySql\Lowering\Call\JsonRule::response() packages/sql-semantics-mysql/src/Lowering/Call/JsonRule.php:117
- class-const SqlSemantics\Platform\MySql\Lowering\Call\JsonRule::response() packages/sql-semantics-mysql/src/Lowering/Call/JsonRule.php:118
- class-const SqlSemantics\Platform\MySql\Lowering\Call\JsonRule::response() packages/sql-semantics-mysql/src/Lowering/Call/JsonRule.php:119
- class-const SqlSemantics\Platform\MySql\Statement\Call\Json\JsonResponse::__construct() packages/sql-semantics-mysql/src/Statement/Call/Json/JsonResponse.php:37