Dianna
5f2185a118
use #if directives to conditionally @preconcurrency import the Dispatch module to enable building the package on linux
2024-09-29 21:44:34 +00:00
Gwendal Roué
8e860e671b
Configuration is Sendable
2024-08-25 15:07:53 +02:00
Gwendal Roué
451a9eb493
[BREAKING] Remove Configuration.defaultTransactionKind
...
GRDB now defaults read-only transactions to DEFERRED, and write transactions to IMMEDIATE. See https://github.com/groue/GRDB.swift/issues/1483 for some context.
2024-08-25 08:22:07 +02:00
Gwendal Roué
9e1ff42249
[BREAKING] Rename CSQLite to GRDBSQLite
...
Fix #1528
2024-08-24 18:15:57 +02:00
Gwendal Roué
9cd1d849cc
[BREAKING] Stop exporting SQLite
2024-08-24 17:25:35 +02:00
Gwendal Roué
43ced9b2f0
Trivial Sendable conformances
...
Either added, either made explicitly unavailable.
2024-03-17 18:25:04 +01:00
Gwendal Roué
45b248b4ed
Configuration.journalMode
2023-08-25 09:10:26 +01:00
Gwendal Roué
f6e695a21d
More explicit any/some
2023-04-08 12:01:59 +02:00
Gwendal Roué
5629cfe6ff
Fix documentation
2023-03-19 13:56:56 +01:00
Gwendal Roué
449c243a36
Rename persistentReaderConnections to dbConfiguration.persistentReadOnlyConnections
2023-03-18 11:08:56 +01:00
Gwendal Roué
063877d49c
Configuration.persistentReaderConnections
2023-03-17 13:52:29 +01:00
Gwendal Roué
43ff278748
Improve transactionDate and transactionClock documentation
2023-02-23 08:34:09 +01:00
Gwendal Roué
efa8f0e69d
Configuration.transactionClock is experimental as well
2023-02-18 08:31:05 +01:00
Gwendal Roué
f649d9e19e
Transaction Date
2023-02-18 08:31:05 +01:00
Gwendal Roué
ac214e6760
SE-0345: if let shorthand for shadowing an existing optional variable
2023-01-30 08:00:47 +01:00
Gwendal Roué
3d7170f1bc
DocC: Configuration
2022-12-17 10:11:36 +01:00
Gwendal Roué
2c5a86479a
DocC: Transactions and Savepoints
2022-12-17 10:11:36 +01:00
Gwendal Roué
cbac0e7286
Enhance Configuration.threadingMode documentation
2022-11-13 10:54:40 +01:00
Gwendal Roué
51230834c8
Configuration.maximumReaderCount can be queried
...
This is useful for tools that adapt their own inner scheduling to the actual capacity for concurrent reads.
2022-11-13 10:54:40 +01:00
Gwendal Roué
6dc4d50e00
Expose Configuration.readQoS and writeQoS
...
This helps tools that perform their own asynchronous jobs that depend on database scheduling. By using the same QoS as the database, they won't create priority inversion or similar scheduling misuses.
2022-11-12 11:55:37 +01:00
Gwendal Roué
5d50e396c1
Enhance Configuration documentation
2022-11-12 11:55:37 +01:00
Gwendal Roué
71880a9b8e
Enhance Documentation
2022-11-09 13:20:08 +01:00
Gwendal Roué
1818534513
DocC
2022-11-06 16:02:36 +01:00
Gwendal Roué
f2859ff8bf
Use SQLITE_OPEN_EXRESCODE when available
2022-08-28 12:50:47 +02:00
Gwendal Roué
e0786537db
BREAKING: replace Int32 with CInt everywhere it is possible
2022-08-21 21:22:34 +02:00
Gwendal Roué
458e1e2675
BREAKING: throwing DatabaseQueue() initializer
...
As a consequence, FTS3.tokenize(_:) is a throwing method as well.
2022-08-21 21:22:33 +02:00
Gwendal Roué
d72b7109ad
DatabasePool automatic memory management no longer uses any reader barrier
...
This fixes the failing `testDatabasePoolDoesNotPreventConcurrentReadsOnPressureEvent` test
2022-07-09 13:39:11 +02:00
George Nachman
bbe94a9607
Make memory management optional.
...
Memory management may not be desirable for all
users of GRDB. `DatabasePool.releaseMemory`
creates a barrier which may cause normally fast
readers to block for a long time. If this is not a
desirable tradeoff, the new
`automaticMemoryManagement` flag in
`Configuration` allows you to disable this feature
of GRDB.
2022-07-05 15:27:55 -07:00
Gwendal Roué
3f7adec072
Default qos is .userInitiated
...
Addresses #1234
2022-06-08 08:12:47 +02:00
Gwendal Roué
de4266499c
Configuration.readQoS
2022-05-25 17:19:41 +02:00
Gwendal Roué
a3a26bf88f
Fix #1194
2022-03-26 11:43:44 +01:00
Gwendal Roué
287ceb8b07
Documentation & cleanup
2022-03-17 18:44:30 +01:00
Gwendal Roué
ed4471c5b9
Configuration.writeTargetQueue
2022-01-29 17:45:21 +01:00
Gwendal Roué
fd22fac5c0
Don't shed too much light on expandedSQL & expandedDescription properties
2022-01-29 15:12:41 +01:00
Gwendal Roué
fc5138ae91
Configuration.publicStatementArguments
...
This flags allows database errors and trace events to hide or show statement arguments by default.
2022-01-28 13:57:12 +01:00
Gwendal Roué
09922c34ff
Code formatting
2022-01-23 12:24:34 +01:00
Shai Mishali and Gwendal Roué
fa896eee23
Update GRDB/Core/Configuration.swift
...
Co-authored-by: Gwendal Roué <gr@pierlis.com >
2022-01-19 16:46:55 +02:00
Shai Mishali
c4023ccf0a
Fix documentation for foreignKeysEnabled
2022-01-19 15:48:11 +02:00
Gwendal Roué
eb6895207e
Remove Swiftlint warnings
2021-07-30 16:14:03 +02:00
Zev Eisenberg
8b060e6b09
Add angle brackets to URLs to make them clickable in Xcode's rendered documentation.
2021-07-20 20:53:58 -04:00
Gwendal Roué
b5de7a907a
Update link to 0xdead10cc documentation
2021-06-27 15:43:32 +02:00
Gwendal Roué
48b6faa45e
Improve documentation of Configuration.prepareDatabase
2021-03-06 13:25:52 +01:00
Gwendal Roué
886f75bbea
Configuration.prepareDatabase in now a method
2020-09-06 13:15:51 +02:00
Gwendal Roué
04df4ba157
Documentation
2020-06-03 19:57:43 +02:00
Gwendal Roué
780ba744f1
Database.description
2020-06-03 19:37:24 +02:00
Gwendal Roué
30f619ca2c
Refactor database tracing
...
- Make it possible to log the database label along with the executed SQL
- Make it possible to avoid arguments expansion
- Make it possible to profile statements
2020-05-31 19:08:08 +02:00
Gwendal Roué
6a98a46c85
Speed up slow tests
2020-05-01 20:11:02 +02:00
Gwendal Roué
0372c1dd63
Complete #747 : export the underlying SQLite library
2020-04-12 07:27:50 +02:00
Gwendal Roué
00b0dc2a04
Remove availability checks for macOS 10.10 (forgotten in #719 )
2020-03-08 19:08:15 +01:00
Gwendal Roué
130e510f8c
Remove deprecated passphrase methods
2020-03-08 16:00:19 +01:00