Skip to content

Conversation

mbrandonw
Copy link
Member

Database functions cannot currently be used in default main actor isolation mode because main actor things cannot be invoked from a SQL query. So we should just assume that database functions must always be nonisolated.

@mbrandonw mbrandonw requested a review from stephencelis October 8, 2025 19:12
@stephencelis stephencelis merged commit edb84b3 into main Oct 8, 2025
3 checks passed
@stephencelis stephencelis deleted the nonisolated-db-functions branch October 8, 2025 19:42
bok- pushed a commit to bok-/swift-structured-queries-with-traits that referenced this pull request Oct 12, 2025
* Database functions are always non-isolated.

* wip

* wip

* update tests

* clean up

* docs
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