Skip to content

Implement CRUD transactions in Swift instead of Kotlin#127

Open
simolus3 wants to merge 4 commits intomainfrom
swiftify-crud-transactions
Open

Implement CRUD transactions in Swift instead of Kotlin#127
simolus3 wants to merge 4 commits intomainfrom
swiftify-crud-transactions

Conversation

@simolus3
Copy link
Copy Markdown
Contributor

Methods returning items from ps_crud (getCrudBatch(), getCrudTransactions() and getNextCrudTransaction()) don't do anything special: They read some items from ps_crud via getAll, marking a batch as completed removes the crud items and updates a target write checkpoint in the $local bucket. They don't need any integration with database internals.

So, implementing these methods in Swift is an easy first step towards eventually removing the Kotlin framework. This also allows us to provide typed values for opData and previousValues, previously they both had to be a [String: String?] map due to interop limitations.

@simolus3 simolus3 marked this pull request as ready for review April 15, 2026 08:42
@simolus3 simolus3 mentioned this pull request Apr 16, 2026
8 tasks
@simolus3 simolus3 requested a review from stevensJourney April 20, 2026 12:36
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.

1 participant