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 request: Add filter support for Relational Mapping #175

Closed
MauricioUyaguari opened this issue Apr 29, 2021 · 0 comments · Fixed by #205
Closed

Feature request: Add filter support for Relational Mapping #175

MauricioUyaguari opened this issue Apr 29, 2021 · 0 comments · Fixed by #205

Comments

@MauricioUyaguari
Copy link
Member

MauricioUyaguari commented Apr 29, 2021

Support a filter lambda as part of relational mapping. This feature gives users the ability to filter through a lambda. The filter will be applied to the source which in this case is a relational mapping.

Example:

Class my::Person
{
   firstName : String[0..1];
   lastName : String[0..1];
}

###Relational
Database my::mainDb
(
   Table PersonTable(firstName VARCHAR(200), lastName VARCHAR(200))
   Filter PersonFilter(PersonTable.firstName = 'Utkarsh')
)

###Mapping
Mapping my::mainMap
(
   my::Person : Relational
   {
      ~filter [my::mainDb] PersonFilter
      firstName : [my::mainDb]PersonTable.firstName,
      lastName : [my::mainDb]PersonTable.lastName
   }
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants