Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/limit and order #73

Open
wants to merge 116 commits into
base: main
Choose a base branch
from

use constants for dialectors

7f778cf
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

Feature/limit and order #73

use constants for dialectors
7f778cf
Select commit
Loading
Failed to load commit list.
GitHub Actions / sqlite Integration Tests Report succeeded Sep 7, 2023 in 0s

sqlite Integration Tests Report ✅

Tests passed successfully

✅ integration-tests-sqlite.xml

146 tests were completed in 57s with 146 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
github.com/ditrit/badaas/testintegration 146✅ 998ms

✅ github.com/ditrit/badaas/testintegration

✅ TestBaDaaSORM/TestAscendingReturnsResultsInAscendingOrder
✅ TestBaDaaSORM/TestDescendingReturnsResultsInDescendingOrder
✅ TestBaDaaSORM/TestFindOneReturnsEntityIfConditionsMatch
✅ TestBaDaaSORM/TestFindOneReturnsErrorIfConditionsDontMatch
✅ TestBaDaaSORM/TestFindOneReturnsErrorIfMoreThanOneMatchConditions
✅ TestBaDaaSORM/TestFirstReturnsErrorIfConditionsDontMatch
✅ TestBaDaaSORM/TestFirstReturnsFirstEntityIfConditionsMatch
✅ TestBaDaaSORM/TestLastReturnsErrorIfConditionsDontMatch
✅ TestBaDaaSORM/TestLastReturnsLastEntityIfConditionsMatch
✅ TestBaDaaSORM/TestLimitCanBeCanceled
✅ TestBaDaaSORM/TestLimitLimitsTheAmountOfModelsReturned
✅ TestBaDaaSORM/TestOffsetAndLimitWorkTogether
✅ TestBaDaaSORM/TestOffsetReturnsEmptyIfMoreOffsetThanResults
✅ TestBaDaaSORM/TestOffsetSkipsTheModelsReturned
✅ TestBaDaaSORM/TestOrderByFieldThatIsJoined
✅ TestBaDaaSORM/TestOrderReturnsErrorIfFieldIsJoinedMoreThanOnceAndJoinIsNotSelected
✅ TestBaDaaSORM/TestOrderReturnsErrorIfFieldIsNotConcerned
✅ TestBaDaaSORM/TestOrderWorksIfFieldIsJoinedMoreThanOnceAndJoinIsSelected
✅ TestBaDaaSORM/TestTakeReturnsErrorIfConditionsDontMatch
✅ TestBaDaaSORM/TestTakeReturnsFirstCreatedEntityIfConditionsMatch
✅ TestBaDaaSORM/TestConditionOfBoolType
✅ TestBaDaaSORM/TestConditionOfByteArrayEmpty
✅ TestBaDaaSORM/TestConditionOfByteArrayWithContent
✅ TestBaDaaSORM/TestConditionOfCreatedAt
✅ TestBaDaaSORM/TestConditionOfCustomType
✅ TestBaDaaSORM/TestConditionOfDeletedAt
✅ TestBaDaaSORM/TestConditionOfEmbedded
✅ TestBaDaaSORM/TestConditionOfFloatType
✅ TestBaDaaSORM/TestConditionOfGormEmbedded
✅ TestBaDaaSORM/TestConditionOfID
✅ TestBaDaaSORM/TestConditionOfIntType
✅ TestBaDaaSORM/TestConditionOfPointerTypeWithValue
✅ TestBaDaaSORM/TestConditionOfRelationType
✅ TestBaDaaSORM/TestConditionOfRelationTypeOptionalByNil
✅ TestBaDaaSORM/TestConditionOfRelationTypeOptionalWithValue
✅ TestBaDaaSORM/TestConditionsOnUIntModel
✅ TestBaDaaSORM/TestConditionsReturnsEmptyIfNotEntitiesCreated
✅ TestBaDaaSORM/TestConditionsReturnsEmptyIfNothingMatch
✅ TestBaDaaSORM/TestConditionsReturnsMultipleIfMultipleMatch
✅ TestBaDaaSORM/TestConditionsReturnsOneIfOnlyOneMatch
✅ TestBaDaaSORM/TestDeletedAtConditionIsAddedAutomatically
✅ TestBaDaaSORM/TestEmptyConnectionConditionMakesNothing
✅ TestBaDaaSORM/TestEmptyContainerConditionReturnsError
✅ TestBaDaaSORM/TestMultipleConditionsAreConnectedByAnd
✅ TestBaDaaSORM/TestMultipleConditionsDifferentOperators
✅ TestBaDaaSORM/TestMultipleConditionsOfDifferentTypesWorks
✅ TestBaDaaSORM/TestNot
✅ TestBaDaaSORM/TestNotOr
✅ TestBaDaaSORM/TestNotWithMultipleConditionsAreConnectedByAnd
✅ TestBaDaaSORM/TestOr
✅ TestBaDaaSORM/TestQueryReturnsEmptyIfNotEntitiesCreated
✅ TestBaDaaSORM/TestQueryReturnsTheListWhenMultipleCreated
✅ TestBaDaaSORM/TestQueryReturnsTheOnlyOneIfOneEntityCreated
✅ TestBaDaaSORM/TestUnsafeCondition
✅ TestBaDaaSORM/TestXor
✅ TestBaDaaSORM/TestConditionThatJoinsAddsDeletedAtAutomatically
✅ TestBaDaaSORM/TestConditionThatJoinsAndFiltersByNil
✅ TestBaDaaSORM/TestConditionThatJoinsAndFiltersTheMainEntity
✅ TestBaDaaSORM/TestConditionThatJoinsBelongsTo
✅ TestBaDaaSORM/TestConditionThatJoinsDifferentEntities
✅ TestBaDaaSORM/TestConditionThatJoinsHasOneOptional
✅ TestBaDaaSORM/TestConditionThatJoinsHasOneSelfReferential
✅ TestBaDaaSORM/TestConditionThatJoinsMultipleTimes
✅ TestBaDaaSORM/TestConditionThatJoinsOnDeletedAt
✅ TestBaDaaSORM/TestConditionThatJoinsOnDifferentAttributes
✅ TestBaDaaSORM/TestConditionThatJoinsOnHasMany
✅ TestBaDaaSORM/TestConditionThatJoinsOneToOne
✅ TestBaDaaSORM/TestConditionThatJoinsOneToOneReversed
✅ TestBaDaaSORM/TestConditionThatJoinsUintBelongsTo
✅ TestBaDaaSORM/TestConditionThatJoinsWithEntityThatDefinesTableName
✅ TestBaDaaSORM/TestDynamicOperatorJoinMoreThanOnceWithSelectJoin
✅ TestBaDaaSORM/TestDynamicOperatorJoinMoreThanOnceWithoutSelectJoinOnMultivalueOperatorReturnsError
✅ TestBaDaaSORM/TestDynamicOperatorJoinMoreThanOnceWithoutSelectJoinReturnsError
✅ TestBaDaaSORM/TestDynamicOperatorOver2Tables
✅ TestBaDaaSORM/TestDynamicOperatorOver2TablesAtMoreLevel
✅ TestBaDaaSORM/TestDynamicOperatorWithNotJoinedModelReturnsError
✅ TestBaDaaSORM/TestJoinWithEmptyConnectionConditionMakesNothing
✅ TestBaDaaSORM/TestJoinWithEmptyContainerConditionReturnsError
✅ TestBaDaaSORM/TestJoinWithUnsafeCondition
✅ TestBaDaaSORM/TestJoinMultipleTimesAndPreloadDiamond
✅ TestBaDaaSORM/TestJoinMultipleTimesAndPreloadWithCondition
✅ TestBaDaaSORM/TestJoinMultipleTimesAndPreloadWithoutCondition
✅ TestBaDaaSORM/TestNoPreloadCollection
✅ TestBaDaaSORM/TestNoPreloadNullableAtSecondLevel
✅ TestBaDaaSORM/TestNoPreloadOneToOne
✅ TestBaDaaSORM/TestNoPreloadReturnsErrorOnGetRelation
✅ TestBaDaaSORM/TestNoPreloadWhenItsNullKnowsItsReallyNull
✅ TestBaDaaSORM/TestPreloadAtSecondLevelWorksWithManualPreload
✅ TestBaDaaSORM/TestPreloadCollection
✅ TestBaDaaSORM/TestPreloadDifferentEntitiesWithConditions
✅ TestBaDaaSORM/TestPreloadDifferentEntitiesWithoutConditions
✅ TestBaDaaSORM/TestPreloadEmptyCollection
✅ TestBaDaaSORM/TestPreloadHasManyReversed
✅ TestBaDaaSORM/TestPreloadListAndNestedAttributes
✅ TestBaDaaSORM/TestPreloadListAndNestedAttributesWithFiltersReturnsError
✅ TestBaDaaSORM/TestPreloadListAndNestedAttributesWithoutPreloadReturnsError
✅ TestBaDaaSORM/TestPreloadMultipleListsAndNestedAttributes
✅ TestBaDaaSORM/TestPreloadNullableAtSecondLevel
✅ TestBaDaaSORM/TestPreloadOneToOne
✅ TestBaDaaSORM/TestPreloadOneToOneReversed
✅ TestBaDaaSORM/TestPreloadRelations
✅ TestBaDaaSORM/TestPreloadSelfReferential
✅ TestBaDaaSORM/TestPreloadSelfReferentialAtSecondLevel
✅ TestBaDaaSORM/TestPreloadUIntModel
✅ TestBaDaaSORM/TestPreloadWithWhereConditionFilters
✅ TestBaDaaSORM/TestPreloadWithoutWhereConditionDoesNotFilter
✅ TestBaDaaSORM/TestPreloadWithoutWhereConditionDoesNotFilterAtSecondLevel
✅ TestBaDaaSORM/TestArrayIn
✅ TestBaDaaSORM/TestArrayNotIn
✅ TestBaDaaSORM/TestBetween
✅ TestBaDaaSORM/TestDynamicOperatorForBaseModelAttribute
✅ TestBaDaaSORM/TestDynamicOperatorForBasicType
✅ TestBaDaaSORM/TestDynamicOperatorForCustomType
✅ TestBaDaaSORM/TestDynamicOperatorForNotNullTypeCanBeComparedWithNullableType
✅ TestBaDaaSORM/TestEqNullableType
✅ TestBaDaaSORM/TestEqPointers
✅ TestBaDaaSORM/TestGt
✅ TestBaDaaSORM/TestGtOrEq
✅ TestBaDaaSORM/TestILike
✅ TestBaDaaSORM/TestIsDistinct
✅ TestBaDaaSORM/TestIsFalse
✅ TestBaDaaSORM/TestIsNotDistinct
✅ TestBaDaaSORM/TestIsNotFalse
✅ TestBaDaaSORM/TestIsNotNullNullableTypes
✅ TestBaDaaSORM/TestIsNotNullPointers
✅ TestBaDaaSORM/TestIsNotTrue
✅ TestBaDaaSORM/TestIsNotUnknown
✅ TestBaDaaSORM/TestIsNullNullableTypes
✅ TestBaDaaSORM/TestIsNullPointers
✅ TestBaDaaSORM/TestIsTrue
✅ TestBaDaaSORM/TestIsUnknown
✅ TestBaDaaSORM/TestLike
✅ TestBaDaaSORM/TestLikeEscape
✅ TestBaDaaSORM/TestLikeOnNumeric
✅ TestBaDaaSORM/TestLt
✅ TestBaDaaSORM/TestLtOrEq
✅ TestBaDaaSORM/TestNotBetween
✅ TestBaDaaSORM/TestNotEq
✅ TestBaDaaSORM/TestPosixRegexCaseInsensitive
✅ TestBaDaaSORM/TestPosixRegexCaseSensitive
✅ TestBaDaaSORM/TestSimilarTo
✅ TestBaDaaSORM/TestUnsafeOperatorCanCompareFieldsThatMapToTheSameType
✅ TestBaDaaSORM/TestUnsafeOperatorInCaseFieldWithTypesNotMatch
✅ TestBaDaaSORM/TestUnsafeOperatorInCaseTypesNotMatchConvertible
✅ TestBaDaaSORM/TestUnsafeOperatorInCaseTypesNotMatchNotConvertible
✅ TestBaDaaSORM