Commit Graph
3061 Commits
Author SHA1 Message Date
Gwendal Roué 6b344b8566 DatabasePool documentation 2016-03-10 06:06:21 +01:00
Gwendal Roué 953cea1318 DatabasePool documentation 2016-03-10 05:51:45 +01:00
Gwendal Roué 97f3161256 DatabaseMigrator support for DatabasePool 2016-03-09 22:28:47 +01:00
Gwendal Roué 6bd8f79399 DatabasePool read() method opens a DEFERRED transaction so that it won’t let the writer alter the database state between two select statement. 2016-03-09 21:45:20 +01:00
Gwendal Roué 122195156a DatabasePool documentation 2016-03-09 20:50:07 +01:00
Gwendal Roué 15b3809a50 DatabasePool: forbid transactions and savepoints in readers 2016-03-09 20:06:31 +01:00
Gwendal Roué e0031ddc42 DatabasePool concurrency tests 2016-03-09 19:29:45 +01:00
Gwendal Roué 526e065e7d Database schema cache tests for DatabasePool and DatabaseQueue 2016-03-09 18:15:18 +01:00
Gwendal Roué 5ac0eda8a6 Share database schema cache between DatabasePool readers and writer 2016-03-09 17:31:24 +01:00
Gwendal Roué 19336609d3 DatabasePool.checkpoint() 2016-03-09 16:07:36 +01:00
Gwendal Roué 1fee42bee9 Remove useless Statement.readOnly 2016-03-09 15:44:38 +01:00
Gwendal Roué 648dbf7e25 Replace let _ = ... with _ = ... 2016-03-09 15:27:30 +01:00
Gwendal Roué 52897e5888 DatabasePool WIP 2016-03-09 09:01:12 +01:00
Gwendal Roué 07652429a3 DatabasePoolTests WIP 2016-03-09 08:54:44 +01:00
Gwendal Roué fff402f2b1 Introduce DatabasePool which provides several readers and a single writer on a single database in WAL Mode 2016-03-09 08:21:36 +01:00
Gwendal Roué 0091de918b Extract SerializedDatabase from DatabaseQueue 2016-03-09 07:54:06 +01:00
Gwendal Roué d18d2a5921 Statement.readOnly 2016-03-08 20:40:12 +01:00
Gwendal Roué f863a263b7 Cleanup 2016-03-07 18:24:31 +01:00
Gwendal Roué 2cbfa16e53 Base for comparing records according to their primary key, and avoid ad hoc adoption of Equatable 2016-03-06 14:56:02 +01:00
Gwendal Roué ee81249c79 FetchRequest.fetchCount() can count all supported queries 2016-03-05 15:24:13 +01:00
Gwendal Roué b7a7cd953e FetchRequest.fetchCount() traps when the intent of the developer can’t be satisfied (yet), as in Person.select(name).distinct.fetchCount(db). 2016-03-04 09:15:43 +01:00
Gwendal Roué cdc102de70 Remove DatabaseRawRepresentable since DatabaseValueConvertible is enough. 2016-02-28 22:14:49 +01:00
Gwendal Roué fd1067b41f Replace DatabaseIntRepresentable, DatabaseInt32Representable, DatabaseInt64Representable and DatabaseStringRepresentable with DatabaseRawRepresentable. 2016-02-28 20:28:10 +01:00
Gwendal Roué cfb19d4ad7 Fix GRDBDemoiOS7 app 2016-02-11 08:34:34 +01:00
Gwendal Roué 03b89ea78f Typo 2016-02-11 00:10:54 +01:00
Gwendal Roué d74cf435ed Swift2.2 2016-02-10 19:09:28 +01:00
Gwendal Roué 48eff16ac7 Row cleanup 2016-02-10 08:33:54 +01:00
Gwendal Roué bb7fe8cd7d SQL support cleanup 2016-02-10 08:25:15 +01:00
Gwendal Roué 1db2d6f5d0 Database holds weak references to its transaction observers 2016-02-09 21:02:09 +01:00
Gwendal Roué 0ed1bbf53c Only invalidate database schema cache after an invalidating statement has been executed. 2016-02-09 19:47:14 +01:00
Pascal Edmond 0808a10b03 merge 2016-02-09 17:44:33 +01:00
Gwendal Roué 43a33a8303 Fix memory leak 2016-02-09 14:17:45 +01:00
Gwendal Roué 18b01ca0c5 Add a preconditionValidQueue to Database.tableExists() 2016-02-09 08:53:41 +01:00
Gwendal Roué 48ad154079 Documentation 2016-02-09 08:27:03 +01:00
Gwendal Roué 24668267e8 Database automatically clears its schema cache 2016-02-09 08:24:37 +01:00
Gwendal Roué d6cf23ab78 Declare Database.selectStatement and Database.updateStatement as @warn_unused_result 2016-02-09 07:47:42 +01:00
Gwendal Roué e5009af67e Fix SelectStatement.sourceTables for invalid statements 2016-02-09 07:47:00 +01:00
Gwendal Roué 75e2edb471 Typo 2016-02-08 19:42:21 +01:00
Gwendal Roué ff8b580d17 SelectStatement.sourceTables 2016-02-08 19:15:57 +01:00
Gwendal Roué 0c68765e2d Add a FIXME comment 2016-02-08 09:10:51 +01:00
Gwendal Roué 3a7adaa247 Declare a constant value with let 2016-02-08 09:00:25 +01:00
Gwendal Roué 247d8a75f7 Support for EXISTS (subquery) 2016-02-08 08:37:58 +01:00
Gwendal Roué b60daca055 Fix case-insensitive lookup of the leftmost column in a row 2016-02-07 17:31:15 +01:00
Gwendal Roué 4004d53da4 Support for comparing collated expressions with optionals 2016-02-07 16:18:30 +01:00
Gwendal Roué 09c599cc62 !FetchRequest.contains() 2016-02-07 15:20:56 +01:00
Gwendal Roué 17aa9350c5 FetchRequest.contains() 2016-02-07 15:18:18 +01:00
Gwendal Roué adbddf3299 Typo 2016-02-07 12:48:29 +01:00
Gwendal Roué 94e4fa42bf DatabaseValue adopts StatementColumnConvertible. Stronger tests for DatabaseValue adoption of StatementColumnConvertible and DatabaseValueConvertible. 2016-02-07 12:44:09 +01:00
Gwendal Roué 0ae37db4ec Typo 2016-02-07 12:13:33 +01:00
Gwendal Roué 8237ec8a2a Minor 2016-02-07 12:13:02 +01:00