Skip to content

Map range operations #311

Closed
Closed

Description

@roji

With #63 mapping the built-in range types, we should also map range operations so that it's possible to invoke them from C# without dropping down to raw SQL. The list of operators can be found here, and would include stuff like containment. These would be implemented as EF Core extension methods over NpgsqlRange.

If you're interested in this, please upvote and post which operations interest you most.

Activity

  1. added this to the 2.1.0 milestone on Feb 22, 2018
  2. austindrenski commented on Mar 4, 2018

    @austindrenski
    Contributor

    I'm new to query operator translation, but if no one else has started in on this, I can take a first pass at it. I've forked the dev branch and have gotten most of the test suite building locally.

    So far I've started on the containment operators:

    • NpgsqlRange<T>.Contains(T item)
    • item.ContainedBy(NpgsqlRange<T> range)

    Questions:

    • Does the Npgsql team have a contributors guide that I should review?
    • Should I open a pull request while working on this feature, or wait until all of the operators are passing?
  3. roji commented on Mar 4, 2018

    @roji
    MemberAuthor

    Hi @austindrenski, it's great to have you as a contributor!

    There's no style guide really, I suggest you try to follow the conventions you see in the codebase. You're also welcome to send a PR before you're done and I'll review to make sure you're on the right path.

    Looking forward to seeing your work!

  4. modified the milestones: 2.1.0, Backlog on May 12, 2018
  5. removed
    good first issue
    on May 15, 2018
  6. modified the milestones: Backlog, 2.1.0 on May 15, 2018
  7. roji commented on May 15, 2018

    @roji
    MemberAuthor

    Thanks for your contribution @austindrenski!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions