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 |
|
Gwendal Roué
|
a3a0fa39f7
|
RowModel.setDirty()
|
2015-07-10 09:09:54 +02:00 |
|
Gwendal Roué
|
82141f7701
|
RowModel.copyDatabaseValuesFrom(_:)
|
2015-07-10 08:48:37 +02:00 |
|
Gwendal Roué
|
1f77e27d8a
|
RowModel.isDirty experimentation, continued
|
2015-07-10 08:04:23 +02:00 |
|
Gwendal Roué
|
4887eaabb8
|
RowModel.isDirty experimentation
|
2015-07-10 07:42:47 +02:00 |
|
Gwendal Roué
|
b93c5a8b84
|
Xcode 7.0 beta 3 allows multiline chained method calls.
|
2015-07-09 08:25:12 +02:00 |
|
Gwendal Roué
|
4d5491e0c7
|
Improve RowModel errors so that they help the developer during the design of his RowModel subclass.
|
2015-07-09 08:14:52 +02:00 |
|
Gwendal Roué
|
ff6e25937e
|
Rename SQLiteXXX types DatabaseXXX
|
2015-07-08 19:34:17 +02:00 |
|
Gwendal Roué
|
f4ad61528f
|
Replace RowModel.PrimaryKey.None with nil
|
2015-07-08 12:19:14 +02:00 |
|
Gwendal Roué
|
566b02f791
|
RowModelError.UnspecifiedTable & Database.fetchOne(type🔑)
|
2015-07-08 12:09:42 +02:00 |
|
Gwendal Roué
|
39bb46aa65
|
Refactor the RowModel.databaseTableName and RowModel.databasePrimaryKey methods in a single RowModel.databaseTable method. Rename RowModel.databaseDictionary into RowModel.storedDatabaseDictionary.
|
2015-07-08 08:52:49 +02:00 |
|
Gwendal Roué
|
761d35610b
|
Rename RowModel.updateFromDatabaseRow(_:) to RowModel.updateWithRow(_:) and make it final. Introduce RowModel.setSQLiteValue(_:forColumn:) as the override point.
|
2015-07-08 08:08:32 +02:00 |
|
Gwendal Roué
|
a69c385f55
|
Remove context RowModel from RowModelError because it fucks up error catching (rdar://problem/21707972)
|
2015-07-07 20:35:16 +02:00 |
|
Gwendal Roué
|
8d90d2c21f
|
Remove db.fetch(RowModel, primaryKey: [String:Value])
|
2015-07-07 18:17:36 +02:00 |
|
Gwendal Roué
|
5778e15741
|
RowModelError WIP
|
2015-07-07 14:38:15 +02:00 |
|
Gwendal Roué
|
af44eb47a3
|
Give RowModel.Version more responsabilities
|
2015-07-07 13:26:27 +02:00 |
|
Gwendal Roué
|
24f418c234
|
Clean up RowModel with RowModel.Version
|
2015-07-07 13:18:44 +02:00 |
|
Gwendal Roué
|
ebf39fdd70
|
UpdateStatement.Changes store the changes performed by an update statement.
|
2015-07-07 08:33:46 +02:00 |
|
Gwendal Roué
|
86ceb1bdef
|
Documentation WIP
|
2015-07-07 08:14:19 +02:00 |
|
Gwendal Roué
|
e13892d703
|
RowModel supports conflict resolutions: INSERT OR REPLACE, etc.
|
2015-07-07 07:51:46 +02:00 |
|
Gwendal Roué
|
f58454c868
|
RowModel.update() and RowModel.save() return false if and only if the model has a non null primary key which does not exist in the database. RowModel.save() calls update() if the model has a non null primary key, and insert() otherwise.
|
2015-07-06 18:22:52 +02:00 |
|
Gwendal Roué
|
cf660c5fee
|
RowModel.reload()
|
2015-07-06 13:38:59 +02:00 |
|
Gwendal Roué
|
ffde18dbfc
|
PrimaryKey cases renaming
|
2015-07-05 20:00:33 +02:00 |
|
Gwendal Roué
|
0a85de066e
|
RowModel adopts CustomStringConvertible
|
2015-07-05 19:07:14 +02:00 |
|
Gwendal Roué
|
0fbaf1d78e
|
Rename PrimaryKey.SQLiteRowID to PrimaryKey.RowID
|
2015-07-05 16:41:18 +02:00 |
|
Gwendal Roué
|
8ad63b4995
|
RowModel escape table and column identifiers. Expose String.sqliteQuotedIdentifier.
|
2015-07-05 15:28:50 +02:00 |
|
Gwendal Roué
|
aa026c6dd2
|
MIT license
|
2015-07-05 06:06:48 +02:00 |
|
Gwendal Roué
|
933a472da7
|
SelectStatement.fetch(RowModel, bindings:)
|
2015-07-04 16:57:01 +02:00 |
|
Gwendal Roué
|
c8bad5db25
|
Rename DatabaseValueType to SQLiteValueConvertible
|
2015-07-04 16:28:07 +02:00 |
|