Commit Graph
1613 Commits
Author SHA1 Message Date
Gwendal Roué 47d1202e57 Introduce DatabaseWriter 2016-03-11 18:42:02 +01:00
Gwendal Roué 61f944fdaa Cleanup 2016-03-11 18:12:42 +01:00
Gwendal Roué eb513e87d2 Transaction observers are now added to database queues and pools 2016-03-11 17:08:31 +01:00
Gwendal Roué 3e75af7c14 Make DatabaseReader a class protocol 2016-03-11 14:34:49 +01:00
Gwendal Roué f95b058b99 Read-only DatabasePool 2016-03-11 13:20:18 +01:00
Gwendal Roué 5fd2212278 DatabaseReader WIP 2016-03-11 08:13:10 +01:00
Gwendal Roué 6f4a29e6f8 DatabaseReader WIP 2016-03-11 07:34:44 +01:00
Gwendal Roué 7364d99b6b WIP 2016-03-10 18:51:08 +01:00
Gwendal Roué 1fcc8c764f Custom SQL functions are collations are now added to database queues and pools. 2016-03-10 13:50:47 +01:00
Gwendal Roué 4ff679af11 Memory management documentation 2016-03-10 10:55:23 +01:00
Gwendal Roué 5d229373e6 Memory management: clearMemory() and DatabasePool.closeReaderConnections() 2016-03-10 08:51:31 +01:00
Gwendal Roué bd5be629e8 Typo 2016-03-10 06:44:51 +01:00
Gwendal Roué 06e2f3e5f8 Update GRDBDemoiOS7 demo app 2016-03-10 06:11:20 +01:00
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é 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é 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
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é b60daca055 Fix case-insensitive lookup of the leftmost column in a row 2016-02-07 17:31:15 +01:00