mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
581 B
581 B
The Design of GRDB.swift
More than caveats or defects, there are a few glitches, or surprises in the GRDB.swift API. We try to explain them here.
- Why can't NSObject adopt DatabaseValueConvertible, so that native NSDate, NSData, UIImage could be used as query arguments, or fetched values?
- Why is RowModel a class, when protocols are all the rage?
- Why are DatabaseQueue.inTransaction() and DatabaseQueue.inDatabase() not reentrant ?
- Why must we provide query arguments in an Array, when Swift provides variadic method parameters?
TO BE CONTINUED