{"repo":"PureSwift/CoreModel","free":true,"listed":false,"github":"https://github.com/PureSwift/CoreModel","clone":"git clone https://github.com/PureSwift/CoreModel.git","description":"Pure Swift ORM (Supports Linux)","language":"Swift","stars":47,"topics":["orm","object-graph","coredata","model","sqlite","swift"],"license":"MIT","category":"databases-storage","readme_excerpt":"CoreModel Swift Object Graph Requirements Swift 6.0 or later, macOS 10.15, iOS 13, tvOS 13, and watchOS 6. InMemoryStorage , InMemoryModelStorage , and InMemoryViewContext are the exception: they serialize access to their shared backing with Synchronization.Mutex , which is not back-deployed, so on Apple platforms they require macOS 15, iOS 18, tvOS 18, watchOS 11, or visionOS 2. Everything else in CoreModel — the schema types, predicates, and the ModelStorage / ViewContext protocols — is available at the package's own deployment targets, as are third-party backends such as SQLite and MongoDB. Linux, Windows, Android, and WebAssembly have no such restriction. Backends - CoreData - SQLite - MongoDB Embedded Swift The CoreModel target compiles under Embedded Swift, starting with WebAssembly ( wasm32-unknown-none-wasm / wasm32-unknown-wasip1 via the embedded Swift SDK). CoreDataModel remains a Foundation/CoreData-only target and is unaffected. Macros must be disabled ( SWIFTPM ENABLE MACROS=0 ) since swift-syntax isn't available under Embedded. This means a few things @Entity normally generates aren't available and must be written by hand: - Entity.entityName , attributes , and relationships have no default implementation — implement them explicitly. - Entity.init(from:) / encode() have no default Codable-derived implementation — implement them using ModelData.decode( :forKey:) / .encode( :forKey:) (see Person in Tests/CoreModelTests/TestModel.swift for the pattern). - enum Codi","default_branch":null,"files":null,"tree":[],"storefront":"/r/PureSwift","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/PureSwift/CoreModel/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}