classMisuse
final class Misuse
implements Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.A request SQLite rejects because it breaks a rule of the language.
(new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT *') // throws \SqlSemantics\Platform\Sqlite\Model\Diagnostic\SemanticException: no tables specifiedProperties§
public MisuseRule $ruleMethods§
public function __construct(public MisuseRule $rule)Parameters
$rule | MisuseRule | The broken rule |
public function message(): stringDescribes the broken rule in the words of SQLite.
Returns
stringTest cases 1
Test cases 39§
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 37
FromRuleTest::testTermsAnswersOneTermWithoutAConstraintAndAChainOtherwisecallsFromRuleTest::testWordLowersAWordBeforeJoinAsAKeywordWhenWrittenAsOneAndAsANameOtherwisecallsSortRuleTest::testColumnsLowersTheNamesOfAColumnListWithCollationAndDirectioncallsTriggerRuleTest::testTargetLowersTheWrittenTableWithItsIndexChoiceAndReportsWhatSqliteRefusescallsProgramOnlyTest::testInsideProgramIsAppliedToTheConditionAndTheStatementsOfATriggercallsProgramOnlyTest::testInsideProgramReportsABindParameterOncecallsProgramOnlyTest::testOutsideProgramIsAppliedToAQueryAndNotToATriggerProgramcallsProgramOnlyTest::testOutsideProgramReportsARaiseFunctioncallsRowValueUseTest::testUniformReportsARowValueBesideASingleValuecallsRowValueUseTest::testWidthIsUnknownForADependentOrInvalidTypecallsTriggerFactsTest::testDeriveReportsAParameterAnywhereInTheProgramcallsTriggerFactsTest::testDeriveReportsTriggerOnlyMisusesAndTheColumnsOfUpdateOfcallsFromScopeTest::testEnterReportsConstraintsWithoutAJoinAndInvalidOperatorscallsStoragesTest::testEitherIsInvalidWhenAnAlternativeIscallsStoragesTest::testOfIsNullForADependentOrInvalidFactcallsCaseExpressionTest::testDeriveScalarReportsARowValueComparedWithASingleBasecallsCaseExpressionTest::testDeriveScalarReportsARowValueConditioncallsCaseExpressionTest::testDeriveScalarReportsARowValueResultcallsCollateTest::testDeriveScalarReportsACollatedRowValuecallsHexLiteralTest::testDeriveScalarReportsALiteralWiderThanSixtyFourBitscallsBetweenTest::testDeriveScalarReportsARowValueBesideSingleValuescallsBinaryTest::testDeriveScalarReportsARowValueBesideASingleValuecallsBinaryTest::testDeriveScalarReportsARowValueOperandOfAnyOtherOperatorcallsPatternMatchTest::testDeriveScalarReportsARowValueOperandcallsUnaryTest::testDeriveScalarReportsARowValueOperandcallsRaiseTest::testDeriveScalarOutsideATriggerIsReportedByTheStatementcallsRowExpressionTest::testDeriveScalarAsAResultColumnIsReportedByTheSelectioncallsDeleteTest::testDeriveStatementReportsRaiseOutsideATriggercallsInsertRowsTest::testDeriveStatementReportsRaiseOutsideATriggercallsUpdateTest::testDeriveStatementReportsRaiseOutsideATriggercallsCompoundTest::testDeriveQueryReportsAnOrderByOrALimitBeforeTheOperatorcallsMisuseRuleTest::testCasesAreReportedForTheStatementsThatBreakThemcallsSelectTest::testDeriveStatementReportsRaiseOutsideATriggercallsJoinChainTest::testDeriveRelationReportsAConstraintWrittenWithoutAJoincallsJoinChainTest::testDeriveRelationReportsAnUnknownJoinTypeAndANaturalJoinWithAConstraintcallsJoinOnTest::testConditionMustBeASingleValuecallsCreateTriggerTest::testDeriveStatementReportsWhatSqliteForbidsInsideATriggercalls
Relations§
Instantiated in 16
- new SqlSemantics\Platform\Sqlite\Rules\Expression\ProgramOnly::outsideProgram() packages/sql-semantics-sqlite/src/Rules/Expression/ProgramOnly.php:35
- new SqlSemantics\Platform\Sqlite\Rules\Expression\ProgramOnly::insideProgram() packages/sql-semantics-sqlite/src/Rules/Expression/ProgramOnly.php:48
- new SqlSemantics\Platform\Sqlite\Rules\Expression\RowValueUse::single() packages/sql-semantics-sqlite/src/Rules/Expression/RowValueUse.php:56
- new SqlSemantics\Platform\Sqlite\Rules\Expression\RowValueUse::uniform() packages/sql-semantics-sqlite/src/Rules/Expression/RowValueUse.php:79
- new SqlSemantics\Platform\Sqlite\Rules\Mutation\TriggerFacts::derive() packages/sql-semantics-sqlite/src/Rules/Mutation/TriggerFacts.php:74
- new SqlSemantics\Platform\Sqlite\Rules\Mutation\TriggerFacts::derive() packages/sql-semantics-sqlite/src/Rules/Mutation/TriggerFacts.php:77
- new SqlSemantics\Platform\Sqlite\Rules\Query\CommonTables::bind() packages/sql-semantics-sqlite/src/Rules/Query/CommonTables.php:60
- new SqlSemantics\Platform\Sqlite\Rules\Query\CommonTables::bind() packages/sql-semantics-sqlite/src/Rules/Query/CommonTables.php:82
- new SqlSemantics\Platform\Sqlite\Rules\Query\CommonTables::shape() packages/sql-semantics-sqlite/src/Rules/Query/CommonTables.php:148
- new SqlSemantics\Platform\Sqlite\Rules\Query\CompoundFacts::derive() packages/sql-semantics-sqlite/src/Rules/Query/CompoundFacts.php:78
- new SqlSemantics\Platform\Sqlite\Rules\Query\Projection::items() packages/sql-semantics-sqlite/src/Rules/Query/Projection.php:61
- new SqlSemantics\Platform\Sqlite\Rules\Query\Projection::items() packages/sql-semantics-sqlite/src/Rules/Query/Projection.php:76
- new SqlSemantics\Platform\Sqlite\Rules\Resolution\FromScope::enter() packages/sql-semantics-sqlite/src/Rules/Resolution/FromScope.php:80
- new SqlSemantics\Platform\Sqlite\Rules\Resolution\FromScope::enter() packages/sql-semantics-sqlite/src/Rules/Resolution/FromScope.php:83
- new SqlSemantics\Platform\Sqlite\Rules\Resolution\FromScope::enter() packages/sql-semantics-sqlite/src/Rules/Resolution/FromScope.php:89
- new SqlSemantics\Platform\Sqlite\Statement\Expression\Literal\HexLiteral::deriveScalar() packages/sql-semantics-sqlite/src/Statement/Expression/Literal/HexLiteral.php:57