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 |
|
Gwendal Roué
|
9c452e4a5c
|
db.fetch(RowModel:primaryKey:) gains support for multiple-columns primary keys
|
2015-07-03 20:41:07 +02:00 |
|
Gwendal Roué
|
35a50d610d
|
Rename DatabaseValue to DatabaseValueType
|
2015-07-03 19:36:22 +02:00 |
|
Gwendal Roué
|
7f47d4cc41
|
Rename Database.fetch(type🔑) -> Database.fetch(type:bindings:)
|
2015-07-03 11:04:57 +02:00 |
|
Gwendal Roué
|
6a678b6752
|
RowModel.delete(db) & Database.fetch(type, key)
|
2015-07-03 10:54:03 +02:00 |
|
Gwendal Roué
|
efbf468b89
|
Clean up fucked up file hierarchy
|
2015-07-03 09:13:37 +02:00 |
|