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

Support for single value decoding #1574

Merged

Conversation

sroebert
Copy link
Contributor

This PR addresses #1572, and has GRDB support generic decodable records that decode their base record from a singleValueContainer.

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.

I did get some random tests failing in the smoke test, but the failures were different per iOS simulator. This also happens when running from the development branch, so I guess that is not my doing.

Copy link
Owner

@groue groue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, @sroebert. And thank you for keeping the changes and tests consistent with #1570, this is much appreciated 👍

There's one catch with the support for 128-bit integers: they require a Swift 6 compiler.

GRDB/Record/FetchableRecord+Decodable.swift Outdated Show resolved Hide resolved
@groue
Copy link
Owner

groue commented Jul 13, 2024

LGTM 👍

@groue groue merged commit 9f41e56 into groue:development Jul 13, 2024
21 checks passed
@groue
Copy link
Owner

groue commented Jul 20, 2024

Shipped in v6.29.0 ⛵

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