Commit Graph
142 Commits
Author SHA1 Message Date
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é 25b651cbaa Blob can’t contain zero-length NSData, because SQLite can’t store zero-length blobs. 2015-07-10 08:17:15 +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é 27c54002b6 Make Blob.init?(NSData?) public 2015-07-09 08:58:37 +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é e761956782 Xcode 7.0 beta 3 does not require explicit raw value for String enums. 2015-07-09 08:17:35 +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é 50ce41bc89 v0.1.0 2015-07-09 06:28:11 +02:00
Gwendal Roué ff6e25937e Rename SQLiteXXX types DatabaseXXX 2015-07-08 19:34:17 +02:00
Gwendal Roué b34c4bf833 Two targets, one for OS X, one for iOS. 2015-07-08 13:45:39 +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é 3de4c61978 Row(sqliteDictionary:) is no longer public 2015-07-08 12:07:35 +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é 6330a2caad Comments lie, they always lie. 2015-07-07 09:15:29 +02:00
Gwendal Roué a5aadd16ad Minor 2015-07-07 09:14:27 +02:00
Gwendal Roué 45fe4bc121 Minor 2015-07-07 09:00:43 +02:00
Gwendal Roué a0c31a57a5 README.md 2015-07-07 08:35:19 +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é b39eae5f0b SQLiteError tests 2015-07-06 20:32:20 +02:00
Gwendal Roué f6119e91c2 Database.selectStatement() is no longer a throwing method. 2015-07-06 18:52:28 +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é cf7beefb0a SQlite identifiers are case-insensitive, case-preserving 2015-07-06 17:19:34 +02:00
Gwendal Roué cf660c5fee RowModel.reload() 2015-07-06 13:38:59 +02:00
Gwendal Roué 0fb7fb7d06 Documentation WIP 2015-07-06 12:43:40 +02:00
Gwendal Roué 3587ae435c Hide Database.configuration behind DatabaseQueue.configuration 2015-07-06 12:31:43 +02:00
Gwendal Roué 0450ba0386 Documentation WIP 2015-07-06 08:12:53 +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é 7bf8b05563 Documentation WIP 2015-07-05 19:37:48 +02:00
Gwendal Roué 0a85de066e RowModel adopts CustomStringConvertible 2015-07-05 19:07:14 +02:00
Gwendal Roué f51ad18202 Rethink Bool conversion 2015-07-05 18:33:14 +02:00
Gwendal Roué 7576008c14 Row.sqliteValue(named:) experimentation for better RowModel.updateFromDatabaseRow 2015-07-05 17:19:35 +02:00
Gwendal Roué 73c230098c RowModel.updateFromDatabaseRow DRY experimentation 2015-07-05 16:59:57 +02:00
Gwendal Roué 0fbaf1d78e Rename PrimaryKey.SQLiteRowID to PrimaryKey.RowID 2015-07-05 16:41:18 +02:00
Gwendal Roué 607fdf9327 Documentation WIP 2015-07-05 16:33:01 +02:00
Gwendal Roué 86bc7d47b1 Let row sequences be iterated several times. 2015-07-05 15:56:47 +02:00
Gwendal Roué f8e71f620b Minor tweaks to Bindings 2015-07-05 15:29:07 +02:00
Gwendal Roué 8ad63b4995 RowModel escape table and column identifiers. Expose String.sqliteQuotedIdentifier. 2015-07-05 15:28:50 +02:00
Gwendal Roué faf588c845 Support both Int and String enums 2015-07-05 14:25:28 +02:00