Restructure is a rewrite of my previous SQLite Swift library, Structure. The framework works on Swift 5 for iOS, macOS, and tvOS. It’s highly opinionated, because it does exactly what I wanted it to do, while also staying true to how SQLite behaves.

Restructure has the following features:

  • Easy type conversion for common Swift data types.
  • Simple handling of more complex data types, like arrays and dates.
  • Statements are Sequences, making data iteration a part of the language.
  • Statements are Encodable, making data structure transformation to SQLite statement simple.
  • Rows are Decodable, making SQLite results easily transformable to data structures.

Check out the code on GitHub. There you will find examples, tests, and installation instructions.

Version History

1.0.0 – 2019-06-20


  • Created the primary Restructure object for maintaining SQLite databases.
  • Created the Statement object for working with prepared SQLite statements.
  • Created the Row object for working with resultant rows from a Statement.
  • Created the RowDecoder and StatementEncoder for using Swift’s Decodable protocols.