{"repo":"dariopellegrini/StorageDone-iOS","free":true,"listed":false,"github":"https://github.com/dariopellegrini/StorageDone-iOS","clone":"git clone https://github.com/dariopellegrini/StorageDone-iOS.git","description":"Swift library to make easy using local document-oriented database in iOS apps.","language":"Swift","stars":57,"topics":["ios","swift","database","nosql","couchbase","rxswift"],"license":"MIT","category":"databases-storage","readme_excerpt":"StorageDone-iOS Swift library to make easy use local document-oriented databases in iOS apps. Installation To install StorageDone add this line to your Podfile Usage StorageDone lets you save Codable models in a local database very easily. First create a model Then create a StorageDoneDatabase object and save an instance of a Codable model in it Reading database content will retrieve an array of the decleared model Other methods allow filtering and deletion. Primary key A model can implement PrimaryKey protocol, in order to have an attribute set as database primary key Primary keys come in combination with insert or update methods Model isolation (Xcode 26 / Swift 6.2 and later) Does this apply to you? Only if your project sets SWIFT DEFAULT ACTOR ISOLATION = MainActor , which is the default for projects created from the Xcode 26 template. If it doesn't, declare your models as plain structs and skip this section — nothing changed. Note that this is not a StorageDone rule: in a MainActor isolated target, even JSONDecoder().decode(Teacher.self, from: data) inside a nonisolated function fails to compile for the same reason. Persisted models must have non isolated conformances . Projects created from the Xcode 26 template set which makes every model implicitly @MainActor , and — since SE-0470 — makes its Codable and PrimaryKey conformances isolated too. An isolated conformance cannot be used outside its actor: the runtime cast element as? PrimaryKey returns nil off the main actor","default_branch":null,"files":null,"tree":[],"storefront":"/r/dariopellegrini","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dariopellegrini/StorageDone-iOS/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."}