# SQLiteData - SwiftData의 빠르고 가벼운 대체제, SQL 기반이며 CloudKit 동기화 지원

> Clean Markdown view of GeekNews topic #23297. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=23297](https://news.hada.io/topic?id=23297)
- GeekNews Markdown: [https://news.hada.io/topic/23297.md](https://news.hada.io/topic/23297.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2025-09-27T09:31:01+09:00
- Updated: 2025-09-27T09:31:01+09:00
- Original source: [github.com/pointfreeco](https://github.com/pointfreeco/sqlite-data)
- Points: 7
- Comments: 0

## Summary

**SQLite**와 **CloudKit 동기화**를 직접 지원하는 경량 데이터 레이어로, **SwiftData**와 유사한 **선언적 데이터 모델링**을 제공하면서도 **SQL 성능**을 극대화하는 Swift 친화적 API를 제공합니다. **GRDB와 StructuredQueries** 기반으로 제작되어, UIKit, SwiftUI, `@Observable` 모델에서 모두 활용 가능하며, **반응형 데이터 연동**과 타입 세이프 쿼리, 안전한 SQL 매크로 등 다양한 기능을 지원합니다. 로컬 데이터베이스를 CloudKit 및 iCloud와 자동 동기화할 수 있고, iCloud 유저 간 **CloudKit Sharing**도 지원해 협업이 필요한 앱 개발에 유용합니다. **MIT 라이센스**로 자유롭게 활용할 수 있습니다.

## Topic Body

- **SwiftData와 유사한 선언적 데이터 모델링**을 제공하면서, **SQLite와 CloudKit 동기화**를 직접 지원하는 경량 데이터 레이어   
- **GRDB와 StructuredQueries**를 기반으로 하여 SQL 성능을 최대한 활용하면서도, Swift 친화적 API를 제공하며, SwiftData보다 강력함  
- UIKit, SwiftUI, `@Observable` 모델 모두에서 활용 가능  
- `@Table`, `@FetchAll`, `@FetchOne` 등을 통해 SwiftData의 `@Model`, `@Query`와 같은 방식으로 **반응형 데이터 연동**을 제공  
- `SyncEngine`을 설정하면 로컬 SQLite 데이터베이스를 **CloudKit 및 iCloud 공유**와 자동으로 동기화할 수 있음  
  - CloudKit Sharing을 통해 다른 iCloud 사용자와 데이터 공유도 가능  
- 쿼리 작성은 **타입 세이프 API** 또는 `#sql` 매크로를 이용한 **안전한 SQL 문자열** 방식 모두 지원  
- MIT 라이센스

## Comments



_No public comments on this page._
