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 coalesce free function and Row method #1645

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

philmitchell
Copy link

As discussed with @groue, added coalesce methods as a best-effort alternative in cases where nil-coalescing fails. (I did investigate addressing the failure directly, but given the double optionals that represent null values (.some(.none)), it seems unlikely to bear fruit.)

Pull Request Checklist

  • CONTRIBUTING: You have read https://github.com/groue/GRDB.swift/blob/master/CONTRIBUTING.md
  • BRANCH: This pull request is submitted against the development branch.
  • DOCUMENTATION: Inline documentation has been updated.
  • DOCUMENTATION: README.md or another dedicated guide has been updated.
  • TESTS: Changes are tested.
  • TESTS: The make smokeTest terminal command runs without failure.

@groue
Copy link
Owner

groue commented Sep 30, 2024

Hello @philmitchell, I'm glad to hear about you :) Please give me a couple of days before I can review the pull request.

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.

2 participants