{"id":1018,"url":"https://github.com/behrad-kzm/QuickDB","last_synced_at":"2025-07-30T21:31:11.728Z","repository":{"id":44149060,"uuid":"256316266","full_name":"behrad-kzm/QuickDB","owner":"behrad-kzm","description":"A Generic CoreData Manager to accept any type of objects. Fastest way for adding a Database to your project. ","archived":false,"fork":false,"pushed_at":"2023-06-22T12:52:57.000Z","size":59861,"stargazers_count":18,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-22T21:32:13.340Z","etag":null,"topics":["audio","codable","codedata","database","generic","image","storage","swift","video"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","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/behrad-kzm.png","metadata":{"files":{"readme":"README-CH.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-04-16T19:55:55.000Z","updated_at":"2024-04-06T15:04:38.000Z","dependencies_parsed_at":"2024-01-26T21:18:18.849Z","dependency_job_id":null,"html_url":"https://github.com/behrad-kzm/QuickDB","commit_stats":{"total_commits":33,"total_committers":4,"mean_commits":8.25,"dds":0.4242424242424242,"last_synced_commit":"5024f593a601601ca83a41ae60de04093e79c707"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/behrad-kzm/QuickDB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behrad-kzm%2FQuickDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behrad-kzm%2FQuickDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behrad-kzm%2FQuickDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behrad-kzm%2FQuickDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/behrad-kzm","download_url":"https://codeload.github.com/behrad-kzm/QuickDB/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behrad-kzm%2FQuickDB/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267944973,"owners_count":24170214,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["audio","codable","codedata","database","generic","image","storage","swift","video"],"created_at":"2024-01-05T20:15:37.150Z","updated_at":"2025-07-30T21:31:06.709Z","avatar_url":"https://github.com/behrad-kzm.png","language":"Makefile","funding_links":[],"categories":["Database"],"sub_categories":["Getting Started","Linter"],"readme":"# QuickDB\n\n### FileManager + CoreData\n\n❗️仅用一行代码即可保存并检索任何内容❗️\n\n快速使用数据库，避免麻烦的数据库。 只需使用简单的功能保存每个对象。\n\n\u003cimg src=\"https://github.com/behrad-kzm/BEKDesing/blob/master/Images/BEKHeader.png\"\u003e\n\nQuickDB将CoreData与SUPER易于使用的案例结合使用，您可以存储任何可编码的对象并在仅一行代码中对其进行查询。\n强烈建议该组件用于小型应用程序，以使用自定义类类型存储用户数据和设置。\n\n[![CI Status](https://img.shields.io/travis/behrad-kzm/QuickDB.svg?style=flat)](https://travis-ci.org/behrad-kzm/QuickDB)\n[![Version](https://img.shields.io/cocoapods/v/QuickDB.svg?style=flat)](https://cocoapods.org/pods/QuickDB)\n[![License](https://img.shields.io/cocoapods/l/QuickDB.svg?style=flat)](https://cocoapods.org/pods/QuickDB)\n[![Platform](https://img.shields.io/cocoapods/p/QuickDB.svg?style=flat)](https://cocoapods.org/pods/QuickDB)\n\n## 怎么样？\n\n__步骤 1:__\n\n确认您的编码具有协议“ QuickIndexable”的UUID\n\n```swift\nstruct MyModel: QuickIndexable {\n  let uid = UUID()\n  ...\n}\n```\n\n__步骤 2:__\n\n将对象保存到QuickDB\n\n```swift\n  QuickDB.shared.insert(model: myModel)\n```\n\n__步骤 3:__\n\n从QuickDB检索所有对象\n\n```swift\nQuickDB.shared.getAll(LatestObjects: { (items: [MyModel]) in\n      //use your inserted items here\n\tprint(items)\n}) { (error) in\n\tprint(error)\n}\n```\n\nQuickDB使用通用函数查询与您的Model类型匹配的所有记录。\n\n## 注意\n\n💢检查示例，看看如何对模型进行“ bachInsert”，“ delete”，“ update”和“ tag”标记。\n\n💢有些用例已经过优化，可用于存储较大的文件，例如“图片”，“音频”等。\n\n__存储图像：__\n\n```swift\n\tUIImage(imageLiteralResourceName: \"Image\").pngData()?.asQuickFile(fileName: \"MyImage\").store()\n```\n\n###您可以将任何数据模型转换为quickFile并将其存储在FileManager中：\n\n__步骤 1：__\n\n保存您的数据对象：\n\n```swift\n\tData().asQuickFile(fileName: \"MyData\").store()\n```\n\n__步骤 2：__\n\n加载保存的数据：\n\n```swift\nQuickDB.shared.data(fileName: \"MyImage\", fileType: .png) { (items) in\n\t//items is an array of [Data] matches with your file name\n}\n```\n\n💢QuickFM将任何文件保存在设备内的QuickDBStorage文件夹中，您可以在`QuickDB.shared.getAll（LatestObjects：{（items：[QuickDataRecord]）in}`的功能内获取所有保存的文件。\n\n💢QuickFM允许您使用相同的文件名保存数据对象，并在`data（fileName：fileType：completion）`中检索所有这些对象。\n\n## 示例\n\n要运行示例项目，请克隆存储库，然后首先从Example目录运行`pod install`。\n\n## 要求\n\niOS +11.0\nswift 5.0\nxcode +11\n\n## 安装\n\n可通过[CocoaPods]（https://cocoapods.org）获得QuickDB。 安装\n只需将以下行添加到您的Podfile中：\n\n```swift\npod 'QuickDB'\n```\n\n## 作者\n\nbehrad-kzm, behradkzm@gmail.com\n\n## 特别感谢\n\n[Salar Soleimani](https://github.com/Salarsoleimani)\n\n## 执照\n\nQuickDB在MIT许可下可用。 有关更多信息，请参见LICENSE文件。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbehrad-kzm%2FQuickDB","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbehrad-kzm%2FQuickDB","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbehrad-kzm%2FQuickDB/lists"}