Commit Graph
17 Commits
Author SHA1 Message Date
Gwendal Roué ff6e25937e Rename SQLiteXXX types DatabaseXXX 2015-07-08 19:34:17 +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é 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é 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é d467f40e86 More RowModel.updateFromDatabaseRow experiments with row[columnName] subscripting 2015-07-05 22:01:13 +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é 7576008c14 Row.sqliteValue(named:) experimentation for better RowModel.updateFromDatabaseRow 2015-07-05 17:19:35 +02:00
Gwendal Roué aa026c6dd2 MIT license 2015-07-05 06:06:48 +02:00
Gwendal Roué c8bad5db25 Rename DatabaseValueType to SQLiteValueConvertible 2015-07-04 16:28:07 +02:00
Gwendal Roué 1c264c690a db.fetch(RowModel:primaryKey:) gains support for multiple-columns primary keys 2015-07-03 20:41:19 +02:00
Gwendal Roué 35a50d610d Rename DatabaseValue to DatabaseValueType 2015-07-03 19:36:22 +02:00
Gwendal Roué 75e77d509a Statement tests 2015-07-03 12:31:00 +02:00