SwiftData
Working with SQLite is a pain in Swift - that's where SwiftData comes in.
SwiftData is a simple and effective wrapper around the SQLite3 C API written completely in Swift.
Features
Execute SQL statements directly
Bind objects conveniently to a string of SQL
Queries return an easy to use array
Support for transactions and savepoints
Inline error handling
Completely thread-safe by default
Convenience functions for common tasks, including table and index creation/deletion/querying
Database connection operations (opening/closing) are automatically handled
Installation
Currently, it's as easy as adding the file 'SwiftData.swift' as a git submodule, and dragging it into your project. Ensure that you've added 'libsqlite3.dylib' as a linked framework and that you've added #import "sqlite3.h" to your Briding-Header.h file.