Skip to content

Add Statement.fetchAll(sectionBy:) - #513

Merged
stephencelis merged 5 commits into
section-by-joinfrom
section-by-key-request
Jul 27, 2026
Merged

Add Statement.fetchAll(sectionBy:)#513
stephencelis merged 5 commits into
section-by-joinfrom
section-by-key-request

Conversation

@stephencelis

Copy link
Copy Markdown
Member

A parallel story to @FetchAll(sectionBy:) for use in FetchKeyRequests.

A parallel story to `@FetchAll(sectionBy:)` for use in
`FetchKeyRequest`s.
@stephencelis
stephencelis requested a review from mbrandonw July 25, 2026 05:46
Comment thread Sources/SQLiteData/Documentation.docc/Articles/Fetching.md Outdated
@stephencelis
stephencelis merged commit fb9a8d5 into section-by-join Jul 27, 2026
5 checks passed
@stephencelis
stephencelis deleted the section-by-key-request branch July 27, 2026 16:39
stephencelis added a commit that referenced this pull request Jul 27, 2026
* Work around Swift parameter pack bug in `@FetchAll(sectionBy:)`

Inline sectioned fetches don't currently work if the query includes a
join due to a parameter pack bug. We can work around it in a way similar
to workarounds present in StructuredQueries: overloads.

- `Joins == ()`
- `Joins: Table`
- `Joins == (repeat each J)`

* Organize

* Clean up overloads

* revert

* Add `Statement.fetchAll(sectionBy:)` (#513)

* Add `Statement.fetchAll(sectionBy:)`

A parallel story to `@FetchAll(sectionBy:)` for use in
`FetchKeyRequest`s.

* wip

* Key path overloads

* Apply suggestion from @mbrandonw

* Nest suites

---------

Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com>
Co-authored-by: Brandon Williams <mbrandonw@hey.com>

---------

Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com>
Co-authored-by: Brandon Williams <mbrandonw@hey.com>
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