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

Add support for relationship uniqueness constraints #752

Merged
merged 6 commits into from
Sep 26, 2023

Conversation

mariusconjeaud
Copy link
Collaborator

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
Copy link

codecov bot commented Sep 26, 2023

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
@@             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 Coverage Δ
neomodel/util.py 90.94% <100.00%> (+0.39%) ⬆️
neomodel/core.py 95.15% <92.85%> (-0.12%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sonarcloud
Copy link

sonarcloud bot commented Sep 26, 2023

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

@mariusconjeaud mariusconjeaud merged commit a801e46 into rc/5.1.2 Sep 26, 2023
29 checks passed
@mariusconjeaud mariusconjeaud deleted the task/rel-uniqueness-constraint branch September 26, 2023 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant