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é
8e860e671b
Configuration is Sendable
2024-08-25 15:07:53 +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é
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é
ac214e6760
SE-0345: if let shorthand for shadowing an existing optional variable
2023-01-30 08:00:47 +01:00
Gwendal Roué
33a039717c
Refer to UIApplication notifications by their names
...
It looks like FB9801372 was fixed
2022-08-21 21:22:34 +02:00
Gwendal Roué
e0766449f1
Fix compilation error on iOS Xcode 13.3.1.app, macOS 12, Swift 5.6
2022-07-09 16:14:37 +02:00
Gwendal Roué
07eaeee123
automaticMemoryManagement tests check for actual connection closing
2022-07-09 13:39:39 +02:00
Gwendal Roué
caab403282
Failing test for concurrent read on memory warning
2022-07-09 13:31:15 +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é
bf601e6810
Merge SelectStatement and UpdateStatement
...
Addresses #1015
2021-07-29 20:20:15 +02:00
Gwendal Roué
d60fe3c22f
Replace import GRDBCustomSQLite with import GRDB
2020-04-04 16:44:01 +02:00
Gwendal Roué
e62df26a53
Disable flaky testDatabasePoolReleaseMemoryClosesReaderConnections
...
See https://github.com/groue/GRDB.swift/issues/489
2020-02-29 14:45:06 +01:00
Gwendal Roué
1c1ee4e92a
GRDBCipher is no longer. Long live GRDB.swift/SQLCipher.
2019-04-19 13:11:55 +02:00
Gwendal Roué
36ce78bd37
Explicit sql argument label when building prepared statements
2019-02-17 13:28:41 +01:00
Gwendal Roué
db67d3840b
Principle of least astonishment: rrename argument label rawSQL to sql
2019-02-17 13:28:41 +01:00
Gwendal Roué
c546c578ce
fetchCursor/All/One(_:rawSQL:arguments:adapter:)
2019-02-17 13:28:40 +01:00
Gwendal Roué
59162d93de
Rename Database.execute(_:String) to Database.execute(rawSQL:String)
2019-02-17 13:27:54 +01:00
Gwendal Roué
ad61c72988
Remove two invalid tests that use cursor outside of their protected dispatch queue
2018-10-05 08:04:37 +02:00
Gwendal Roué
c9dace3089
Spot a flacky test
2018-09-05 13:04:47 +02:00
Gwendal Roué
ef10e2e8ed
General cleanup:
...
- rename ValueConversionDebuggingInfo to ValueConversionContext
- allow missing value conversion context (when decoding a raw DatabaseValue)
- rename ColumnCursor to FastDatabaseValueCursor
- rename NullableColumnCursor to FastNullableDatabaseValueCursor
2018-08-11 19:45:58 +02:00
Gwendal Roué
8ccc23333d
Replace DatabaseCursor with new concrete cursors RowCursor, StatementColumnCursor, NullableStatementColumnCursor, and StatementCursor.
2017-08-23 08:16:30 +02:00
Gwendal Roué
60a23bb280
More Xcode-9 fixes
2017-06-09 06:44:26 +02:00
Gwendal Roué
9cb8b205c5
Rewrite tests that check that closing a connection does not break unclosed statements (this should fix #216 , for good this time!)
2017-05-25 19:25:47 +02:00
Gwendal Roué
4886f43463
Rewrite tests that check that closing a connection does not break unclosed statements (this should fix #216 )
2017-05-25 18:39:38 +02:00
Gwendal Roué
929c8ac2b5
GRDB has no longer iterators, but cursors
2017-05-25 18:23:14 +02:00
Gwendal Roué
55e4abd534
Rename USING_SQLCIPHER to GRDBCIPHER and USING_CUSTOMSQLITE to GRDBCUSTOMSQLITE
2017-05-22 19:15:10 +02:00
Gwendal Roué
e54cec9123
Move tests to Swift Package Manager test target
2017-04-23 15:47:16 +02:00