Gwendal Roué and Rogerio de Paula Assis
600d1b84b6
Update GRDB/Core/SerializedDatabase.swift
...
Co-authored-by: Rogerio de Paula Assis <rog@anz.com >
2023-03-20 07:02:00 +01:00
Gwendal Roué
5629cfe6ff
Fix documentation
2023-03-19 13:56:56 +01:00
Gwendal Roué
5d9b9edfe1
Fix asyncWALSnapshotTransaction usage.
...
We must use its result asynchronously.
2023-03-19 12:39:48 +01:00
Gwendal Roué
0a544dc0d2
Cleanup relationships between SerializedDatabase, WALSnapshotTransaction, and DatabasePool
...
SerializedDatabase hides its allowsUnsafeTransactions property, and makes it thread-safe by protecting it inside its serialized dispatch queue.
WALSnapshotTransaction always notifies when the reader connection is no longer used, and reuses the "isInsideTransaction" wording.
2023-03-17 13:52:29 +01:00
Gwendal Roué
e66dfacab8
WALSnapshotTransaction
2023-03-17 13:52:29 +01:00
Gwendal Roué
0d4c6e592e
SerializedDatabase.allowsUnsafeTransactions
2023-03-17 13:52:29 +01:00
Gwendal Roué
cbac0e7286
Enhance Configuration.threadingMode documentation
2022-11-13 10:54:40 +01:00
Gwendal Roué
6da7d47394
Swift 5.7 required: Remove compiler checks
2022-08-21 19:21:57 +02:00
Gwendal Roué
209192d3a5
Require Swift 5.6 Compiler for Concurrency Support
2022-04-13 23:07:33 +02:00
Gwendal Roué
6ab3fea8fb
Refactor ValueObservation
2022-03-17 18:44:30 +01:00
Gwendal Roué
ed4471c5b9
Configuration.writeTargetQueue
2022-01-29 17:45:21 +01:00
Gwendal Roué
1b62e06c4a
Expose Sendable conformance to Swift 5.5
...
But async apis are still only exposed to Swift 5.5.2.
Sendable conformances are helpful for users of Xcode < 13.2.
2021-12-10 08:08:47 +01:00
Gwendal Roué
01f4c04c4d
DatabaseReader is Sendable
2021-12-08 18:12:28 +01:00
Gwendal Roué
20cb50f52d
Public close() method
2021-10-31 18:12:13 +01:00
Gwendal Roué
b13922b76e
Database schema cache distinguishes the main from the temp schema
...
Addresses https://github.com/groue/GRDB.swift/pull/946#issuecomment-805756799
2021-03-27 14:50:25 +01:00
Gwendal Roué
836efb120f
Xcode 12.3 formatting
2020-12-23 12:13:05 +01:00
Gwendal Roué
2a7f41c494
Database.close() is idempotent
...
This change addresses https://bugs.swift.org/browse/SR-13746
2020-10-25 10:12:42 +01:00
Gwendal Roué
886f75bbea
Configuration.prepareDatabase in now a method
2020-09-06 13:15:51 +02:00
Gwendal Roué
780ba744f1
Database.description
2020-06-03 19:37:24 +02:00
Gwendal Roué
5d196c449d
Value Observation does no longer retain DatabaseWriter
2020-03-28 17:11:57 +01:00
Gwendal Roué
9aa67f9db9
SE-0255: Implicit returns from single-expression functions
2020-03-08 23:12:46 +01:00
Gwendal Roué
4bf5724543
Can't issue ROLLBACK on suspension
...
This is because this would allow a database modification to run in an aborted transaction
2019-12-13 08:14:49 +01:00
Gwendal Roué
6656f72782
Rename "lock prevention" to "suspension"
2019-12-12 08:47:49 +01:00
Gwendal Roué
16025356bf
Adapt lock prevention to the journal mode
2019-12-02 20:27:39 +01:00
Gwendal Roué
b54a8f7fe8
DatabaseWriter.startPreventingExclusiveLock()
2019-12-01 17:59:49 +01:00
Gwendal Roué
0a83848cfc
DatabaseReader.interrupt()
2019-11-30 15:35:11 +01:00
Gwendal Roué
df6bb8761c
Swiftlint + whitespace
2019-07-01 08:57:53 +02:00
Michael Kirk
99065a4faf
prepareDB block
2019-04-02 10:47:31 -06:00
Gwendal Roué
3029949731
Add () to forward @autoclosure parameters
2019-02-08 05:30:57 +01:00
Gwendal Roué
f07eee3ca7
DispatchQueue creation cleanup
2018-12-01 16:22:05 +01:00
Gwendal Roué
736db6a546
Confiiguration.qos and targetQueue
2018-11-24 20:48:17 +01:00
Gwendal Roué
2e80db8aed
Database dispatch queues now have labels
2018-06-14 13:36:42 +02:00
Gwendal Roué
8b44b0af7b
Fix SerializedDatabase.reentrantSync check for unsafe transactions
2018-06-04 11:59:43 +02:00
Gwendal Roué
7dc008db8b
Expose Database.beginTransaction(), commit(), rollback(). New Configuration.allowsUnsafeTransactions flag. New fatal error when a database access block ends with a transaction left opened.
2018-02-23 14:14:05 +01:00
Gwendal Roué
a1e508b1df
TransactionObserver.ignoreDatabaseChangesUntilNextTransaction()
2018-01-14 16:45:36 +01:00
Gwendal Roué
2add1c68ea
Raise a fatal error when DatabasePool is used in a reentrant way
2017-07-12 20:07:05 +02:00
Gwendal Roué
ce4c20b112
Replace DatabaseWriter.availableDatabaseConnection with unsafeReentrantWrite()
2017-05-22 18:10:19 +02:00
Gwendal Roué
17a49b5d8c
New public property: DatabaseWriter.availableDatabaseConnection. This new API opens the door to reentrant uses of the database, a much needed tool for RxGRDB.
2017-04-06 11:02:49 +02:00
Gwendal Roué
519d4470e3
Drop Configuration.fileAttributes
2017-01-20 08:22:46 +01:00
Gwendal Roué
e44bd4684b
Fix SerializedDatabase crash when database is deallocated in its own queue
2016-12-15 03:57:46 +01:00
Gwendal Roué
dda8df678a
Documentation
2016-09-21 09:15:27 +02:00
Gwendal Roué
e06abbc354
Documentation
2016-09-21 09:14:00 +02:00
Gwendal Roué
26938c245b
Documentation
2016-09-21 09:12:51 +02:00
Gwendal Roué
54e9803080
Rename SchedulingWatchdog.makeSerializedQueueAllowing(database:) to SchedulingWatchdog.makeSerializedQueue(allowingDatabase:)
2016-09-21 09:11:23 +02:00
Gwendal Roué
854c070b82
Xcode Version 8.0 beta 6 (8S201h)
2016-08-16 17:47:57 +02:00
Gwendal Roué
e93f13f6b0
Remove dead documentation
2016-07-09 08:57:39 +02:00
Gwendal Roué
02d2b89a4d
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
...
Conflicts:
GRDB.xcodeproj/project.pbxproj
GRDB/Core/Database.swift
GRDB/Core/DatabaseScheduler.swift
GRDB/Core/SerializedDatabase.swift
GRDB/Core/Statement.swift
2016-07-08 18:30:16 +02:00
Gwendal Roué
34ff64b103
Rename DatabaseScheduler to SchedulingWatchdog
2016-07-08 18:22:34 +02:00
Gwendal Roué
827dc3da8b
Cleanup
2016-07-08 18:02:06 +02:00
Gwendal Roué
1cd9c8f817
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
...
Conflicts:
GRDB/Core/DatabaseScheduler.swift
GRDB/Core/SerializedDatabase.swift
2016-07-08 17:52:27 +02:00