Gwendal Roué
|
6ed8d61380
|
RowModel no longer requires subclasses to declare the primary key.
|
2015-09-05 17:30:32 +02:00 |
|
Gwendal Roué
|
e87752d43c
|
Rename RowModel.edited to RowModel.databaseEdited.
|
2015-09-05 12:44:12 +02:00 |
|
Gwendal Roué
|
8fc4927eb7
|
RowModel cleanup
|
2015-09-05 12:36:06 +02:00 |
|
Gwendal Roué
|
a2f7bd67ec
|
RowMode.exists() is now final.
|
2015-09-04 20:31:53 +02:00 |
|
Gwendal Roué
|
b5c834ca61
|
RowModel.reload() is now final. Override didFetch() for custom reloading.
|
2015-09-04 20:31:35 +02:00 |
|
Gwendal Roué
|
cb68bb4b2a
|
Remove license prefix in Swift files
|
2015-09-04 16:35:54 +02:00 |
|
Gwendal Roué
|
d209e4427a
|
Fetching methods are not available on the fetched type themselves:
|
2015-09-04 14:58:43 +02:00 |
|
Gwendal Roué
|
2caf0f65b5
|
Simplify RowModel.updateFromRow()
|
2015-09-04 08:10:59 +02:00 |
|
Gwendal Roué
|
f38052f510
|
RowModel.didFetch() event
|
2015-09-03 18:21:15 +02:00 |
|
Gwendal Roué
|
6ebc2f441a
|
RowModel.insert() updates the ID with updateFromRow().
|
2015-09-03 14:29:12 +02:00 |
|
Gwendal Roué
|
5fd80035e0
|
Test that RowModel.reload() uses updateFromRow()
|
2015-09-03 13:56:41 +02:00 |
|
Gwendal Roué
|
20c72d7ce4
|
Inner documentation
|
2015-09-03 13:20:24 +02:00 |
|
Gwendal Roué
|
3f87a6e409
|
RowModel use case: updating a compound properties such as CLLocationCoordinate2D that does not fit in a single column.
|
2015-09-03 08:58:44 +02:00 |
|
Gwendal Roué
|
bf2c93f9f7
|
Xcode7b6
|
2015-08-25 12:34:01 +02:00 |
|
Gwendal Roué
|
3d4c86d4ee
|
Rename QueryArguments to StatementArguments
|
2015-08-20 08:14:17 +02:00 |
|
Gwendal Roué
|
9d5d1eb9b5
|
RowModel.exists(db) tests
|
2015-08-17 15:07:01 +02:00 |
|
Gwendal Roué
|
0aaeaaab04
|
RowModel clean up
|
2015-08-05 13:57:57 +02:00 |
|
Gwendal Roué
|
d395493e21
|
RowModel simplification
|
2015-08-05 13:25:57 +02:00 |
|
Gwendal Roué
|
25b02b2a54
|
RowModel.delete return whether a row was deleted or not
|
2015-07-30 14:10:40 +02:00 |
|
Gwendal Roué
|
4d2503e8b3
|
Replace RowModelError.InvalidPrimaryKey with a fatal error
|
2015-07-30 13:40:57 +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é
|
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é
|
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é
|
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é
|
231996f6ee
|
Reintegrate DataMapper as a private sub-type of RowModel
|
2015-07-15 13:40:51 +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é
|
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é
|
514ca15c84
|
Typo
|
2015-07-11 12:52:25 +02:00 |
|
Gwendal Roué
|
e3148d1bae
|
Replace RowModelError.UnspecifiedTable and RowModelError.InvalidDatabaseDictionary with fatal errors.
|
2015-07-11 10:20:06 +02:00 |
|
Gwendal Roué
|
9e9eced691
|
Documentation WIP
|
2015-07-11 07:21:33 +02:00 |
|
Gwendal Roué
|
979026616e
|
Documentation WIP
|
2015-07-11 06:51:56 +02:00 |
|
Gwendal Roué
|
3789dbd329
|
Remove support for "INSERT OR REPLACE" et al. until we have a request for it.
|
2015-07-10 17:59:28 +02:00 |
|
Gwendal Roué
|
3079dcd5a6
|
Documentation
|
2015-07-10 14:01:29 +02:00 |
|
Gwendal Roué
|
2155fafd16
|
RowModel fetch methods based on keys accept nil. They return nil in this case.
|
2015-07-10 13:13:48 +02:00 |
|
Gwendal Roué
|
6ec750bf57
|
"isDirty" -> "isEdited"
|
2015-07-10 12:17:48 +02:00 |
|