1 个仓库
Defining persistent data entities and their properties directly in source code instead of external schema files.
Distinguishing note: Existing candidates focus on security persistence or game entity properties, not a general code-first schema approach for mobile persistence.
Explore 1 awesome GitHub repository matching mobile development · Code-First Model Definitions. Refine with filters or upvote what's useful.
CoreStore 是一个类型安全的 Swift 接口和持久化包装器,用于使用 Core Data 框架管理本地数据存储和对象图。它作为一个原子持久化管理器,在事务块内执行数据更新,以确保更改要么完全保存,要么回滚以防止状态损坏。 该项目提供了一个专用框架,用于通过定义的版本链执行顺序模式迁移,以及一个类型安全的对象映射系统,用于使用 Swift 协议将外部 JSON 数据导入持久化实体。 它包括一个数据绑定层,用于通过属性包装器和读取器组件将持久化实体与 SwiftUI 视图同步。该系统还支持具有结构化过滤和排序的类型安全数据获取,以及用于监控对象和列表更改的观察工具。
Allows the definition of persistent entities using Swift classes and property wrappers, removing the need for XML model files.