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 MongoDB Target #6

Merged
merged 5 commits into from
Oct 28, 2022
Merged

Add MongoDB Target #6

merged 5 commits into from
Oct 28, 2022

Conversation

twgraham
Copy link
Owner

This PR adds initial support for MongoDB as a query target. Specifically it adds:

  • Parsing AnQL queries to FilterDefinition<T>
  • Support for simple property, and string (including regex) property resolving

More resolvers could be added in future to support more complex queries e.g. $elemMatch, $in, and natural language date comparisons.

@codecov
Copy link

codecov bot commented Oct 28, 2022

Codecov Report

Base: 69.24% // Head: 75.79% // Increases project coverage by +6.55% 🎉

Coverage data is based on head (dc4e6c0) compared to base (1631067).
Patch coverage: 97.77% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master       #6      +/-   ##
==========================================
+ Coverage   69.24%   75.79%   +6.55%     
==========================================
  Files          28       33       +5     
  Lines         621      756     +135     
==========================================
+ Hits          430      573     +143     
+ Misses        191      183       -8     
Impacted Files Coverage Δ
src/AnQL.Mongo/Resolvers/StringResolver.cs 92.00% <92.00%> (ø)
src/AnQL.Mongo/Resolvers/SimpleResolver.cs 97.29% <97.29%> (ø)
src/AnQL.Mongo/AnQLBuilderExtensions.cs 100.00% <100.00%> (ø)
src/AnQL.Mongo/AnQLFilterDefinitionVisitor.cs 100.00% <100.00%> (ø)
...rc/AnQL.Mongo/FilterDefinitionAnQLParserBuilder.cs 100.00% <100.00%> (ø)
src/AnQL.Core/Grammar/AnQLBaseVisitor.cs 93.93% <0.00%> (+21.21%) ⬆️
src/AnQL.Core/UnknownPropertyException.cs 80.00% <0.00%> (+80.00%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@twgraham twgraham merged commit 01b1b7a into master Oct 28, 2022
@twgraham twgraham deleted the feat/Mongo branch October 28, 2022 06:50
@twgraham twgraham mentioned this pull request Oct 28, 2022
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