GRDB.swift
A toolkit for SQLite databases, with a focus on application development (by groue)
SQLite.swift
A type-safe, Swift-language layer over SQLite3. (by stephencelis)
Our great sponsors
GRDB.swift | SQLite.swift | |
---|---|---|
37 | 16 | |
6,435 | 9,424 | |
- | - | |
9.3 | 6.7 | |
1 day ago | 6 days ago | |
Swift | Swift | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
GRDB.swift
Posts with mentions or reviews of GRDB.swift.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-19.
-
How can I quickly parse a huge 45MB JSON file using JsonDecoder
Not quite exactly sure what you mean but if its a .sqlite3 file then you can use it with this easy to use library https://github.com/groue/GRDB.swift
-
Question about Apple's review
The 3rd party library I use GRDB SwiftyUserDefaults Kingfisher SwiftDate Popovers
-
The most amazing project documentation you saw
https://github.com/groue/GRDB.swift#readme https://github.com/groue/GRDB.swift/tree/master/Documentation https://swiftpackageindex.com/groue/grdb.swift/documentation/grdb/
- GRDB-ORM, an ORM for GRDB - Swift SQLite
-
How to decide between JSON and CoreData?
Check the performance comparison page. GRDB comes with a convenient and ready-made support for Swift Codable that performs quite well. When needed, it is possible to write less convenient but optimized record types that add very little overhead to SQLite, and perform really well.
Multi-threading is precisely described in the GRDB Concurrency Guide.
Real + coredata both uses classes (and Realm even with some weird dynamic annotation before each property afaik). This means allocations and slowiness. GRDB performs pretty well: https://github.com/groue/GRDB.swift/wiki/Performance.
-
SwiftUI friendly, low impact alternative to CoreData?
I really like GRDB: https://github.com/groue/GRDB.swift It's incredibly well built, uses all the new and shiny Swift features and has all the things you described.
- SQLite for swift?
-
Core Data vs Realm performance analysis
Instead of either of these options, I would highly recommend checking out GRDB instead. It's a very nice SQLite wrapper that helps you avoid many of the concurrency issues affecting both Core Data and Realm: https://github.com/groue/GRDB.swift
SQLite.swift
Posts with mentions or reviews of SQLite.swift.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-04.
-
Quick Questions
I’ve used this library to talk to SQLite before. See notes here on why you can’t just drop a file into the app bundle
-
A new database system for Swift
It relies on https://github.com/stephencelis/SQLite.swift and looks like it would suffer from the same issue https://github.com/stephencelis/SQLite.swift/issues/1104
-
Is there a sqlite connection?
You can do that if you want, e.g https://github.com/stephencelis/SQLite.swift
-
SQLite for swift?
Does anyone know of a swift package for SQLite that is exclusive for swift? I was trying to use this package https://github.com/stephencelis/SQLite.swift in swift playgrounds on iPad and it says clang isn’t supported when I removed the package dependency I don’t get that error but then the app I’m trying to clone doesn’t work. I’m trying to clone this app https://github.com/rafaelclaycon/PodcastApp if anyone has any suggestions I’d appreciate it
SQLite.swift + SQLiteMigrationManager.swift
-
Finally acquainting myself with CoreData after 10 years of mostly avoiding it. Very heavy obj-c baggage. Anyone recommend a wrapper?
Sqlite.swift
-
Awesome macOS Libraries List
SQLite.swift - A type-safe, Swift-language layer over SQLite3. Language: Swift.
-
SQLite server in SwiftUI
Instead I would read the database with a 3rd party library like SQLite Swift or GRDB.
-
Getting Started using SQLite for IOS app
We are using this for a very complicated project at the moment and it works also very well. The documentation is fantastic and there are even some questions answered on stackoverflow https://github.com/stephencelis/SQLite.swift
What are some alternatives?
When comparing GRDB.swift and SQLite.swift you can also consider the following projects:
Realm - Realm is a mobile database: a replacement for Core Data & SQLite
FMDB - A Cocoa / Objective-C wrapper around SQLite
SwiftData
MMKV - An efficient, small mobile key-value storage framework developed by WeChat. Works on Android, iOS, macOS, Windows, and POSIX.
swift-composable-architecture - A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.
IceCream - Sync Realm Database with CloudKit
WCDB - WCDB is a cross-platform database framework developed by WeChat.
SQLite - A stand-alone Swift wrapper around the SQLite 3 client library.
UserDefaults - Simple, Strongly Typed UserDefaults for iOS, macOS and tvOS