Structure

Structure is a Swift wrapper for SQLite. It is not meant to be a complete wrapper. Rather, it is meant to wrap the parts of SQLite that I needed. The framework covers the following features:

CRUD. The basic operations for managing data are wrapped in to work in a Swift world.

Type Conversion. Besides converting native C types to Swift types, types are also converted using the underlying conversions that SQLite performs. Ints can be read a Strings, Strings can be read as Doubles.

Serial Access. All operations are performed in a serial queue, allowing multiple threads to work with the database without conflicting with each other.

Consistent Access. All parameters are required to be named, and all rows returned access their data by name.


Structure can be found on GitHub. Check out the documentation, sources, and tests to learn more.