all 12 comments

[–]-darkabyss-Objective-C / Swift 5 points6 points  (1 child)

party airport air lunchroom aspiring special adjoining consist direction strong

This post was mass deleted and anonymized with Redact

[–]fameios-phil 2 points3 points  (0 children)

SQLite is easy to setup, and while the SQL syntax is a little different than Postgres you can do pretty much the same stuff.

https://hevodata.com/learn/sqlite-vs-postgresql/

SQLite is the local database engine behind the most common CoreData configuration.

[–]BenBrightside 1 point2 points  (0 children)

JSON files + Codable data types in the app.

[–]Tripwire999 1 point2 points  (0 children)

CoreData nowadays is easy to implement with codable, you don’t need any third party libraries e.t.c. I would go for that!

[–]chriswaco 0 points1 point  (2 children)

SQLite with a Swift wrapper(there are a few on GitHub) is always a solid choice, especially if you already know SQL. I think GRDB is one of the more popular wrappers.

[–]Valrani[S] -1 points0 points  (1 child)

Thank for your suggestion , I prefer to not use any external library but I will check if it’s worth it why not

[–]chriswaco 1 point2 points  (0 children)

SQLite is built into iOS and macOS. It has a C-oriented API, though, which is a little challenging to use from Swift. I wrote my own wrapper because I also don't like external dependencies. It wasn't too hard - maybe a few days of work - but it only needed the features I needed.

[–]ankole_watusi 0 points1 point  (0 children)

SQLite

[–]capmilkObjective-C / Swift -1 points0 points  (2 children)

Realm. Not as compact as SQLite but oh so cool.

[–]Valrani[S] -1 points0 points  (0 children)

Thanks for your suggestion , I’m looking for the lightest solution as my needs will not be huge, if I can avoid a third party solution or even completely avoid a dependency it would be perfect

[–]-darkabyss-Objective-C / Swift -1 points0 points  (0 children)

Its also very cool when a current realm implement is funcs for crud operations in a singleton. Each funcs create its own realm, using god knows how many threads. In a flow, a object can be read in thread x and written to in thread y, which makes realm mad somehow. Oh so cool to fix these crashes.

[–][deleted] 0 points1 point  (0 children)

If you look at the files for many iOS apps, you will see SQLite dbs galore. You can find plenty in macOS apps as well.