{"repo":"mattmassicotte/Empire","free":true,"listed":false,"github":"https://github.com/mattmassicotte/Empire","clone":"git clone https://github.com/mattmassicotte/Empire.git","description":"A local persistence system for Swift","language":"Swift","stars":139,"topics":["ios","lmdb","macos","macros","persistence","storage","swift","database"],"license":"BSD-3-Clause","category":"databases-storage","readme_excerpt":"[![Build Status][build status badge]][build status] [![Platforms][platforms badge]][platforms] [![Documentation][documentation badge]][documentation] [![Matrix][matrix badge]][matrix] Empire It's a record store for Swift. Empire is a minimalistic local persistence system with an emphasis on type safety and low overhead. It is backed by a sorted key-value store that is far simpler than a full SQL database. SQL is very powerful, but for many problem domains you just don't need it. This might be appealing to you if need more than just a flat file, more than UserDefaults , but not an entire relational database. - Schema is defined by your types - Macro-based API that is both typesafe and low-overhead - Built for concurrency and cancellation - Support for CloudKit's CKRecord - Serialization implemented using Span - Backed by a sorted-key index data store ([LMDB][LMDB]) The core LMDB support is also available as a standalone library within the package, just in case that's of interest as well. [!WARNING] This library is still pretty new and doesn't have great deal of real-world testing yet. Integration Concept Empire stores records in a sorted-key index, which resembles an ordered-map data structure. This has profound implications on query capabilities and how data is modeled. Ordered maps offer much less flexibility than the table-based system of an SQL database. Because of this, the queries you need to support can heavily influence how you model your data. Record Structure Concept","default_branch":null,"files":null,"tree":[],"storefront":"/r/mattmassicotte","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mattmassicotte/Empire/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."}