Commit Graph
205 Commits
Author SHA1 Message Date
Gwendal Roué 2fe7c1f514 Use flatMap 2015-07-22 21:21:00 +02:00
Gwendal Roué 7a1395f954 v0.5.0 2015-07-22 20:17:45 +02:00
Gwendal Roué 7b762766f9 Documentation WIP 2015-07-22 19:51:37 +02:00
Gwendal Roué 252f89fe22 DatabaseDateComponents WIP 2015-07-22 19:24:21 +02:00
Gwendal Roué 6c4813990d DatabaseDateComponents WIP 2015-07-22 17:57:28 +02:00
Gwendal Roué fa7b3cf7b3 Rename DateTime to DatabaseDate 2015-07-22 17:37:22 +02:00
Gwendal Roué 4a0608c449 DateTime gains support for some date formats supported by SQLite 2015-07-22 14:43:37 +02:00
Gwendal Roué 64a7195bba Break retain cycles introduced by lazy properties 2015-07-22 13:44:01 +02:00
Gwendal Roué d76a79d0d6 Document throwing methods with the new - throws: comment 2015-07-21 23:21:36 +02:00
Gwendal Roué c220b57473 Remove RowModelError.Dummy since rdar://problem/21707972 is fixed by Xcode 7 beta 4. 2015-07-21 22:33:53 +02:00
Gwendal Roué 8deb6ba624 Update RowModel.description to support Xcode 7 beta 4 2015-07-21 22:30:30 +02:00
Gwendal Roué cb02f7bcf1 white space 2015-07-21 21:01:48 +02:00
Gwendal Roué 05c11c6a70 Documentation WIP 2015-07-21 20:45:39 +02:00
Gwendal Roué 41f3753d0b DateTime WIP 2015-07-21 19:57:11 +02:00
Gwendal Roué e073fd3dec Import Foundation where Foundation classes are used 2015-07-21 19:32:16 +02:00
Gwendal Roué 98dc15ff51 Public support for NSDate through DateTime 2015-07-21 15:06:56 +02:00
Gwendal Roué bea95264a8 YAGNI: remove support for unsafe rows. 2015-07-21 13:56:34 +02:00
Gwendal Roué 7ffea8b541 Documentation 2015-07-21 13:33:52 +02:00
Gwendal Roué 41c62835d9 Documentation 2015-07-21 09:15:26 +02:00
Gwendal Roué 7393b8f333 Introduce the RowModel.edited property, and have RowModel.init(row:) return an edited instance, leaving room for user-defined convenience initializers that return edited instances (the safer value of the flag). 2015-07-21 09:06:46 +02:00
Gwendal Roué 59402b0a58 Minor 2015-07-20 20:00:31 +02:00
Gwendal Roué 3175608a50 Error management clean up 2015-07-17 13:12:38 +02:00
Gwendal Roué b60892be3e Renamed "Bindings" to "QueryArguments". 2015-07-17 09:05:18 +02:00
Gwendal Roué 2dec12ed99 Remove Statement.bindings setter and bindings argument in Statement.init(…) from public APIs. 2015-07-17 08:32:26 +02:00
Gwendal Roué e79fcb04ed Use String(reflecting:) when printing Bindings and RowModels 2015-07-17 08:10:16 +02:00
Gwendal Roué 6c2f8cacab Documentation WIP 2015-07-17 07:55:56 +02:00
Gwendal Roué 29ef1b70d5 Remove unused Bindings initializer 2015-07-17 07:53:22 +02:00
Gwendal Roué c8f4cf8a27 RowModel.save() calls RowModel.insert() or RowModel.update() and thus activates eventual overrides of those methods. 2015-07-16 19:40:35 +02:00
Gwendal Roué 1eb5c2c9c1 Test that RowModel.isEdited is false after a RowModel has been initialized with a row that is wider than its storedDatabaseDictionary. 2015-07-16 09:54:17 +02:00
Gwendal Roué 58954e6ec7 Minor 2015-07-16 09:04:19 +02:00
Gwendal Roué 9c9f715c61 Remove unused Row initializer 2015-07-16 08:56:28 +02:00
Gwendal Roué a61503ce17 Bindings(NSArray) & Bindings(NSDictionary) accepts NSData elements 2015-07-16 08:48:48 +02:00
Gwendal Roué 231996f6ee Reintegrate DataMapper as a private sub-type of RowModel 2015-07-15 13:40:51 +02:00
Gwendal Roué 0430df07e4 DataMapper clean up 2015-07-13 18:54:49 +02:00
Gwendal Roué f4c4d97048 RowModel is no longer edited after a successful save(). 2015-07-13 12:09:48 +02:00
Gwendal Roué 2e17c812b3 Extract DataMapper from RowModel. Make sure DataMapper has read-only access to RowModel. 2015-07-13 12:07:44 +02:00
Gwendal Roué dc8ce79aae Documentation WIP 2015-07-13 08:09:02 +02:00
Gwendal Roué 3dd08dd803 Declare DatabaseQueue.inDatabase() as rethrows. 2015-07-12 16:23:42 +02:00
Gwendal Roué ce272d7d81 v0.4.0 2015-07-12 15:09:53 +02:00
Gwendal Roué c7d8d1fabb Documentation WIP 2015-07-12 13:25:33 +02:00
Gwendal Roué 554ed9fcd5 Change RowModel.save(db) so that it inserts when no database row could be updated. 2015-07-12 13:20:58 +02:00
Gwendal Roué d685954951 Improve error messages for misconfigured RowModel 2015-07-12 09:01:22 +02:00
Gwendal Roué 9f33822732 Row.value(atIndex:) and Row.value(named:) crash when asked for out of bound index or unknown column name. 2015-07-12 08:52:29 +02:00
Gwendal Roué 4003c9c2d7 Row.value(atIndex:) and Row.value(named:) crash when asked for out of bound index or unknown column name. 2015-07-12 08:48:13 +02:00
Gwendal Roué a9ea939968 Remove some obsolete & unused code 2015-07-12 08:09:07 +02:00
Gwendal Roué 6b7b30b2ec Test struct DBDate stores dates as ISO-8601 strings. 2015-07-11 16:51:01 +02:00
Gwendal Roué 514ca15c84 Typo 2015-07-11 12:52:25 +02:00
Gwendal Roué 5dd7f6d770 v0.3.0 2015-07-11 12:21:04 +02:00
Gwendal Roué 1a0738d348 Gather Blob together 2015-07-11 12:20:55 +02:00
Gwendal Roué 58d90ea75b Documentation WIP 2015-07-11 11:01:51 +02:00