enumComparison
enum Comparison
Public API: explicitly declared with
@visibility public.How two decoded identifiers are compared in one name space of a language profile.
\SqlSemantics\Platform\Sqlite\Model\Statement\Identifier\Comparison::AsciiInsensitive->equal('Users', 'USERS') // => trueCases§
case Sensitivecase AsciiInsensitiveMethods§
public function equal(string $left, string $right): boolDecides whether two decoded identifiers denote the same name.
Parameters
$left | string | |
$right | string |
Returns
boolCalled from 10
- method-call SqlSemantics\Platform\Sqlite\Model\Contract\AnalysisContext::declared() packages/sql-semantics-sqlite/src/Model/Contract/AnalysisContext.php:86
- method-call SqlSemantics\Platform\Sqlite\Model\Contract\AnalysisContext::declared() packages/sql-semantics-sqlite/src/Model/Contract/AnalysisContext.php:87
- method-call SqlSemantics\Platform\Sqlite\Model\Contract\AnalysisContext::declared() packages/sql-semantics-sqlite/src/Model/Contract/AnalysisContext.php:88
- method-call SqlSemantics\Platform\Sqlite\Model\Statement\Declaration\Table::matchingColumns() packages/sql-semantics-sqlite/src/Model/Statement/Declaration/Table.php:70
- method-call SqlSemantics\Platform\Sqlite\Model\Statement\Declaration\Table::matchingColumns() packages/sql-semantics-sqlite/src/Model/Statement/Declaration/Table.php:79
- method-call SqlSemantics\Platform\Sqlite\Model\Statement\Fact\QueryFact::lookup() packages/sql-semantics-sqlite/src/Model/Statement/Fact/QueryFact.php:97
- method-call SqlSemantics\Platform\Sqlite\Model\Statement\Shape\Fields::lookup() packages/sql-semantics-sqlite/src/Model/Statement/Shape/Fields.php:88
- method-call SqlSemantics\Platform\Sqlite\Rules\Definition\ConstraintScope::lacks() packages/sql-semantics-sqlite/src/Rules/Definition/ConstraintScope.php:53
- method-call SqlSemantics\Platform\Sqlite\Rules\Definition\PrimaryKeyRule::tableKey() packages/sql-semantics-sqlite/src/Rules/Definition/PrimaryKeyRule.php:73
- method-call SqlSemantics\Platform\Sqlite\Rules\Definition\Query\QueryColumns::taken() packages/sql-semantics-sqlite/src/Rules/Definition/Query/QueryColumns.php:140
Calls 3
- class-const Comparison::Sensitive() line 25
- class-const Comparison::AsciiInsensitive() line 26
- method-call Comparison::fold() line 26
public function fold(string $name): stringFolds ASCII letters only; every other byte is kept, independent of the host locale.
Parameters
$name | string |
Returns
stringCalled from 1
Calls 1
- function-call
strtrline 35
Test cases 52§
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 49
DerivationTest::testOutputRecordsTheRowsOfTheRootOncecallsDerivationTest::testOutputRefusesASecondRowSetcallsDerivationTest::testWithinReadsANestedStatementUnderOtherSearchSettingscallsAnalysisContextTest::testDeclaredComparesNamesAsTheContextSayscallsAnalysisContextTest::testDeclaredSearchesOneSchemaAndUsesTheDeclarationSchemaForUnqualifiedTablescallsEnvironmentTest::testAliasedFindsEveryOutputFieldWithTheAliascallsEnvironmentTest::testCommonTableFindsTheNearestBindingWithLaterOnesShadowingEarlierOnescallsLookupLevelTest::testAdmitsAnAliasedOccurrenceByItsAliasOnlycallsLookupLevelTest::testFoundListsTheMatchingSlotsOfEveryAdmittedOccurrenceAtTheGivenDepthcallsTableTest::testMatchingColumnsFindsDeclaredColumnsBeforeImplicitOnescallsTableTest::testMatchingColumnsKeepsARepeatedDeclaredNamecallsTableTest::testMatchingColumnsSearchesEveryImplicitNameWhenNoDeclaredColumnMatchescallsQueryFactTest::testFieldsIsNullWhileAStarCannotBeExpandedcallsQueryFactTest::testFieldsListsACompleteProjectionInOrdercallsQueryFactTest::testLookupDistinguishesUniqueAndAbsentInACompleteShapecallsQueryFactTest::testLookupIsDependentInAnOpenShapeEvenWhenACandidateIsKnowncallsQueryFactTest::testLookupIsNotReachedForAProjectionItemThatIsNeitherFieldNorStarcallsQueryFactTest::testLookupIsNotReachedForAProjectionThatIsNoListcallsFieldsTest::testAtAnswersTheFieldAtAPositioncallsFieldsTest::testAtRefusesAPositionOutsideTheListcallsFieldsTest::testCountIsTheNumberOfOutputPositionscallsFieldsTest::testGetIteratorWalksTheFieldsInOutputOrdercallsFieldsTest::testLookupIsDependentWhileAFieldNameDependsOnMissingInputscallsFieldsTest::testLookupIsNotReachedWhenAFieldHoldsAnotherPositioncallsFieldsTest::testLookupIsSensitiveWhenTheProfileSaysSocallsFieldsTest::testLookupTellsOneNoneAndSeveralApartcallsPlatformTest::testContextAppliesTheNameRulesOfTheDatabasecallsPlatformTest::testContextSearchesTempThenMainByDefaultAndComparesNamesWithoutAsciiCasecallsConstraintScopeTest::testLacksComparesNamesAsTheContextDoescallsConstraintScopeTest::testLacksIsNeverCertainWhileTheColumnListIsNotCompletelyKnowncallsExplainRowsTest::testFactListsTheEightColumnsOfAProgramReportcallsExplainRowsTest::testFactListsTheFourColumnsOfAQueryPlanReportcallsPrimaryKeyRuleTest::testKeyCountsEveryPrimaryKeyConstraintAndUsesTheFirstcallsPrimaryKeyRuleTest::testKeyDoesNotMakeADescendingColumnConstraintTheRowidcallsPrimaryKeyRuleTest::testKeyDoesNotMakeAnotherTypeTheRowidcallsPrimaryKeyRuleTest::testKeyIsEmptyWithoutAPrimaryKeycallsPrimaryKeyRuleTest::testKeyMakesAnIntegerPrimaryKeyColumnTheRowidcallsPrimaryKeyRuleTest::testTableKeyListsTheColumnsOfACompositeKeyInKeyOrdercallsPrimaryKeyRuleTest::testTableKeyMakesASingleIntegerColumnTheRowidWhateverItsSortOrdercallsQueryColumnsTest::testTableColumnsRecordACompoundFromItsArmscallsQueryColumnsTest::testTableColumnsRecordTheTypeOfTheExpressionAffinitycallsQueryColumnsTest::testTableColumnsStopAtAFieldWithoutADeterminedNameOrAffinitycallsQueryColumnsTest::testTakenComparesNamesWithoutRegardToCasecallsQueryColumnsTest::testUniqueEndsBeforeANameThatIsNotDeterminedcallsQueryColumnsTest::testUniqueRenamesARepeatedNameAsSqliteDoescallsQueryColumnsTest::testViewColumnsGiveNoTypesWhenTheColumnListDoesNotFitTheQuerycallsQueryColumnsTest::testViewColumnsKeepTheDeclaredTypeAndTheNullFactOfAReferencedColumncallsQueryColumnsTest::testViewColumnsRecordACompoundFromItsArmscallsQueryColumnsTest::testViewColumnsTakeTheirNamesFromAColumnListAndStopAtANameWithoutAFieldcalls
Relations§
Method calls 10
- method-call SqlSemantics\Platform\Sqlite\Model\Contract\AnalysisContext::declared() packages/sql-semantics-sqlite/src/Model/Contract/AnalysisContext.php:86
- method-call SqlSemantics\Platform\Sqlite\Model\Contract\AnalysisContext::declared() packages/sql-semantics-sqlite/src/Model/Contract/AnalysisContext.php:87
- method-call SqlSemantics\Platform\Sqlite\Model\Contract\AnalysisContext::declared() packages/sql-semantics-sqlite/src/Model/Contract/AnalysisContext.php:88
- method-call SqlSemantics\Platform\Sqlite\Model\Statement\Declaration\Table::matchingColumns() packages/sql-semantics-sqlite/src/Model/Statement/Declaration/Table.php:70
- method-call SqlSemantics\Platform\Sqlite\Model\Statement\Declaration\Table::matchingColumns() packages/sql-semantics-sqlite/src/Model/Statement/Declaration/Table.php:79
- method-call SqlSemantics\Platform\Sqlite\Model\Statement\Fact\QueryFact::lookup() packages/sql-semantics-sqlite/src/Model/Statement/Fact/QueryFact.php:97
- method-call SqlSemantics\Platform\Sqlite\Model\Statement\Shape\Fields::lookup() packages/sql-semantics-sqlite/src/Model/Statement/Shape/Fields.php:88
- method-call SqlSemantics\Platform\Sqlite\Rules\Definition\ConstraintScope::lacks() packages/sql-semantics-sqlite/src/Rules/Definition/ConstraintScope.php:53
- method-call SqlSemantics\Platform\Sqlite\Rules\Definition\PrimaryKeyRule::tableKey() packages/sql-semantics-sqlite/src/Rules/Definition/PrimaryKeyRule.php:73
- method-call SqlSemantics\Platform\Sqlite\Rules\Definition\Query\QueryColumns::taken() packages/sql-semantics-sqlite/src/Rules/Definition/Query/QueryColumns.php:140
Constant reads 10
- class-const SqlSemantics\Platform\Sqlite\Model\Contract\AnalysisContext::__construct() packages/sql-semantics-sqlite/src/Model/Contract/AnalysisContext.php:62
- class-const SqlSemantics\Platform\Sqlite\Model\Contract\AnalysisContext::__construct() packages/sql-semantics-sqlite/src/Model/Contract/AnalysisContext.php:63
- class-const SqlSemantics\Platform\Sqlite\Platform::context() packages/sql-semantics-sqlite/src/Platform.php:135
- class-const SqlSemantics\Platform\Sqlite\Rules\Query\RelationNames::shape() packages/sql-semantics-sqlite/src/Rules/Query/RelationNames.php:77
- class-const SqlSemantics\Platform\Sqlite\Rules\Query\RelationNames::listed() packages/sql-semantics-sqlite/src/Rules/Query/RelationNames.php:118
- class-const SqlSemantics\Platform\Sqlite\Rules\Query\RelationNames::unique() packages/sql-semantics-sqlite/src/Rules/Query/RelationNames.php:133
- class-const SqlSemantics\Platform\Sqlite\Rules\Query\RelationNames::unique() packages/sql-semantics-sqlite/src/Rules/Query/RelationNames.php:139
- class-const SqlSemantics\Platform\Sqlite\Rules\Query\ResultNames::truth() packages/sql-semantics-sqlite/src/Rules/Query/ResultNames.php:237
- class-const SqlSemantics\Platform\Sqlite\Rules\Typing\Functions::row() packages/sql-semantics-sqlite/src/Rules/Typing/Functions.php:160
- class-const SqlSemantics\Platform\Sqlite\Rules\Typing\Functions::result() packages/sql-semantics-sqlite/src/Rules/Typing/Functions.php:186
Type declarations 13
- type SqlSemantics\Platform\Sqlite\Model\Contract\AnalysisContext packages/sql-semantics-sqlite/src/Model/Contract/AnalysisContext.php:62
- type SqlSemantics\Platform\Sqlite\Model\Contract\AnalysisContext packages/sql-semantics-sqlite/src/Model/Contract/AnalysisContext.php:63
- type SqlSemantics\Platform\Sqlite\Model\Statement\Declaration\Table packages/sql-semantics-sqlite/src/Model/Statement/Declaration/Table.php:66
- type SqlSemantics\Platform\Sqlite\Model\Statement\Fact\QueryFact packages/sql-semantics-sqlite/src/Model/Statement/Fact/QueryFact.php:50
- type SqlSemantics\Platform\Sqlite\Model\Statement\Shape\Fields packages/sql-semantics-sqlite/src/Model/Statement/Shape/Fields.php:41
- type SqlSemantics\Platform\Sqlite\Rules\Definition\ConstraintScope packages/sql-semantics-sqlite/src/Rules/Definition/ConstraintScope.php:40
- type SqlSemantics\Platform\Sqlite\Rules\Definition\ExplainRows packages/sql-semantics-sqlite/src/Rules/Definition/ExplainRows.php:66
- type SqlSemantics\Platform\Sqlite\Rules\Definition\PrimaryKeyRule packages/sql-semantics-sqlite/src/Rules/Definition/PrimaryKeyRule.php:38
- type SqlSemantics\Platform\Sqlite\Rules\Definition\PrimaryKeyRule packages/sql-semantics-sqlite/src/Rules/Definition/PrimaryKeyRule.php:67
- type SqlSemantics\Platform\Sqlite\Rules\Definition\Query\QueryColumns packages/sql-semantics-sqlite/src/Rules/Definition/Query/QueryColumns.php:115
- type SqlSemantics\Platform\Sqlite\Rules\Definition\Query\QueryColumns packages/sql-semantics-sqlite/src/Rules/Definition/Query/QueryColumns.php:137
- type SqlSemantics\Platform\Sqlite\Rules\Definition\Query\QueryColumns packages/sql-semantics-sqlite/src/Rules/Definition/Query/QueryColumns.php:167
- type SqlSemantics\Platform\Sqlite\Rules\Definition\Query\QueryColumns packages/sql-semantics-sqlite/src/Rules/Definition/Query/QueryColumns.php:189