{"id":950,"url":"https://github.com/Alecrim/AlecrimCoreData","last_synced_at":"2025-07-30T19:33:10.215Z","repository":{"id":19343159,"uuid":"22582229","full_name":"Alecrim/AlecrimCoreData","owner":"Alecrim","description":"Core Data made simple.","archived":true,"fork":false,"pushed_at":"2020-02-11T21:49:40.000Z","size":15487,"stargazers_count":779,"open_issues_count":7,"forks_count":100,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-11-30T21:42:27.425Z","etag":null,"topics":["coredata","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alecrim.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-03T19:44:44.000Z","updated_at":"2024-11-17T19:05:31.000Z","dependencies_parsed_at":"2022-07-27T00:30:07.963Z","dependency_job_id":null,"html_url":"https://github.com/Alecrim/AlecrimCoreData","commit_stats":null,"previous_names":[],"tags_count":55,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alecrim%2FAlecrimCoreData","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alecrim%2FAlecrimCoreData/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alecrim%2FAlecrimCoreData/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alecrim%2FAlecrimCoreData/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alecrim","download_url":"https://codeload.github.com/Alecrim/AlecrimCoreData/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228179055,"owners_count":17881131,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coredata","swift"],"created_at":"2024-01-05T20:15:35.344Z","updated_at":"2024-12-04T19:32:29.054Z","avatar_url":"https://github.com/Alecrim.png","language":"Swift","funding_links":[],"categories":["Core Data","Libs","Swift","Extensions","Utilities and Extensions","Data Management [🔝](#readme)"],"sub_categories":["Linter","Data Management","Other free courses"],"readme":"![AlecrimCoreData](https://raw.githubusercontent.com/Alecrim/AlecrimCoreData/master/AlecrimCoreData.png)\n\n[![Version](https://img.shields.io/badge/v7.0%20beta%201-blue.svg?label=version\u0026style=flat)](https://github.com/Alecrim/AlecrimCoreData)\n[![Language: swift](https://img.shields.io/badge/swift-v5.0-blue.svg?style=flat)](https://developer.apple.com/swift/)\n[![Platforms](https://img.shields.io/badge/platforms-macOS%2C%20iOS%2C%20watchOS%2C%20tvOS-blue.svg?style=flat)](http://cocoadocs.org/docsets/AlecrimCoreData)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://raw.githubusercontent.com/Alecrim/AlecrimCoreData/develop/LICENSE)\n[![Author: Vanderlei Martinelli](https://img.shields.io/badge/author-Vanderlei%20Martinelli-blue.svg?style=flat)](https://www.linkedin.com/in/vmartinelli)\n\nA powerful and elegant Core Data framework for Swift.\n\n## Usage\n\n### Beta version. New docs soon...\n\nSimple do that:\n\n```swift\nlet query = persistentContainer.viewContext.people\n    .where { \\.city == \"Piracicaba\" }\n    .orderBy { \\.name }\n\nfor person in query.dropFirst(20).prefix(10) {\n    print(person.name, person.address)\n}\n```\n\nOr that:\n\n```swift\npersistentContainer.performBackgroundTask { context in\n    let query = context.people\n        .filtered(using: \\.country == \"Brazil\" \u0026\u0026 \\.isContributor == true)\n        .sorted(by: .descending(\\.contributionCount))\n        .sorted(by: \\.name)\n\n    if let person = query.first() {\n        print(person.name, person.email)\n    }\n}\n```\n\nAfter that:\n\n```swift\nimport AlecrimCoreData\n\nextension ManagedObjectContext {\n    var people: Query\u003cPerson\u003e { return Query(in: self) }\n}\n\nlet persistentContainer = PersistentContainer()\n\n```\nAnd after your have created your matching managed object model in Xcode, of course. ;-)\n\n\n## Contribute\nIf you have any problems or need more information, please open an issue using the provided GitHub link.\n\nYou can also contribute by fixing errors or creating new features. When doing this, please submit your pull requests to this repository as I do not have much time to \"hunt\" forks for not submitted patches.\n\n- master - The production branch. Clone or fork this repository for the latest copy.\n- develop - The active development branch. [Pull requests](https://help.github.com/articles/creating-a-pull-request) should be directed to this branch.\n\n\n## Contact the author\n- [Vanderlei Martinelli](https://www.linkedin.com/in/vmartinelli)\n\n## License\n**AlecrimCoreData** is released under an MIT license. See LICENSE for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAlecrim%2FAlecrimCoreData","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAlecrim%2FAlecrimCoreData","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAlecrim%2FAlecrimCoreData/lists"}