Skip to content

Commit 00692a2

Browse files
authored
Feat/add support for status endpoint (#10)
* feat(network): add support for new status endpoint * refactor(network): structured JSON responses for sync functions. Example: {"send":{"status":"synced","localVersion":5,"serverVersion":5},"receive":{"rows":3,"tables":["tasks"]}}
1 parent 1a42745 commit 00692a2

File tree

18 files changed

+1394
-172
lines changed

18 files changed

+1394
-172
lines changed

.claude/commands/test-sync-roundtrip.md renamed to .claude/commands/test-sync-roundtrip-postgres-local.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Sync Roundtrip Test
1+
# Sync Roundtrip Test with local Postgres database
22

33
Execute a full roundtrip sync test between a local SQLite database and the local Supabase Docker PostgreSQL instance.
44

@@ -115,7 +115,7 @@ SELECT cloudsync_network_send_changes();
115115

116116
-- Check for changes from server (repeat with 2-3 second delays)
117117
SELECT cloudsync_network_check_changes();
118-
-- Repeat check_changes 3-5 times with delays until it returns > 0 or stabilizes
118+
-- Repeat check_changes 3-5 times with delays until it returns more than 0 received rows or stabilizes
119119

120120
-- Verify final data
121121
SELECT * FROM <table_name>;
File renamed without changes.

0 commit comments

Comments
 (0)