Skip to content

Disfavor an init to allow for bare @FetchAll syntax#39

Merged
stephencelis merged 2 commits into
mainfrom
disfavor-init
Apr 23, 2025
Merged

Disfavor an init to allow for bare @FetchAll syntax#39
stephencelis merged 2 commits into
mainfrom
disfavor-init

Conversation

@mbrandonw
Copy link
Copy Markdown
Member

No description provided.

@mbrandonw mbrandonw requested a review from stephencelis April 23, 2025 00:14
@Suite(.dependency(\.defaultDatabase, try .database()))
struct FetchTests {
@Test func bareFetchAll() async throws {
@FetchAll var records: [Record]
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Prior to this PR this kind of query would not actually fetch all records.

@stephencelis stephencelis merged commit a8235fc into main Apr 23, 2025
2 checks passed
@stephencelis stephencelis deleted the disfavor-init branch April 23, 2025 00:24
mbrandonw added a commit that referenced this pull request Aug 4, 2025
Support Archiving for Mac Catalyst
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