Tim De Jong
2ad2d20a89
Fixed the unit tests in DatabasePoolConcurrencyTests.
2025-10-12 18:03:57 +02:00
Gwendal Roué
945f398c92
Fix Sendable warnings in tests
2024-09-08 18:00:37 +02:00
Gwendal Roué
1de32c267b
[BREAKING] Remove DatabaseFuture and concurrentRead
...
That's one less DispatchSemaphore. We don't need this method anymore.
2024-08-25 11:07:05 +02:00
Gwendal Roué
f5ebf0de4d
Use primary key definitions with NOT NULL constraint by default
2022-11-27 12:35:47 +01:00
Gwendal Roué
c5a0598cea
DocC: Concurrency Guides
2022-11-09 13:22:53 +01:00
Gwendal Roué
6f0d45eedb
BREAKING: throwing DatabaseWriter.barrierWriteWithoutTransaction
...
It used to be rethrowing, but it was then unable to deal with closed databases.
The async version is modified accordingly: it accepts a Result<Database, Error>, instead of a raw Database.
DatabaseMigrator.asyncMigrate is impacted as well: it accepts a Result<Database, Error>, instead of a (Database, Error?) tuple.
2022-08-21 19:21:57 +02:00
Gwendal Roué
23cbf13af0
Swift 5.7 required: Availability checks
2022-08-21 19:21:57 +02:00
Gwendal Roué
ed4471c5b9
Configuration.writeTargetQueue
2022-01-29 17:45:21 +01:00
Gwendal Roué
5820b30cc6
DatabaseError.description: output SQLite message before statement #820
2020-08-25 19:48:00 +02:00
Gwendal Roué
86b9616dd7
DatabasePool readers don't invalidate their database schema cache until schema is actually changed.
2020-07-25 18:20:43 +02:00
Gwendal Roué
b02b995b76
Give more time to SQLCipher4 Travis tests
2020-07-13 20:15:27 +02:00
Gwendal Roué
9b24c8213e
Skip unavailable tests
2020-06-25 22:16:51 +02:00
Gwendal Roué
6f3ec89bcd
Update checkpointing tests
2020-06-07 17:07:31 +02:00
Gwendal Roué
d55e16de3c
Database.description tests
2020-06-03 19:37:34 +02:00
Gwendal Roué
9ee3fd38b5
Remove mentions of unsupported iOS versions
2020-05-31 13:54:02 +02:00
Gwendal Roué
6b86e61056
Cool URIs don't change
2020-05-06 18:38:36 +02:00
Gwendal Roué
6a98a46c85
Speed up slow tests
2020-05-01 20:11:02 +02:00
Gwendal Roué
d60fe3c22f
Replace import GRDBCustomSQLite with import GRDB
2020-04-04 16:44:01 +02:00
Gwendal Roué
1c59278115
Prefer dbResult argument name for async read closures
2020-03-21 14:36:48 +01:00
Gwendal Roué
00b0dc2a04
Remove availability checks for macOS 10.10 (forgotten in #719 )
2020-03-08 19:08:15 +01:00
Gwendal Roué
9578f984ec
Remove useless #if compiler/swift checks
2020-03-08 13:42:44 +01:00
Gwendal Roué
6656f72782
Rename "lock prevention" to "suspension"
2019-12-12 08:47:49 +01:00
Gwendal Roué
00e2c2a626
Fix testBarrierIsLockedByOneUnfinishedRead for Swift 4.2
2019-09-02 05:39:38 +02:00
Gwendal Roué
5b4a225dc3
DatabasePool.barrierWriteWithoutTransaction tests
2019-09-01 17:19:12 +02:00
Kevin Wooten
4d3f0bd88b
Add support for tvOS
...
## Xcode Project
- [x] tvOS Target
- [x] tvOS Unit Test Target
- [x] tvOS Scheme
## Makefile
- [x] tvOS Target Min/Max
- [x] tvOS Actions (copies iOS)
## CI
- [x] tvOS Travis stages
## Packaging
- [x] CocoaPods - Podfile Updated
- [x] ~SwiftPM - Not Changes Required~
## Documentation
- [x] Readme Updated
2019-08-22 13:15:31 -07:00
Gwendal Roué
3cea3db2b4
DatabasePool.asyncConcurrentRead
2019-06-17 19:35:11 +02:00
Gwendal Roué
1c1ee4e92a
GRDBCipher is no longer. Long live GRDB.swift/SQLCipher.
2019-04-19 13:11:55 +02:00
Gwendal Roué
94316540de
Remove useless failing tests
...
They were failing because database initialization now uses high level methods which throw detailed errors.
2019-04-09 20:01:22 +02:00
Gwendal Roué
7183457217
Rename Future to DatabaseFuture
2019-03-14 06:43:40 +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é
4489106bd6
Remove deprecated DatabaseWriter.readFromCurrentState
2019-02-08 10:16:17 +01:00
Gwendal Roué
4e1eea5743
Run run qos and targetQueue tests on Xcode 9.3, iOS 9.0
...
We lack dispatchPrecondition(condition:)
2018-11-24 21:46:50 +01:00
Gwendal Roué
9c71061629
Tests for QoS
2018-11-24 21:14:35 +01:00
Gwendal Roué
bf6a101338
dispatchPrecondition(condition:) iOS availability
2018-11-24 20:56:36 +01:00
Gwendal Roué
736db6a546
Confiiguration.qos and targetQueue
2018-11-24 20:48:17 +01:00
Gwendal Roué
3be3a51cdc
Fix a compiler warning
2018-10-08 19:13:12 +02:00
Gwendal Roué
9bfe893908
DatabaseWriter.concurrentRead replaces readFromCurrentState
2018-09-09 13:12:35 +02:00
Gwendal Roué
38b1e41aab
Final tweaks to dispatch queue labels
2018-06-14 21:10:56 +02:00
Gwendal Roué
342dcc5094
Confiiguration.label is used to name dispatch queues
2018-06-14 20:26:34 +02:00
Gwendal Roué
ea3f22c8a4
Fix tests that were failing now that DatabaseQueue.inDatabase runs inside a transaction
2018-04-13 18:07:24 +02:00
Gwendal Roué
267371ba90
Tests that DatabasePool.write opens a transaction
2018-04-13 08:20:17 +02:00
Gwendal Roué
bc244802c0
Update tests for DatabasePool/Writer.writeWithoutTransaction
2018-04-12 07:58:23 +02:00
Gwendal Roué
76561a567f
Introduce DatabaseSnapshot
2018-02-24 07:37:26 +01:00
Gwendal Roué
8288f0c751
Add a real-life test for allowsUnsafeTransactions
2018-02-23 19:11:38 +01: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