Files
GRDB.swift/DESIGN.md
T
2015-09-05 23:11:35 +02:00

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