feat(examples): update SlackClone to use typed PostgREST API - #1143
feat(examples): update SlackClone to use typed PostgREST API#1143grdsdev wants to merge 2 commits into
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
… PR" This reverts commit 2073201.
|
The following capabilities are marked
These may have been renamed, removed, or never registered. Please update the capability matrix. |
SupabaseSwiftMacros was renamed to PostgrestMacros and the SupabaseClient.from convenience was removed; update imports and call sites (database.from) accordingly.
2499a32 to
79f66c0
Compare
Summary
Stacked on #1036 — adopts the typed PostgREST API (
@Table,@SelectionOf,@Relationship, typed builders) in the SlackClone example.User,Channel,Messagewith@TablemacrosMessageWithDetails@SelectionOffor the join query with@Relationshipfrom(T.self),eq(\.keyPath),order(\.keyPath)AddChannel/NewMessagewith generatedInsertnested typesMessagePayloadin favour ofMessage(the@Tabletype)convertToSnakeCase/convertFromSnakeCaseencoder/decoder strategies (@TableCodingKeyscarry explicit snake_case strings)SupabaseSwiftMacrosinto the SlackClone Xcode target (local package reference + framework link)Depends on #1036 merging first.
Test plan