Commit Graph
61 Commits
Author SHA1 Message Date
Gwendal Roué 03debbf434 Documentation 2016-05-05 13:51:27 +02:00
Gwendal Roué bf7fdd68f2 Typo 2016-04-13 09:09:54 +02:00
Gwendal Roué 9ef1c70eb2 Encryption documentation 2016-04-05 06:55:29 +02:00
Gwendal Roué f868d3eead changePassphrase() 2016-04-05 05:51:19 +02:00
Gwendal Roué 2ec2e85679 Passing tests for encrypted databases 2016-04-03 18:42:31 +02:00
Gwendal Roué 20a16de9de DatabaseWriter.setKey() and reKey() 2016-04-03 17:58:03 +02:00
Gwendal Roué e3d8c06ad0 Refactor tests so that DatabasePool can be configured at the target level. We are preparing tests for encrypted databases. 2016-04-03 16:55:04 +02:00
Gwendal Roué 7e3563f64b Refactor tests so that DatabaseQueue can be configured at the target level. We are preparing tests for encrypted databases. 2016-04-03 16:20:45 +02:00
Gwendal Roué 2fb1d6f731 setupMemoryManagement() documentation 2016-03-31 16:37:55 +02:00
Gwendal Roué ef299acbe8 Memory management is not automatic when GRDB is built for iOS, but easier. 2016-03-31 16:26:07 +02:00
Gwendal Roué 005c4ded24 Memory management is automatic when GRDB is built for iOS 2016-03-31 14:26:59 +02:00
Gwendal Roué ab3ec443d2 Simplify SerializedDatabase 2016-03-29 08:26:07 +02:00
Gwendal Roué 3e3ba6e7ed FetchedRecordsController optimization for DatabasePool: release the writer dispatch queue before the end of the fetch 2016-03-27 14:22:32 +02:00
Gwendal Roué 049148305f Simplify throwing initializers since Swift 2.2 allows partial initialization 2016-03-22 08:28:55 +01:00
Gwendal Roué 218d7a7f15 DatabaseStore: fix a race condition that could make us miss file attributes 2016-03-14 09:59:33 +01:00
Gwendal Roué 19da676caf Configuration.fileAttributes: apply file attributes to database files 2016-03-13 14:16:17 +01:00
Gwendal Roué e3ef424a41 DatabaseReader and DatabaseWriter cleanup 2016-03-12 12:00:06 +01:00
Gwendal Roué 9e9fafcc5c Documentation 2016-03-12 08:21:17 +01:00
Gwendal Roué b81f57f1c9 Documentation 2016-03-11 19:35:25 +01:00
Gwendal Roué b68f1e278e DatabasePool and DatabaseQueue adopt DatabaseWriter 2016-03-11 19:14:59 +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é 6f4a29e6f8 DatabaseReader WIP 2016-03-11 07:34:44 +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é 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é 5ac0eda8a6 Share database schema cache between DatabasePool readers and writer 2016-03-09 17:31:24 +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é 3a7adaa247 Declare a constant value with let 2016-02-08 09:00:25 +01:00
Gwendal Roué 070f4276de Typo 2016-02-07 09:29:23 +01:00
Gwendal Roué fe0bd6a0c0 Documentation formatting 2016-01-31 13:28:25 +01:00
Gwendal Roué 2fae115531 Cleanup 2016-01-16 15:13:51 +01:00
Gwendal Roué 5e1d8ee639 Statement.validateArguments() 2016-01-06 08:47:50 +01:00
Gwendal Roué f8ad2f2f6a Use precondition() when validating user input 2015-12-17 10:23:19 +01:00
Gwendal Roué dbaff30da3 Documentation 2015-11-19 08:23:43 +01:00
Gwendal Roué 9086c5b61d Fix documentation typo 2015-11-04 22:32:34 +01:00
Gwendal Roué 034b8b8a7c DatabaseQueue.inQueue is private 2015-11-04 22:13:20 +01:00
Gwendal Roué 18306fcd64 Use /// for documentation comments, since Xcode 7 has weird behavior with /** 2015-10-27 08:30:24 +01:00
Gwendal Roué aab146ad23 Import Foundation when required 2015-10-14 15:49:14 +02:00
Gwendal Roué 6fcc986e1a Refactor DatabaseTransactionDelegate into TransactionObserverType 2015-09-28 08:50:25 +02:00
Gwendal Roué 85a8819d9c Default to IMMEDIATE transactions.
This avoid select statements to crash by default when there is a concurrent write.
2015-09-13 19:34:13 +02:00
Gwendal Roué 15600b7268 Documentation: remove warnings about Database extraction out of DatabaseQueue, since Database will vigorously crash as soon as it is badly used. 2015-09-13 17:37:02 +02:00
Gwendal Roué a6916ade9b Configuration.transactionType 2015-09-12 18:47:04 +02:00
Gwendal Roué 9a2c1c1946 Fix wrong documentation about reentrancy. 2015-09-12 16:04:06 +02:00
Gwendal Roué 75bb735e98 Use fatalError() instead of precondition() so that safety checks survive Release configuration. 2015-09-12 14:36:06 +02:00