swiftlyfalling
30bc7e4f6c
Replace most uses of #if SQLITE_HAS_CODEC with the appropriate USING_BUILTIN_SQLITE or USING_SQLCIPHER defines.
...
This enables easier compilation of a custom version of SQLite that
itself uses the SQLITE_HAS_CODEC define. (ex. If building SQLite with
the SQLite Encryption Extension.)
The SQLITE_HAS_CODEC define is now only used to guard use of the SQLite
encryption APIs.
GRDBCipher builds define USING_BUILTIN_SQLITE and USING_SQLCIPHER.
2016-05-30 18:19:45 -04:00
Gwendal Roué
9dbf992c40
Configuration.maximumReaderCount replaces DatabasePool initializer option
2016-05-19 18:10:36 +02:00
Gwendal Roué
992c63480d
DatabasePool uses PRAGMA synchronous = NORMAL
...
As advised by https://www.sqlite.org/pragma.html#pragma_synchronous
2016-04-15 06:24:18 +02:00
Gwendal Roué
4bcff181c7
Back to block-based database accesses.
...
Rationale: https://medium.com/@gwendal.roue/four-different-ways-to-handle-sqlite-concurrency-db3bcc74d00e
2016-04-08 08:29:58 +02:00
Gwendal Roué
023d757964
Attempt to fix CocoaPods
2016-04-05 08:53:02 +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é
3e0fcc4b87
New GRDBCipherOSX target + tests
2016-04-03 11:40:34 +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é
06095ec343
Fix #37
2016-03-31 10:27:12 +02:00
Gwendal Roué
efdc6053ff
FetchedRecordsController: fix concurrency bug
2016-03-29 08:53:55 +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é
c6f96906ca
Avoid build errors by using ad-hoc Swift modules that import the right sqlite3 header depending on the platform (MacOSX, iPhoneOS, iPhoneSimulator).
2016-03-17 08:54:09 +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é
1f1ac06c91
Documentation
2016-03-12 19:22:26 +01:00
Gwendal Roué
d2f3f9d1b5
Documentation
2016-03-12 18:57:22 +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é
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é
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é
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é
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