neo4j-contrib / neomodel

An Object Graph Mapper (OGM) for the Neo4j graph database.
https://neomodel.readthedocs.io
MIT License
939 stars 231 forks source link

Add support for relationship uniqueness constraints #752

Closed mariusconjeaud closed 11 months ago

mariusconjeaud commented 11 months ago

Feature introduced in Neo4j 5.7. Throws a FeatureNotSupported exception if used while connected to a <5.7 Neo4j database.

Also add some tests for database version and edition detection.

codecov[bot] commented 11 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (a2c7f32) 86.27% compared to head (9e9d139) 86.37%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## rc/5.1.2 #752 +/- ## ============================================ + Coverage 86.27% 86.37% +0.10% ============================================ Files 19 19 Lines 2405 2430 +25 ============================================ + Hits 2075 2099 +24 - Misses 330 331 +1 ``` | [Files](https://app.codecov.io/gh/neo4j-contrib/neomodel/pull/752?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=neo4j-contrib) | Coverage Δ | | |---|---|---| | [neomodel/util.py](https://app.codecov.io/gh/neo4j-contrib/neomodel/pull/752?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=neo4j-contrib#diff-bmVvbW9kZWwvdXRpbC5weQ==) | `90.94% <100.00%> (+0.39%)` | :arrow_up: | | [neomodel/core.py](https://app.codecov.io/gh/neo4j-contrib/neomodel/pull/752?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=neo4j-contrib#diff-bmVvbW9kZWwvY29yZS5weQ==) | `95.15% <92.85%> (-0.12%)` | :arrow_down: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sonarcloud[bot] commented 11 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication