Micah Moore
c24bf5d118
SQLCipher adjustments to support forks which want to enable SQLCipher using traits/swiftSettings
...
- Adds Database+SQLCipher extension with SQLCipher operations, enabled by #if SQLITE_HAS_CODEC
- Adjusts Import Statements to import SQLCipher when SQLCipher trait is enabled (or SQLCipher swiftSetting is set)
2026-01-14 11:32:48 -05:00
Gwendal Roué
8cba324d6e
Refactor the SQLite import
...
We can not use `#if Trait` because Xcode does not enable those compiler flags. Always count on Apple for delivering the best quality software.
So now we import the default SPM SQLite last, after all other cases have been excluded.
The GRDB framework (GRDB.xcodeproj and GRDB via CocoaPods) is distinct from the default SPM trait, so we detect it with GRDBFRAMEWORK.
2025-10-04 17:56:06 +02:00
Gwendal Roué
37dde39557
Public Database.schemaSource and withSchemaSource(_:execute:)
2025-09-23 17:12:27 +02:00
Gwendal Roué
e1abafaae3
Ignore schema source during migrations
2025-09-23 17:12:27 +02:00
Gwendal Roué
d7d61add23
DatabaseSchemaSource customizes the primary key of database views
2025-09-23 17:12:27 +02:00
Gwendal Roué
b4f3a83755
Remove SwiftLint warning
...
If we don't have warnings about explicit nil initialization, then we have a warning about the name of a disabled rule which is now deprecated. In all cases, we have a warning.
So let's just write 2025 Swift, ignore that rule, and call it a day.
2025-09-02 08:07:16 +02:00
Gwendal Roué
430141344d
Update more documentation with the closure syntax
2025-05-10 09:36:14 +02:00
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