6. SQLite
- SQLite
Library (Recommended): A Swift wrapper around the SQLite C API. Use
CocoaPods or Swift Package Manager to install it. This library simplifies
database interactions significantly.
- Database
Connection: Open a connection to the SQLite database file.
- SQL
Queries: Execute SQL queries using the library's methods.
- Data
Retrieval: Retrieve data from the results of your queries.
Core Data (Alternative): A framework provided by Apple
for managing persistent data. It can use SQLite as its underlying storage mechanism,
but it provides a higher-level object-oriented interface.