Lighter
Lighter is a set of technologies applying code generation to access
SQLite3 databases from
Swift, e.g. in iOS applications or on the server.
Like SwiftGen but for SQLite3.
Type-safe down to the SQL schema.
State of the art: Developer writes Swift structures that match a SQLite
table.
Enlighter reverses this, the generated Swift code reflects what the SQLite
table is actually defined as. No place for mistakes.
Remove a “somewhere” in the “it’s always any-o-clock somewhere in the stack”.
Very, very, fast.
Lighter builds upon the database schema and hence directly knows what
it looks like at compile time. For common operations no mapping is
necessary at all, the generated code runs as fast (usually faster) than
hand written code. It directly binds Swift structures to the SQLite API.
Dependency free.
Lighter itself is a small and convenient API to access SQLite databases.
Enlighter, the code generator, can however produce code that just uses
the SQLite API and doesn’t require any dependencies, i.e. tech debt.
Don’t ship 3rd party libraries, directly generate the necessary code
into your app.