Commit Graph
3061 Commits
Author SHA1 Message Date
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
Gwendal Roué f01cc29c7a Documentation WIP 2015-07-05 13:02:41 +02:00
Gwendal Roué aedc9a5426 Documentation WIP 2015-07-05 12:50:57 +02:00
Gwendal Roué 82d953472e Documentation WIP 2015-07-05 12:31:50 +02:00
Gwendal Roué f4ad456569 Documentation WIP 2015-07-05 12:04:16 +02:00
Gwendal Roué 05c906a551 Documentation WIP 2015-07-05 11:16:00 +02:00
Gwendal Roué 8a9620e0d6 Documentation WIP 2015-07-05 11:13:38 +02:00
Gwendal Roué 4e001c880a Configuration.logSQL is a built-in query tracer, which logs SQL statements and bindings. 2015-07-05 09:31:07 +02:00
Gwendal Roué 33d53e4f97 Documentation WIP 2015-07-05 07:35:50 +02:00
Gwendal Roué 78cef92c07 Documentation WIP 2015-07-05 07:14:13 +02:00
Gwendal Roué 0d9cca5dcd Documentation WIP 2015-07-05 07:04:33 +02:00
Gwendal Roué 84f3066b3b Documentation WIP 2015-07-05 06:29:24 +02:00
Gwendal Roué 187eebd6b2 DatabaseQueue is a final class 2015-07-05 06:12:45 +02:00
Gwendal Roué 2309986fb7 Database is a final class 2015-07-05 06:12:27 +02:00
Gwendal Roué aa026c6dd2 MIT license 2015-07-05 06:06:48 +02:00
Gwendal Roué 5acc09eaa3 Improve RowIndex 2015-07-05 05:57:08 +02:00
Gwendal Roué 052b75872a Inner Documentation 2015-07-05 00:42:34 +02:00
Gwendal Roué cf1de47438 Remove Row.dictionary as there is no known use for it right now 2015-07-04 23:56:38 +02:00
Gwendal Roué c2db2dc8d0 Initializing an In-memory database queues doesn’t throw. 2015-07-04 19:01:14 +02:00
Gwendal Roué c831a0a4b3 Rename DatabaseConfiguration to Configuration, add Configuration.readonly, and replace Configuration.verbose flag with customizable Configuration.trace function. 2015-07-04 18:42:21 +02:00
Gwendal Roué 4e8b69007b SQLiteError adopts CustomStringConvertible 2015-07-04 18:08:47 +02:00
Gwendal Roué adbe09d6d3 In-Memory database 2015-07-04 18:00:08 +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é 3eb6cc205b SelectStatement.fetch…(…, bindings:) & UpdateStatement.execute(bindings:) 2015-07-04 15:56:53 +02:00
Gwendal Roué c936605f21 README.md 2015-07-04 15:07:14 +02:00
Gwendal Roué 7af12a5828 Fix Bool conversions according to https://www.sqlite.org/lang_expr.html#castexpr 2015-07-04 14:54:47 +02:00
Gwendal Roué 188d542906 Tests for all (Swift Type) -> (Sqlite Affinity) -> (Swift Type) paths 2015-07-04 14:08:18 +02:00
Gwendal Roué d2528cc7c9 Support for BLOB columns 2015-07-04 13:54:10 +02:00
Gwendal Roué 1a1263b614 UpdateStatement.execute() calls reset() 2015-07-04 13:52:47 +02:00
Gwendal Roué 3b0ebd64a6 Replace DatabaseValueType.bindInSQLiteStatement(_:atIndex:) with DatabaseValueType.sqliteValue 2015-07-04 07:36:52 +02:00
Gwendal Roué e9bf3c2eac Remove useless support for enums 2015-07-03 21:36:32 +02:00