[Docs] Flag: Swift SDK rewritten in pure Swift (powersync-swift#130)#419
Closed
mintlify[bot] wants to merge 1 commit intomainfrom
Closed
[Docs] Flag: Swift SDK rewritten in pure Swift (powersync-swift#130)#419mintlify[bot] wants to merge 1 commit intomainfrom
mintlify[bot] wants to merge 1 commit intomainfrom
Conversation
…wift#130) Generated-By: mintlify-agent
Contributor
Author
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What shipped: The PowerSync Swift SDK has been fully rewritten in native Swift, removing its internal dependency on the PowerSync Kotlin SDK and SKIE. The SDK now implements
SqlCursor, the connection pool, sync client, schema serialization, and CRUD transactions directly in Swift usingCSQLite, and loads the core extension via a direct function call instead ofsqlite3_load_extension.Why this needs docs: Major architecture change with user-facing breaking changes (
CrudBatch,CrudEntry, andCrudTransactionare now concrete structs instead of protocols, internalwithSessionAPI removed, new typedopDataTyped/previousValuesTypedAPIs onCrudEntry). It also directly contradicts current docs which describe the Swift SDK as being built on top of the Kotlin SDK via SKIE.Likely affected pages/sections:
client-sdks/reference/swift.mdx— "Kotlin -> Swift SDK" section (lines ~28-30) is now incorrect; remove or rewrite to reflect pure-Swift implementation.client-sdks/reference/swift.mdx— review CRUD samples (CrudBatch/CrudTransaction/CrudEntry) for the protocol-to-struct change; mention new typed accessorsopDataTypedandpreviousValuesTyped.client-sdks/usage-examples.mdx— Swift CRUD upload example (~line 621,getCrudBatch()) should be reviewed.intro/setup-guide.mdx— Swift backend connector example (~line 943,getNextCrudTransaction()) should be reviewed.handling-writes/custom-conflict-resolution.mdx— verify Swift-specificCrudEntrysnippets still apply with typed accessors.Source PR: powersync-ja/powersync-swift#130