Files
RSSuper/tasks/native-business-logic-migration/06-implement-ios-database-layer.md
Michael Freno d346b527e6
Some checks failed
CI - Multi-Platform Native / Build iOS (RSSuper) (push) Has been cancelled
CI - Multi-Platform Native / Build macOS (push) Has been cancelled
CI - Multi-Platform Native / Build Android (push) Has been cancelled
CI - Multi-Platform Native / Build Linux (push) Has been cancelled
CI - Multi-Platform Native / Build Summary (push) Has been cancelled
migration start
2026-03-29 14:12:17 -04:00

1.0 KiB

06. Implement iOS database layer (Core Data/GRDB)

meta: id: native-business-logic-migration-06 feature: native-business-logic-migration priority: P0 depends_on: [native-business-logic-migration-03] tags: [implementation, ios, database]

objective:

  • Implement database layer using Core Data for iOS

deliverables:

  • RSSuper.xcdatamodeld
  • DatabaseManager.swift
  • Subscription+CoreDataClass.swift
  • FeedItem+CoreDataClass.swift
  • SearchHistory+CoreDataClass.swift
  • Database migrations
  • FTS virtual table implementation

tests:

  • Unit: Test CRUD operations
  • Unit: Test relationships
  • Unit: Test FTS queries
  • Integration: Test database migrations

acceptance_criteria:

  • Core Data model created with all entities
  • Relationships properly configured
  • FTS search working
  • Migrations implemented
  • Background context used for writes

validation:

  • Run unit tests
  • Verify with Instruments (Core Data editor)

notes:

  • Use NSPersistentContainer
  • Implement FTS using SQLite directly or GRDB
  • Consider using NSPredicate for queries