Compare commits

...
Author SHA1 Message Date
Gwendal Roué 92a554cd0d Merge branch 'development' 2026-11-01 18:24:21 +01:00
Gwendal Roué 47c8497269 v7.12.0 2026-11-01 17:03:56 +01:00
Gwendal Roué d99e639c11 Merge pull request #1894 from groue/dev/issue-1888
Fix SharedValueObservation deadlock, ordering, and cancellation
2026-11-01 16:51:47 +01:00
Gwendal Roué 1d59d1656b Fix SharedValueObservation 2026-11-01 16:23:38 +01:00
Gwendal Roué 5fe300b733 More failing SharedValueObservation tests 2026-11-01 16:00:41 +01:00
Dylan Mace a8a5b431be Failing tests: SharedValueObservation deadlocks when a client is cancelled during a notification 2026-11-01 15:02:39 +01:00
Gwendal Roué b7b747c5bb Merge pull request #1889 from builtbysharath/open-error-message
Keep SQLite's error message when a database fails to open
2026-11-01 14:55:17 +01:00
Gwendal Roué 62f4bfe5f3 Merge pull request #1893 from groue/dev/support-statement-recompilation
Dev/support statement recompilation
2026-11-01 14:54:23 +01:00
Gwendal Roué 9601d6ac9b Row fetched from a statement do not cache statement column in order to support statement recompilation 2026-11-01 14:22:32 +01:00
Gwendal Roué dc101b2847 Failing test for the Row column cache of a recompiled statement 2026-11-01 14:21:42 +01:00
Gwendal Roué a0f184ec26 Invalidate Statement column cache after recompilation 2026-11-01 14:21:42 +01:00
Gwendal Roué b983df96e2 Failing test for SQLRequest on a recompiled statement 2026-11-01 14:21:42 +01:00
Gwendal Roué 94fa864eb7 Failing test for the column cache of a recompiled statement 2026-11-01 13:57:06 +01:00
Sharath Kumar e1a0c1afbe Skip the open error message test when URI filenames are off
sqlite_compileoption_used('USE_URI') reports whether the option is
defined, not its value, and is missing when compile-option diagnostics
are omitted. Check the error from the open instead: without URI
filenames, the path is in a missing "file:" directory and fails with
SQLITE_CANTOPEN.
2026-10-13 15:35:38 +05:30
Sharath Kumar 3f80cfccf4 Keep SQLite's error message when a database fails to open 2026-10-11 22:33:07 +05:30
Gwendal Roué 6f64c72209 Merge pull request #1879 from nesevis/fix/rowid-and-single-integer-primary-key
Fix upsert for WITHOUT ROWID tables with an INTEGER primary key
2026-09-27 09:12:49 +02:00
Gwendal Roué 8e24aec8f2 Merge pull request #1885 from groue/dev/string-with-nul-character
Add support for Strings that contain the NUL character
2026-09-26 22:22:30 +02:00
Gwendal Roué de0ce29d73 Encode strings with a NUL character
Inspired from #1880 by @nesevis
2026-09-26 16:34:14 +02:00
Gwendal Roué 9858de3249 Decode strings with a NUL character
Inspired from #1880 by @nesevis
2026-09-26 16:34:14 +02:00
Gwendal Roué fe774b3537 Performance tests for String as a statement argument 2026-09-26 13:03:16 +02:00
Gwendal Roué 550ef55c90 Fast path for String performance decoding test 2026-09-26 12:43:38 +02:00
Gwendal Roué e37c7cf306 Do not measure database access acquisition and Array building 2026-09-26 12:37:11 +02:00
Gwendal Roué 1ff66c8382 Test independance 2026-09-26 12:36:33 +02:00
Chris Kolbu 8957148d4d Performance tests for string fetching and function results 2026-09-26 12:34:37 +02:00
Gwendal Roué 23083c4668 Failing tests for strings with a NUL character used as statement argument
Inspired from #1880 by @nesevis
2026-09-26 12:06:49 +02:00
Gwendal Roué dfa942e9c0 Failing tests for decoding and encoding strings with a NUL character
Inspired from #1880 by @nesevis
2026-09-26 12:06:43 +02:00
Gwendal Roué 5d31cba4a0 Failing tests for database functions returning or accepting strings with a NUL character
Inspired from #1880 by @nesevis
2026-09-26 12:06:36 +02:00
Gwendal Roué 533286eab0 Merge pull request #1884 from groue/dev/fix-1883
Work around an SQLite bug in WAL snapshot ordering
2026-09-26 10:37:32 +02:00
Gwendal Roué ac1e5e66be Remove assertion about SQLite snapshot ordering
Fix #1883
2026-09-26 10:20:32 +02:00
Gwendal Roué 6bf7ba8f03 Merge pull request #1881 from groue/dev/fix-1873
Fix an accidentally quadratic behavior in SQLite statement compilation
2026-09-23 19:09:50 +02:00
Gwendal Roué 9f2e3b7d6b Optimize statement authorizer region accumulation
This commit is inspired by #1873 from @guidedways, who detected an unexpectedly quadratic behavior in the way we build database regions from the statement authorizer
2026-09-23 14:16:22 +02:00
Gwendal Roué c08767b500 Fix stale test
The test was checking for the presence of an SQLite bug. This bug is gone in macOS 27.0.
2026-09-15 14:36:27 +02:00
Chris Kolbu 8511cfd399 Document INTEGER PRIMARY KEY in WITHOUT ROWID tables 2026-08-18 19:55:41 +10:00
Chris Kolbu 4373b3a49b Fix failing tests for INTEGER PRIMARY KEY in WITHOUT ROWID tables 2026-08-18 19:55:41 +10:00
Chris Kolbu d4713c1fa8 Failing tests for INTEGER PRIMARY KEY in WITHOUT ROWID tables 2026-08-18 19:55:41 +10:00
Gwendal Roué 0d8cf958b4 Merge pull request #1876 from latent-9/docs/fix-doubled-word
Fix doubled word in doc comment
2026-08-08 10:56:30 +02:00
latent-9 0a9a55d15f Fix doubled word in doc comment 2026-08-08 15:07:24 +12:00
Gwendal Roué b83108d10f Merge branch 'development' 2026-06-18 14:07:07 +02:00
Gwendal Roué 468b8e81be v7.11.1 2026-06-18 14:06:56 +02:00
Gwendal Roué a3a29aa921 Merge pull request #1869 from MarkusSintonen/optimize-register-migration
Optimize migration registration to be O(n) instead of O(n^2)
2026-06-18 08:19:57 +02:00
Markus Sintonen f1d321139f Combine unappliedExecutions into a single loop 2026-06-17 21:06:52 +03:00
Markus Sintonen 7d489358e2 Compare migration identifier from OrderedDictionary key 2026-06-17 20:41:46 +03:00
Markus Sintonen 67530472a5 Use OrderedDictionary for O(1) migration registration 2026-06-17 20:35:58 +03:00
Gwendal Roué fe3b957e5f Add missing Foundation imports 2026-06-10 12:55:39 +02:00
Gwendal Roué f1eb48b0cf Fix a warning in Version 27.0 beta 2026-06-10 12:53:47 +02:00
Gwendal Roué 9ed8c8457e Merge branch 'development' 2026-06-01 08:06:44 +02:00
Gwendal Roué 656d1f4539 v7.11.0 2026-06-01 08:06:35 +02:00
Gwendal Roué cc85b3d82d Disable GRDBCustom on GitHub CI
The tests pass on my machine, but not on CI: https://github.com/groue/GRDB.swift/actions/runs/26725623508/job/78792729917
2026-06-01 07:51:40 +02:00
Gwendal Roué 97f517a660 Use Xcode folders
... except in projects that use CocoaPods, because well the new Xcode project format is not supporteed
2026-05-31 23:57:01 +02:00
Gwendal Roué b49e990bdd Merge pull request #1864 from simolus3/development
Add `observe(statement:)` to `TransactionObserver`
2026-05-31 14:38:10 +02:00
Gwendal Roué 27c7bda0e9 Refactor with DatabaseEventObservationStrategy
The issue with `observesAllDatabaseChanges` is that this was a misleading name: transaction observers are not notified of changes that are performed in a save point that is eventually rollbacked.

By exposing the DatabaseEventObservationStrategy type, we allow for a future extra flag that ignores save points, trading observation precision for a reduced memory footprint.
2026-05-31 14:04:10 +02:00
Simon Binder 253cdfec8c Review feedback 2026-05-11 20:47:20 +02:00
Simon Binder e934c428b4 Add observe(statement:) to TransactionObserver 2026-05-05 22:06:06 +02:00
Gwendal Roué cdc2fb4200 Merge pull request #1858 from groue/dev/issue-1855
Fix upsert for WITHOUT ROWID tables
2026-03-19 08:07:22 +01:00
Gwendal Roué 47cb0b877b Fix failing test for upsert in a table WITHOUT ROWID
Fixes #1855
2026-03-16 12:10:57 +01:00
Gwendal Roué c637e04133 Failing test for upsert in a table WITHOUT ROWID
Failing test for #1855
2026-03-16 12:10:57 +01:00
Gwendal Roué 36e30a6f1e Merge branch 'development' 2026-02-15 15:10:35 +01:00
Gwendal Roué 368514c33b v7.10.0 2026-02-15 15:09:40 +01:00
Gwendal Roué 21b1322e05 Fix Swiftlint warnings 2026-02-15 15:09:40 +01:00
Gwendal Roué 819f4572df Merge pull request #1852 from groue/dev/upsert-strategy
Configure whether UPSERT should update all columns, or no column.
2026-02-15 14:10:32 +01:00
Gwendal Roué 7b01c9b72b Let the user choose between the two possible update strategies for upsert 2026-02-15 13:40:05 +01:00
Gwendal Roué 7f9d1503a0 Merge pull request #1850 from swift-everywhere/platform-fixes
Android and Windows platform import/conditional accommodation
2026-02-04 08:38:48 +01:00
Marc Prud'hommeaux 14567635e4 Android and Windows platform import/conditional accommodation 2026-02-03 17:56:04 -05:00
Gwendal Roué 205387d2d2 Merge pull request #1849 from marcprux/patch-1
Add Sendable conformance to DispatchQueueExecutor for Android and Windows
2026-02-03 11:32:13 +01:00
Marc Prud'hommeaux c8f0328413 Add Sendable conformance to DispatchQueueExecutor for Android and Windows 2026-02-03 10:44:33 +01:00
Gwendal Roué e784b10314 Merge pull request #1845 from R4N/sqlcipher-spm-upstream
SQLCipher organizational/import adjustments
2026-02-03 08:19:11 +01:00
Gwendal Roué 34fa177a47 Merge pull request #1848 from groue/bellebethcooper-typo-fix
Minor typo in doc comments
2026-02-03 08:13:35 +01:00
bellebethcooper 67ebcb325c Minor typo in doc comments 2026-02-03 16:32:37 +11:00
Gwendal Roué a3036feb48 Merge branch 'development' into sqlcipher-spm-upstream 2026-02-01 15:11:22 +01:00
Gwendal Roué 14d4c842e4 Document how to enable SQLCipher with SPM 2026-02-01 14:48:50 +01:00
Gwendal Roué 79276d7f68 Prepare support for SPM+SQLCipher 2026-02-01 14:43:24 +01:00
Gwendal Roué 14fdba1ef3 Rename CipherXxx APIs to SQLCipherXxx when possible 2026-02-01 14:43:24 +01:00
Gwendal Roué 8b5017714f Support more SQLCipher log destinations 2026-02-01 14:43:24 +01:00
Gwendal Roué a1a9c3aefe Make links appear as links in DocC 2026-02-01 12:37:49 +01:00
Gwendal Roué d664db9610 Enhance documentation formatting 2026-02-01 12:37:49 +01:00
Gwendal Roué 2c4492a098 Do not define CipherLogLevel as a frozen enum 2026-02-01 12:37:49 +01:00
Gwendal Roué c0ef0e0f99 Use the same logic for importing SQLCipher as in other files 2026-02-01 11:19:30 +01:00
Gwendal Roué 81a699cae9 Merge branch 'grdb_linux_changes' into development 2026-02-01 11:00:35 +01:00
Micah Moore bd954c6791 Removes GRDBSQLCipher import from SQLCipher conditional import in Database.swift to allow SQLCipher forkers versatility for defining pass-throughs to GRDB required sqlite variadic functions. 2026-01-19 13:37:41 -05:00
Micah Moore 2f94eb307a Adds Foundation import to Database+SQLCipher 2026-01-16 14:59:25 -05:00
Gwendal Roué 51083da42d Merge pull request #1846 from leejungyeob/fix-usage-example-typo
Fix typo in usage examples
2026-01-16 13:18:54 +01:00
leejungyeob c229891b6d Fix typo in usage examples 2026-01-16 18:20:56 +09:00
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é ccfe3149d7 Merge pull request #1842 from Cykelero/fix-usage-example-typos
Fix typos in usage examples
2026-01-09 16:30:58 +01:00
Nathan Manceaux-Panot ce71d6c19f Fix typos in usage examples 2026-01-09 15:44:42 +01:00
Gwendal Roué 129e53d54e Remove obsolete TODOs 2025-12-30 13:00:56 +01:00
Gwendal Roué bc5dd31366 Fix Swiftlint warnings 2025-12-30 10:31:13 +01:00
Gwendal Roué aa0079aeb8 Merge branch 'development' 2025-12-13 12:11:32 +01:00
Gwendal Roué 74ef238376 v7.9.0 2025-12-13 12:05:31 +01:00
Gwendal Roué 9d7a487971 Merge pull request #1839 from groue/dev/issue-1838
Fix cancellation of async tasks that use the FTS5 full-text engine.
2025-12-10 16:11:32 +01:00
Gwendal Roué ac2f2e8643 Test that we recover from the FTS5 bug 2025-12-10 13:38:25 +01:00
Gwendal Roué e281149a2d Simplify Issue1838Tests
... and add it to test targets
2025-12-10 13:28:04 +01:00
Gwendal Roué 3ee256e7e8 Common API for statements that must ignore interruption errors 2025-12-09 21:39:20 +01:00
Gwendal Roué 361599aacd Task cancellation should turn all SQLITE_INTERRUPT errors into CancellationError, including errors thrown by statement compilation
I did not know statement compilation could fail when database is interrupted until #1838. A ROLLBACK statement would not even compile due to the FTS5 statement leak reported in https://sqlite.org/forum/forumpost/137c7662b389fa18
2025-12-09 21:38:15 +01:00
Gwendal Roué 64a024097d Fix failing test for #1838 by reseting all prepared statements before retrying 2025-12-08 21:40:48 +01:00
Gwendal Roué 60ea10948b Protect PRAGMA query_only = 0 against SQLITE_INTERRUPT
This should fix a race condition about cancellation that happens during a read-only access.
2025-12-08 21:22:43 +01:00
Gwendal Roué 5dba64d545 Retry a rollback in case of SQLITE_INTERRUPT error
This should fix a race condition about cancellation that happens during a rollback
2025-12-08 21:11:26 +01:00
Gwendal Roué 2212a17950 Failing test for #1838 2025-12-08 15:13:28 +01:00
Gwendal Roué 24fa06d646 Merge branch 'master' into development 2025-12-08 09:51:07 +01:00
Gwendal Roué fd788900b6 Revert "Add link to our beloved sponsor Base"
This reverts commit 827ab62bb6.
2025-12-08 09:50:02 +01:00
Gwendal Roué b31be05ee3 Do not use traits, since they are not supported by Xcode
This pull request fixes #1826, which broke `make test_GRDBDemo` with Xcode 26.0.1.

To reproduce the failure:

- Remove from ~/Library/Developer/Xcode/DerivedData all previous builds of GRDB and related stuff
- Run `make distclean test_GRDBDemo`

We expect a success, but it fails with error "Unable to find module dependency: 'GRDBSQLite'".
2025-10-27 13:37:21 +01:00
319 changed files with 4191 additions and 5371 deletions

No files matched your search

+17 -17
View File
@@ -107,23 +107,23 @@ jobs:
- uses: actions/checkout@v5
- name: ${{ matrix.name }}
run: make test_framework_SQLCipher4Encrypted
CustomSQLite:
name: CustomSQLite
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer"
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_16.4.app"
runsOn: macOS-15
name: "Xcode 16.4"
steps:
- uses: actions/checkout@v5
- name: ${{ matrix.name }}
run: make test_framework_GRDBCustomSQLiteOSX
# CustomSQLite:
# name: CustomSQLite
# runs-on: ${{ matrix.runsOn }}
# env:
# DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer"
# timeout-minutes: 60
# strategy:
# fail-fast: false
# matrix:
# include:
# - xcode: "Xcode_16.4.app"
# runsOn: macOS-15
# name: "Xcode 16.4"
# steps:
# - uses: actions/checkout@v5
# - name: ${{ matrix.name }}
# run: make test_framework_GRDBCustomSQLiteOSX
XCFramework:
name: XCFramework
runs-on: ${{ matrix.runsOn }}
+72 -1
View File
@@ -7,6 +7,10 @@ GRDB adheres to [Semantic Versioning](https://semver.org/), with one exception:
#### 7.x Releases
- `7.12.x` Releases - [7.12.0](#7120)
- `7.11.x` Releases - [7.11.0](#7110) - [7.11.1](#7111)
- `7.10.x` Releases - [7.10.0](#7100)
- `7.9.x` Releases - [7.9.0](#790)
- `7.8.x` Releases - [7.8.0](#780)
- `7.7.x` Releases - [7.7.0](#770) - [7.7.1](#771)
- `7.6.x` Releases - [7.6.0](#760) - [7.6.1](#761)
@@ -140,6 +144,73 @@ GRDB adheres to [Semantic Versioning](https://semver.org/), with one exception:
---
## 7.12.0
Released November 1, 2026
- **New**: Add support for Strings that contain the NUL character by [@groue](https://github.com/groue) and [@nesevis](https://github.com/nesevis) in [#1885](https://github.com/groue/GRDB.swift/pull/1885)
- **New**: Keep SQLite's error message when a database fails to open by [@builtbysharath](https://github.com/builtbysharath) in [#1889](https://github.com/groue/GRDB.swift/pull/1889)
- **Fixed**: Fix doubled word in doc comment by [@latent-9](https://github.com/latent-9) in [#1876](https://github.com/groue/GRDB.swift/pull/1876)
- **Fixed**: Fix an accidentally quadratic behavior in SQLite statement compilation by [@groue](https://github.com/groue) and [@guidedways](https://github.com/guidedways) in [#1881](https://github.com/groue/GRDB.swift/pull/1881)
- **Fixed**: Work around an SQLite bug in WAL snapshot ordering by [@groue](https://github.com/groue) and [@vburojevic](https://github.com/vburojevic) in [#1884](https://github.com/groue/GRDB.swift/pull/1884)
- **Fixed**: Fix upsert for WITHOUT ROWID tables with an INTEGER primary key by [@nesevis](https://github.com/nesevis) in [#1879](https://github.com/groue/GRDB.swift/pull/1879)
- **Fixed**: Support for statement recompilation after the columns are modified in the database schema by [@groue](https://github.com/groue) in [#1893](https://github.com/groue/GRDB.swift/pull/1893)
- **Fixed**: Fix SharedValueObservation deadlock, ordering, and cancellation by [@groue](https://github.com/groue) in [#1894](https://github.com/groue/GRDB.swift/pull/1894)
## 7.11.1
Released June 18, 2026
- **New**: Make migration registration an O(1) operation [@MarkusSintonen](https://github.com/MarkusSintonen) in [#1869](https://github.com/groue/GRDB.swift/pull/1869)
## 7.11.0
Released June 1, 2026
- **New**: Add option to disable database change filtering in `TransactionObserver` by [@simolus3](https://github.com/simolus3) in [#1864](https://github.com/groue/GRDB.swift/pull/1864)
- **Fixed**: Fix upsert for WITHOUT ROWID tables by [@groue](https://github.com/groue) in [#1858](https://github.com/groue/GRDB.swift/pull/1858)
## 7.10.0
Released February 15, 2026
- **Documentation fixes** by [@bellebethcooper](https://github.com/bellebethcooper), [@Cykelero](https://github.com/Cykelero), and [@leejungyeob](https://github.com/leejungyeob) in [#1842](https://github.com/groue/GRDB.swift/pull/1842), [#1846](https://github.com/groue/GRDB.swift/pull/1846), [#1848](https://github.com/groue/GRDB.swift/pull/1848)
- **New**: Linux adjustments by [@thinkpractice](https://github.com/thinkpractice) in [#1825](https://github.com/groue/GRDB.swift/pull/1825)
- **New**: SQLCipher adjustments by [@R4N](https://github.com/R4N) in [#1845](https://github.com/groue/GRDB.swift/pull/1845)
- **New**: Android and Windows adjustments by [@marcprux](https://github.com/marcprux) in [#1849](https://github.com/groue/GRDB.swift/pull/1849), [#1850](https://github.com/groue/GRDB.swift/pull/1850)
- **New**: Configure whether UPSERT should update all columns, or no column by [@groue](https://github.com/groue) in [#1852](https://github.com/groue/GRDB.swift/pull/1852)
## 7.9.0
Released December 13, 2025
- **Breaking Change**: Simplify the compiler checks for the availability of SQLite snapshots by [@groue](https://github.com/groue) in [#1826](https://github.com/groue/GRDB.swift/pull/1826)
This change aims at easing Linux and Android compatibility.
**The library requirements are raised to Swift 6.1+, Xcode 16.3+.**
- **Breaking Change**: Accept multiple SQLCipher libraries by [@groue](https://github.com/groue) in [#1819](https://github.com/groue/GRDB.swift/pull/1819)
This change aims at easing building GRDB against various SQLCipher flavors.
**The compiler flag that enables new GRDB APIs for SQLCipher is now `SQLITE_HAS_CODEC`.**
- **Fixed**: Fix cancellation of async tasks that use the FTS5 full-text engine by [@groue](https://github.com/groue) in [#1839](https://github.com/groue/GRDB.swift/pull/1839)
This workarounds an [SQLite bug](https://sqlite.org/forum/forumpost/95413eb410) that would trigger a GRDB crash, and improves the robustness of the library regarding database accesses cancellation and database interruption.
- **New**: Improve the ergonomics of `DatabaseMigrator.registerMigration(_:foreignKeyChecks:merging:migrate)`, introduced in [#1818](https://github.com/groue/GRDB.swift/pull/1818), by accepting that the name of the merged migration is included in the set of merged migrations:
```swift
// Used to fail, now OK:
migrator.registerMigration("v3", merging: ["v1", "v2", "v3"]) { ... }
// ~~~~ ~~~~
// The above code is equivalent to:
migrator.registerMigration("v3", merging: ["v1", "v2"]) { ... }
```
## 7.8.0
Released October 2, 2025
@@ -4370,7 +4441,7 @@ Released April 3, 2017
**Breaking Changes**
- SQLite C API is now available right from the GRBD module: you don't need any longer to import `SQLiteiPhoneOS` module et al (see documentation for [Raw SQLite Pointers](https://github.com/groue/GRDB.swift#raw-sqlite-pointers)).
- SQLite C API is now available right from the GRDB module: you don't need any longer to import `SQLiteiPhoneOS` module et al (see documentation for [Raw SQLite Pointers](https://github.com/groue/GRDB.swift#raw-sqlite-pointers)).
- The [manual installation procedure for WatchOS extensions](https://github.com/groue/GRDB.swift#installation) has changed.
- [Carthage](https://github.com/Carthage/Carthage) is no longer supported. At the present time it is unable to support the various frameworks built by GRDB (system SQLite, SQLCipher, custom SQLite builds, etc.)
+1 -1
View File
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'GRDB.swift'
s.version = '7.8.0'
s.version = '7.12.0'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.summary = 'A toolkit for SQLite databases, with a focus on application development.'
File diff suppressed because it is too large. Load diff
+2 -2
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
+257
View File
@@ -0,0 +1,257 @@
#if SQLITE_HAS_CODEC
#if GRDBCIPHER // CocoaPods (SQLCipher subspec)
import SQLCipher
#elseif SQLCipher
import SQLCipher
#else
#error("No SQLCipher library configured")
#endif
import Foundation
extension Database {
/// Destination of SQLCipher logs.
///
/// See <https://www.zetetic.net/sqlcipher/sqlcipher-api/#cipher_log>
public struct SQLCipherLogTarget: Sendable {
public var rawValue: String
public init(rawValue: String) {
self.rawValue = rawValue
}
public static let stdout = Self(rawValue: "stdout")
public static let stderr = Self(rawValue: "stderr")
public static let device = Self(rawValue: "device")
public static func file(_ path: String) -> Self { Self(rawValue: path) }
}
/// Granularitly of SQLCipher log outputs.
///
/// Each log level is more verbose than the last. With ``debug`` and
/// ``trace`` the logging system will generate a significant log volume.
///
/// See <https://www.zetetic.net/sqlcipher/sqlcipher-api/#cipher_log_level>
///
/// ## Topics
///
/// ### Log Levels
///
/// - ``none``
/// - ``error``
/// - ``warn``
/// - ``info``
/// - ``debug``
/// - ``trace``
public struct SQLCipherLogLevel: RawRepresentable, Sendable {
public var rawValue: String
public init(rawValue: String) {
self.rawValue = rawValue
}
public static let none = Self(rawValue: "NONE")
public static let error = Self(rawValue: "ERROR")
public static let warn = Self(rawValue: "WARN")
public static let info = Self(rawValue: "INFO")
public static let debug = Self(rawValue: "DEBUG")
public static let trace = Self(rawValue: "TRACE")
}
/// - Returns: the SQLCipher version
///
/// See <https://www.zetetic.net/sqlcipher/sqlcipher-api/#cipher_version>
public var cipherVersion: String {
get throws { try String.fetchOne(self, sql: "PRAGMA cipher_version")! }
}
/// - Returns: the SQLCipher fips status: 1 for fips mode, 0 for non-fips mode
/// The FIPS status will not be initialized until the database connection has been keyed
///
/// See <https://www.zetetic.net/sqlcipher/sqlcipher-api/#cipher_fips_status>
public var cipherFipsStatus: String? {
get throws { try String.fetchOne(self, sql: "PRAGMA cipher_fips_status") }
}
/// - Returns: The compiled crypto provider.
/// The database must be keyed before requesting the name of the crypto provider.
///
/// See <https://www.zetetic.net/sqlcipher/sqlcipher-api/#cipher_provider>
public var cipherProvider: String? {
get throws { try String.fetchOne(self, sql: "PRAGMA cipher_provider") }
}
/// - Returns: the version number provided from the compiled crypto provider.
/// This value, if known, is available only after the database has been keyed.
///
/// See <https://www.zetetic.net/sqlcipher/sqlcipher-api/#cipher_provider_version>
public var cipherProviderVersion: String? {
get throws { try String.fetchOne(self, sql: "PRAGMA cipher_provider_version") }
}
/// Sets the passphrase used to crypt and decrypt an SQLCipher database.
///
/// Call this method from `Configuration.prepareDatabase`,
/// as in the example below:
///
/// var config = Configuration()
/// config.prepareDatabase { db in
/// try db.usePassphrase("secret")
/// }
public func usePassphrase(_ passphrase: String) throws {
guard var data = passphrase.data(using: .utf8) else {
throw DatabaseError(message: "invalid passphrase")
}
defer {
data.resetBytes(in: 0..<data.count)
}
try usePassphrase(data)
}
/// Sets the passphrase used to crypt and decrypt an SQLCipher database.
///
/// Call this method from `Configuration.prepareDatabase`,
/// as in the example below:
///
/// var config = Configuration()
/// config.prepareDatabase { db in
/// try db.usePassphrase(passphraseData)
/// }
public func usePassphrase(_ passphrase: Data) throws {
let code = passphrase.withUnsafeBytes {
sqlite3_key(sqliteConnection, $0.baseAddress, CInt($0.count))
}
guard code == SQLITE_OK else {
throw DatabaseError(resultCode: code, message: String(cString: sqlite3_errmsg(sqliteConnection)))
}
}
/// Changes the passphrase used by an SQLCipher encrypted database.
public func changePassphrase(_ passphrase: String) throws {
guard var data = passphrase.data(using: .utf8) else {
throw DatabaseError(message: "invalid passphrase")
}
defer {
data.resetBytes(in: 0..<data.count)
}
try changePassphrase(data)
}
/// Changes the passphrase used by an SQLCipher encrypted database.
public func changePassphrase(_ passphrase: Data) throws {
// FIXME: sqlite3_rekey is discouraged.
//
// https://github.com/ccgus/fmdb/issues/547#issuecomment-259219320
//
// > We (Zetetic) have been discouraging the use of sqlite3_rekey in
// > favor of attaching a new database with the desired encryption
// > options and using sqlcipher_export() to migrate the contents and
// > schema of the original db into the new one:
// > https://discuss.zetetic.net/t/how-to-encrypt-a-plaintext-sqlite-database-to-use-sqlcipher-and-avoid-file-is-encrypted-or-is-not-a-database-errors/
let code = passphrase.withUnsafeBytes {
sqlite3_rekey(sqliteConnection, $0.baseAddress, CInt($0.count))
}
guard code == SQLITE_OK else {
throw DatabaseError(resultCode: code, message: lastErrorMessage)
}
}
/// When using Commercial or Enterprise SQLCipher packages you must call
/// `PRAGMA cipher_license` with a valid license code prior to executing
/// cryptographic operations on an encrypted database.
/// Failure to provide a license code, or use of an expired trial code,
/// will result in an `SQLITE_AUTH (23)` error code reported from the SQLite API
/// License Codes will activate SQLCipher Commercial or Enterprise packages
/// from Zetetic: <https://www.zetetic.net/sqlcipher/buy/>
/// 15-day free trials are available by request: <https://www.zetetic.net/sqlcipher/trial/>
///
/// Call this method from ``Configuration/prepareDatabase(_:)``,
/// as in the example below:
///
/// ```swift
/// var config = Configuration()
/// config.prepareDatabase { db in
/// try db.applySQLCipherLicense(license)
/// }
/// ```
///
/// See <https://www.zetetic.net/sqlcipher/sqlcipher-api/#cipher_license>
/// - Parameter license: base64 SQLCipher license code to activate SQLCipher commercial
public func applySQLCipherLicense(_ license: String) throws {
try execute(sql: "PRAGMA cipher_license = '\(license)'")
}
/// Instructs SQLCipher to log internal debugging and operational information.
///
/// The supplied ``logLevel`` determines the granularity of the logs output.
///
/// See <https://www.zetetic.net/sqlcipher/sqlcipher-api/#cipher_log>
/// - Parameter logLevel: The granularity to use for the logging system - defaults to `DEBUG`.
/// - Parameter target: The destination of SQLCipher logs - defaults to `.device`.
public func enableCipherLogging(
logLevel: SQLCipherLogLevel = .debug,
target: SQLCipherLogTarget = .device
) throws {
// Pragma do not support SQL arguments. We need to generate SQL that contains literal values:
// PRAGMA cipher_log = '/path/to/file'
// PRAGMA cipher_log_level = 'xxx'
let context = SQLGenerationContext(self, argumentsSink: .literalValues)
try execute(sql: SQL("PRAGMA cipher_log = \(target.rawValue)").sql(context))
try execute(sql: SQL("PRAGMA cipher_log_level = \(logLevel.rawValue.uppercased())").sql(context))
}
/// Instructs SQLCipher to disable logging internal debugging and operational information.
///
/// See <https://www.zetetic.net/sqlcipher/sqlcipher-api/#cipher_log>
public func disableCipherLogging() throws {
try execute(sql: "PRAGMA cipher_log_level = NONE")
}
internal func validateSQLCipher() throws {
// https://discuss.zetetic.net/t/important-advisory-sqlcipher-with-xcode-8-and-new-sdks/1688
//
// > In order to avoid situations where SQLite might be used
// > improperly at runtime, we strongly recommend that
// > applications institute a runtime test to ensure that the
// > application is actually using SQLCipher on the active
// > connection.
if try String.fetchOne(self, sql: "PRAGMA cipher_version") == nil {
throw DatabaseError(resultCode: .SQLITE_MISUSE, message: """
GRDB is not linked against SQLCipher. \
Check https://discuss.zetetic.net/t/important-advisory-sqlcipher-with-xcode-8-and-new-sdks/1688
""")
}
}
internal func dropAllDatabaseObjects() throws {
// SQLCipher does not support the backup API:
// https://discuss.zetetic.net/t/using-the-sqlite-online-backup-api/2631
// So we'll drop all database objects one after the other.
// Prevent foreign keys from messing with drop table statements
let foreignKeysEnabled = try Bool.fetchOne(self, sql: "PRAGMA foreign_keys")!
if foreignKeysEnabled {
try execute(sql: "PRAGMA foreign_keys = OFF")
}
try throwingFirstError(
execute: {
// Remove all database objects, one after the other
try inTransaction {
let sql = "SELECT type, name FROM sqlite_master WHERE name NOT LIKE 'sqlite_%'"
while let row = try Row.fetchOne(self, sql: sql) {
let type: String = row["type"]
let name: String = row["name"]
try execute(sql: "DROP \(type) \(name.quotedDatabaseIdentifier)")
}
return .commit
}
},
finally: {
// Restore foreign keys if needed
if foreignKeysEnabled {
try execute(sql: "PRAGMA foreign_keys = ON")
}
})
}
}
#endif
+21 -6
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
@@ -511,11 +511,12 @@ extension Database {
// > DESC" clause, it does not become an alias for the rowid [...]
//
// FIXME: We ignore the exception, and consider all INTEGER primary
// keys as aliases for the rowid:
if pkColumn.type.uppercased() == "INTEGER" {
// keys of rowid tables as aliases for the rowid:
let tableHasRowID = try fetchTableHasRowID(table)
if pkColumn.type.uppercased() == "INTEGER" && tableHasRowID {
return .rowID(pkColumn)
} else {
return try .regular([pkColumn], tableHasRowID: fetchTableHasRowID(table))
return .regular([pkColumn], tableHasRowID: tableHasRowID)
}
default:
@@ -1605,7 +1606,19 @@ extension ForeignKeyViolation: CustomStringConvertible {
/// pk.columns // ["citizenID", "countryIsoCode"]
/// pk.rowIDColumn // nil
/// pk.isRowID // false
///
/// // CREATE TABLE passport (
/// // id INTEGER PRIMARY KEY,
/// // name TEXT
/// // ) WITHOUT ROWID
/// let pk = try db.primaryKey("passport")
/// pk.columns // ["id"]
/// pk.rowIDColumn // nil
/// pk.isRowID // false
/// ```
///
/// An `INTEGER PRIMARY KEY` is an alias for the rowid only in rowid
/// tables. In a `WITHOUT ROWID` table, it is a regular primary key.
public struct PrimaryKeyInfo: Sendable {
private enum Impl {
/// The hidden rowID.
@@ -1659,7 +1672,9 @@ public struct PrimaryKeyInfo: Sendable {
}
/// When not nil, the name of the column that contains the
/// `INTEGER PRIMARY KEY`.
/// `INTEGER PRIMARY KEY` of a rowid table.
///
/// This is nil for `WITHOUT ROWID` tables, which have no rowid.
public var rowIDColumn: String? {
switch impl {
case .hiddenRowID:
+23 -2
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
@@ -513,6 +513,27 @@ extension Database {
publicStatementArguments: configuration.publicStatementArguments)
}
/// Always throws an error
func statementCompilationDidFail(
at statementStart: UnsafePointer<CChar>,
withResultCode resultCode: CInt
) throws -> Never {
switch ResultCode(rawValue: resultCode) {
case .SQLITE_INTERRUPT, .SQLITE_ABORT:
// The only error that a user sees when a Task is cancelled
// is CancellationError.
try suspensionMutex.load().checkCancellation()
default:
break
}
// Throw compilation failure
throw DatabaseError(
resultCode: resultCode,
message: lastErrorMessage,
sql: String(cString: statementStart))
}
private func checkForAutocommitTransition() {
if sqlite3_get_autocommit(sqliteConnection) == 0 {
if autocommitState == .on {
+66 -126
View File
@@ -4,8 +4,9 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
import GRDBSQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
@@ -493,8 +494,11 @@ public final class Database: CustomStringConvertible, CustomDebugStringConvertib
// https://www.sqlite.org/c3ref/close.html
// > Calling sqlite3_close() or sqlite3_close_v2() with a NULL
// > pointer argument is a harmless no-op.
//
// Read the error message before the connection is closed.
let message = sqliteConnection.map { String(cString: sqlite3_errmsg($0)) }
_ = sqlite3_close(sqliteConnection) // ignore result code
throw DatabaseError(resultCode: code)
throw DatabaseError(resultCode: code, message: message)
}
guard let sqliteConnection else {
throw DatabaseError(resultCode: .SQLITE_INTERNAL) // WTF SQLite?
@@ -641,24 +645,6 @@ public final class Database: CustomStringConvertible, CustomDebugStringConvertib
}
}
#if SQLITE_HAS_CODEC
private func validateSQLCipher() throws {
// https://discuss.zetetic.net/t/important-advisory-sqlcipher-with-xcode-8-and-new-sdks/1688
//
// > In order to avoid situations where SQLite might be used
// > improperly at runtime, we strongly recommend that
// > applications institute a runtime test to ensure that the
// > application is actually using SQLCipher on the active
// > connection.
if try String.fetchOne(self, sql: "PRAGMA cipher_version") == nil {
throw DatabaseError(resultCode: .SQLITE_MISUSE, message: """
GRDB is not linked against SQLCipher. \
Check https://discuss.zetetic.net/t/important-advisory-sqlcipher-with-xcode-8-and-new-sdks/1688
""")
}
}
#endif
private func validateFormat() throws {
// Users are surprised when they open a picture as a database and
// see no error (https://github.com/groue/GRDB.swift/issues/54).
@@ -863,7 +849,16 @@ public final class Database: CustomStringConvertible, CustomDebugStringConvertib
readOnlyDepth -= 1
assert(readOnlyDepth >= 0, "unbalanced endReadOnly()")
if readOnlyDepth == 0 {
try internalCachedStatement(sql: "PRAGMA query_only = 0").execute()
// We MUST ignore interruptions when we leave the read-only mode,
// otherwise user could not write with this database
// connection again.
//
// It's OK to ignore interruption, since interruption is
// concurrent and we can pretend it occurred before or after
// the PRAGMA.
try ignoringInterruption {
try internalCachedStatement(sql: "PRAGMA query_only = 0").execute()
}
}
}
@@ -1300,6 +1295,31 @@ public final class Database: CustomStringConvertible, CustomDebugStringConvertib
return try value()
}
/// Returns the result of `value`. If `value` throws an interruption
/// error, it is retried a second time.
func ignoringInterruption<T>(_ value: () throws -> T) rethrows -> T {
do {
return try value() // swiftlint:disable:next statement_position
}
catch is CancellationError,
DatabaseError.SQLITE_INTERRUPT,
DatabaseError.SQLITE_ABORT
{
// Maybe we were unlucky, and user has interrupted the database
// during `value` execution.
//
// Another possible cause for this error is the FTS5 bug
// described at <https://sqlite.org/forum/forumpost/137c7662b3>,
// which leaves the database in a sticky interrupted state.
// To workaround this bug, we must leave the interrupted state
// before retrying:
resetAllPreparedStatements()
// Retry
return try value()
}
}
/// Support for `checkForSuspensionViolation(from:)`
private func journalMode() throws -> String {
if let journalMode = journalModeCache {
@@ -1764,7 +1784,16 @@ public final class Database: CustomStringConvertible, CustomDebugStringConvertib
// which rollback errors should be ignored, and which rollback errors
// should be exposed to the library user.
if isInsideTransaction {
try execute(sql: "ROLLBACK TRANSACTION")
// We MUST ignore interruptions during the rollback, otherwise
// we could leave a transaction open, and trigger a fatal error in
// `SerializedDatabase.preconditionNoUnsafeTransactionLeft`.
//
// It's OK to ignore interruption, since interruption is
// concurrent and we can pretend it occurred before or after
// the rollback.
try ignoringInterruption {
try execute(sql: "ROLLBACK TRANSACTION")
}
}
assert(!isInsideTransaction)
}
@@ -1779,6 +1808,19 @@ public final class Database: CustomStringConvertible, CustomDebugStringConvertib
assert(sqlite3_get_autocommit(sqliteConnection) != 0)
}
/// Resets all prepared statements.
///
/// This method helps clearing the interrupted state, as a workaround
/// for https://sqlite.org/forum/forumpost/137c7662b3, discovered
/// in https://github.com/groue/GRDB.swift/issues/1838.
func resetAllPreparedStatements() {
var stmt: SQLiteStatement? = sqlite3_next_stmt(sqliteConnection, nil)
while stmt != nil {
sqlite3_reset(stmt)
stmt = sqlite3_next_stmt(sqliteConnection, stmt)
}
}
// MARK: - Memory Management
/// Frees as much memory as possible.
@@ -1796,35 +1838,7 @@ public final class Database: CustomStringConvertible, CustomDebugStringConvertib
func erase() throws {
#if SQLITE_HAS_CODEC
// SQLCipher does not support the backup API:
// https://discuss.zetetic.net/t/using-the-sqlite-online-backup-api/2631
// So we'll drop all database objects one after the other.
// Prevent foreign keys from messing with drop table statements
let foreignKeysEnabled = try Bool.fetchOne(self, sql: "PRAGMA foreign_keys")!
if foreignKeysEnabled {
try execute(sql: "PRAGMA foreign_keys = OFF")
}
try throwingFirstError(
execute: {
// Remove all database objects, one after the other
try inTransaction {
let sql = "SELECT type, name FROM sqlite_master WHERE name NOT LIKE 'sqlite_%'"
while let row = try Row.fetchOne(self, sql: sql) {
let type: String = row["type"]
let name: String = row["name"]
try execute(sql: "DROP \(type) \(name.quotedDatabaseIdentifier)")
}
return .commit
}
},
finally: {
// Restore foreign keys if needed
if foreignKeysEnabled {
try execute(sql: "PRAGMA foreign_keys = ON")
}
})
try dropAllDatabaseObjects()
#else
try DatabaseQueue().backup(to: self)
#endif
@@ -1947,80 +1961,6 @@ public final class Database: CustomStringConvertible, CustomDebugStringConvertib
@available(*, unavailable)
extension Database: Sendable { }
#if SQLITE_HAS_CODEC
extension Database {
// MARK: - Encryption
/// Sets the passphrase used to crypt and decrypt an SQLCipher database.
///
/// Call this method from `Configuration.prepareDatabase`,
/// as in the example below:
///
/// var config = Configuration()
/// config.prepareDatabase { db in
/// try db.usePassphrase("secret")
/// }
public func usePassphrase(_ passphrase: String) throws {
guard var data = passphrase.data(using: .utf8) else {
throw DatabaseError(message: "invalid passphrase")
}
defer {
data.resetBytes(in: 0..<data.count)
}
try usePassphrase(data)
}
/// Sets the passphrase used to crypt and decrypt an SQLCipher database.
///
/// Call this method from `Configuration.prepareDatabase`,
/// as in the example below:
///
/// var config = Configuration()
/// config.prepareDatabase { db in
/// try db.usePassphrase(passphraseData)
/// }
public func usePassphrase(_ passphrase: Data) throws {
let code = passphrase.withUnsafeBytes {
sqlite3_key(sqliteConnection, $0.baseAddress, CInt($0.count))
}
guard code == SQLITE_OK else {
throw DatabaseError(resultCode: code, message: String(cString: sqlite3_errmsg(sqliteConnection)))
}
}
/// Changes the passphrase used by an SQLCipher encrypted database.
public func changePassphrase(_ passphrase: String) throws {
guard var data = passphrase.data(using: .utf8) else {
throw DatabaseError(message: "invalid passphrase")
}
defer {
data.resetBytes(in: 0..<data.count)
}
try changePassphrase(data)
}
/// Changes the passphrase used by an SQLCipher encrypted database.
public func changePassphrase(_ passphrase: Data) throws {
// FIXME: sqlite3_rekey is discouraged.
//
// https://github.com/ccgus/fmdb/issues/547#issuecomment-259219320
//
// > We (Zetetic) have been discouraging the use of sqlite3_rekey in
// > favor of attaching a new database with the desired encryption
// > options and using sqlcipher_export() to migrate the contents and
// > schema of the original db into the new one:
// > https://discuss.zetetic.net/t/how-to-encrypt-a-plaintext-sqlite-database-to-use-sqlcipher-and-avoid-file-is-encrypted-or-is-not-a-database-errors/
let code = passphrase.withUnsafeBytes {
sqlite3_rekey(sqliteConnection, $0.baseAddress, CInt($0.count))
}
guard code == SQLITE_OK else {
throw DatabaseError(resultCode: code, message: lastErrorMessage)
}
}
}
#endif
extension Database {
/// Returns the count of changes executed by one statement execution.
func countChanges<T>(_ count: inout Int, forTable tableName: String, updates: () throws -> T) throws -> T {
+1 -1
View File
@@ -12,7 +12,7 @@ public struct DatabaseBackupProgress: Sendable {
/// It is the result of the `sqlite3_backup_pagecount` function.
public let totalPageCount: Int
/// The number of of backed up pages.
/// The number of backed up pages.
///
/// It is equal to `totalPageCount - remainingPageCount`.
public var completedPageCount: Int {
+2 -2
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
+2 -2
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
+12 -6
View File
@@ -4,12 +4,14 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
import Foundation
/// A custom SQL function or aggregate.
///
/// ## Topics
@@ -103,8 +105,10 @@ public final class DatabaseFunction: Identifiable, Sendable {
sqlite3_result_int64(context, int64)
case .double(let double):
sqlite3_result_double(context, double)
case .string(let string):
sqlite3_result_text(context, string, -1, SQLITE_TRANSIENT)
case .string(var string):
string.withSQLiteText {
sqlite3_result_text(context, $0, $1, SQLITE_TRANSIENT)
}
case .blob(let data):
data.withUnsafeBytes {
sqlite3_result_blob(context, $0.baseAddress, CInt($0.count), SQLITE_TRANSIENT)
@@ -445,8 +449,10 @@ public final class DatabaseFunction: Identifiable, Sendable {
sqlite3_result_int64(sqliteContext, int64)
case .double(let double):
sqlite3_result_double(sqliteContext, double)
case .string(let string):
sqlite3_result_text(sqliteContext, string, -1, SQLITE_TRANSIENT)
case .string(var string):
string.withSQLiteText {
sqlite3_result_text(sqliteContext, $0, $1, SQLITE_TRANSIENT)
}
case .blob(let data):
data.withUnsafeBytes {
sqlite3_result_blob(sqliteContext, $0.baseAddress, CInt($0.count), SQLITE_TRANSIENT)
+39 -3
View File
@@ -41,7 +41,8 @@
/// - ``isModified(byEventsOfKind:)``
/// - ``isModified(by:)``
public struct DatabaseRegion: Sendable {
private let tableRegions: [CaseInsensitiveIdentifier: TableRegion]?
/// Nil means that the region is the full database.
private var tableRegions: [CaseInsensitiveIdentifier: TableRegion]?
private init(tableRegions: [CaseInsensitiveIdentifier: TableRegion]?) {
self.tableRegions = tableRegions
@@ -77,19 +78,26 @@ public struct DatabaseRegion: Sendable {
self.init(tableRegions: [table: TableRegion(columns: nil, rowIds: nil)])
}
/// Full columns in a table: (some columns in a table) × (all rows)
/// Some columns from all rows in a table.
init(table: String, columns: Set<String>) {
let table = CaseInsensitiveIdentifier(rawValue: table)
let columns = Set(columns.map(CaseInsensitiveIdentifier.init))
self.init(tableRegions: [table: TableRegion(columns: columns, rowIds: nil)])
}
/// Full rows in a table: (all columns in a table) × (some rows)
/// All columns from some rows in a table.
init(table: String, rowIds: Set<Int64>) {
let table = CaseInsensitiveIdentifier(rawValue: table)
self.init(tableRegions: [table: TableRegion(columns: nil, rowIds: rowIds)])
}
/// Some columns from some rows in a table.
init(table: String, columns: Set<String>, rowIds: Set<Int64>) {
let table = CaseInsensitiveIdentifier(rawValue: table)
let columns = Set(columns.map(CaseInsensitiveIdentifier.init))
self.init(tableRegions: [table: TableRegion(columns: columns, rowIds: rowIds)])
}
/// Returns the intersection of this region and the given one.
///
/// This method is not public because there is no known public use case for
@@ -162,6 +170,22 @@ public struct DatabaseRegion: Sendable {
self = union(other)
}
/// Inserts all columns and rows from the given table.
mutating func insert(table: String) {
guard tableRegions != nil else { return }
let table = CaseInsensitiveIdentifier(rawValue: table)
tableRegions![table, default: TableRegion()].insertAllRowsAndColumns()
}
/// Inserts the specified column and all rows from the given table.
mutating func insert(table: String, column: String) {
assert(!column.isEmpty)
guard tableRegions != nil else { return }
let table = CaseInsensitiveIdentifier(rawValue: table)
let column = CaseInsensitiveIdentifier(rawValue: column)
tableRegions![table, default: TableRegion(columns: [column])].insertAllRowsAndColumn(column)
}
/// Returns a region suitable for database observation
func observableRegion(_ db: Database) throws -> DatabaseRegion {
// SQLite does not expose schema changes to the
@@ -370,6 +394,18 @@ private struct TableRegion: Equatable {
return TableRegion(columns: columnsUnion, rowIds: rowIdsUnion)
}
mutating func insertAllRowsAndColumns() {
rowIds = nil
columns = nil
}
mutating func insertAllRowsAndColumn(_ column: CaseInsensitiveIdentifier) {
rowIds = nil
if columns != nil {
columns!.insert(column)
}
}
func contains(rowID: Int64) -> Bool {
guard let rowIds else {
return true
+4 -4
View File
@@ -5,8 +5,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
@@ -140,7 +140,7 @@ public final class DatabaseSnapshotPool {
let walSnapshot = try db.isolated(readOnly: true) {
try WALSnapshot(db)
}
var holderConfig = Configuration()
var holderConfig = configuration
holderConfig.allowsUnsafeTransactions = true
snapshotHolder = try DatabaseQueue(path: path, configuration: holderConfig)
try snapshotHolder.inDatabase { db in
@@ -199,7 +199,7 @@ public final class DatabaseSnapshotPool {
var configuration = Self.configure(configuration)
// Acquire and hold WAL snapshot
var holderConfig = Configuration()
var holderConfig = configuration
holderConfig.allowsUnsafeTransactions = true
snapshotHolder = try DatabaseQueue(path: path, configuration: holderConfig)
let walSnapshot = try snapshotHolder.inDatabase { db in
+9 -5
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
@@ -147,7 +147,10 @@ public struct DatabaseValue: Hashable {
case SQLITE_FLOAT:
storage = .double(sqlite3_value_double(sqliteValue))
case SQLITE_TEXT:
storage = .string(String(cString: sqlite3_value_text(sqliteValue)!))
let text = sqlite3_value_text(sqliteValue)
let byteCount = Int(sqlite3_value_bytes(sqliteValue))
let string = String(decoding: UnsafeBufferPointer(start: text, count: byteCount), as: UTF8.self)
storage = .string(string)
case SQLITE_BLOB:
if let bytes = sqlite3_value_blob(sqliteValue) {
let count = Int(sqlite3_value_bytes(sqliteValue))
@@ -171,7 +174,8 @@ public struct DatabaseValue: Hashable {
case SQLITE_FLOAT:
storage = .double(sqlite3_column_double(sqliteStatement, index))
case SQLITE_TEXT:
storage = .string(String(cString: sqlite3_column_text(sqliteStatement, index)))
let string = String(sqliteStatement: sqliteStatement, index: index)
storage = .string(string)
case SQLITE_BLOB:
if let bytes = sqlite3_column_blob(sqliteStatement, index) {
let count = Int(sqlite3_column_bytes(sqliteStatement, index))
@@ -223,7 +227,7 @@ extension DatabaseValue: StatementBinding {
let code = double.bind(to: sqliteStatement, at: index)
try checkBindingSuccess(code: code, sqliteStatement: sqliteStatement)
return try body()
case .string(let string):
case .string(var string):
return try string.withBinding(to: sqliteStatement, at: index, do: body)
case .blob(let data):
return try data.withBinding(to: sqliteStatement, at: index, do: body)
+1 -1
View File
@@ -48,6 +48,6 @@ private final class DispatchQueueExecutor: SerialExecutor {
}
}
#if os(Linux)
#if os(Linux) || os(Android) || os(Windows)
extension DispatchQueueExecutor: @unchecked Sendable {}
#endif
+20 -15
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
@@ -154,7 +154,20 @@ public final class Row {
let sqliteStatement: SQLiteStatement?
/// The number of columns in the row.
public let count: Int
@inlinable
public var count: Int {
// Rows that map an SQLite statement don't cache the number of
// columns, because SQLite may recompile the statement after a
// schema change, with a different number of columns.
if let sqliteStatement {
return Int(sqlite3_column_count(sqliteStatement))
}
return cachedCount
}
/// The number of columns, when the row does not map an SQLite statement.
@usableFromInline
let cachedCount: Int
/// A view on the prefetched associated rows.
///
@@ -238,7 +251,7 @@ public final class Row {
self.statement = statement
self.sqliteStatement = statement.sqliteStatement
self.impl = StatementRowImpl(sqliteStatement: statement.sqliteStatement, statement: statement)
self.count = Int(sqlite3_column_count(sqliteStatement))
self.cachedCount = 0 // Unused because sqliteStatement is not nil: see `count`
}
/// Creates a row that maps an SQLite statement. Further calls to
@@ -247,7 +260,7 @@ public final class Row {
self.statement = nil
self.sqliteStatement = sqliteStatement
self.impl = SQLiteStatementRowImpl(sqliteStatement: sqliteStatement)
self.count = Int(sqlite3_column_count(sqliteStatement))
self.cachedCount = 0 // Unused because sqliteStatement is not nil: see `count`
}
/// Creates a row that contain a copy of the current state of the
@@ -269,7 +282,7 @@ public final class Row {
self.statement = nil
self.sqliteStatement = nil
self.impl = impl
self.count = impl.count
self.cachedCount = impl.count
}
}
@@ -2785,19 +2798,10 @@ private struct StatementCopyRowImpl: RowImpl {
private struct StatementRowImpl: RowImpl {
let statement: Statement
let sqliteStatement: SQLiteStatement
let lowercaseColumnIndexes: [String: Int]
init(sqliteStatement: SQLiteStatement, statement: Statement) {
self.statement = statement
self.sqliteStatement = sqliteStatement
// Optimize row[columnName]
let lowercaseColumnNames = (0..<sqlite3_column_count(sqliteStatement))
.map { String(cString: sqlite3_column_name(sqliteStatement, CInt($0))).lowercased() }
self.lowercaseColumnIndexes = Dictionary(
lowercaseColumnNames
.enumerated()
.map { ($0.element, $0.offset) },
uniquingKeysWith: { (left, _) in left }) // keep leftmost indexes
}
var count: Int {
@@ -2844,6 +2848,7 @@ private struct StatementRowImpl: RowImpl {
}
func index(forColumn name: String) -> Int? {
let lowercaseColumnIndexes = statement.columnIndexes
if let index = lowercaseColumnIndexes[name] {
return index
}
+2 -2
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
+48 -17
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
@@ -47,6 +47,25 @@ public final class Statement {
case rollbackSavepoint(String)
}
/// The column names and indexes of a statement, for a given compilation
/// of the statement.
private struct ColumnCache {
var reprepareCount: CInt
var columnNames: [String]
/// Indexes of the leftmost columns. Keys are lowercase.
var columnIndexes: [String: Int]
init(sqliteStatement: SQLiteStatement, reprepareCount: CInt) {
self.reprepareCount = reprepareCount
self.columnNames = (0..<sqlite3_column_count(sqliteStatement)).map {
String(cString: sqlite3_column_name(sqliteStatement, $0))
}
self.columnIndexes = Dictionary(
columnNames.enumerated().map { ($0.element.lowercased(), $0.offset) },
uniquingKeysWith: { (left, _) in left }) // keep leftmost indexes
}
}
/// The raw SQLite statement, suitable for the SQLite C API.
public let sqliteStatement: SQLiteStatement
@@ -59,11 +78,9 @@ public final class Statement {
}
/// The column names, ordered from left to right.
public lazy var columnNames: [String] = {
// swiftlint:disable:next redundant_self_in_closure
let sqliteStatement = self.sqliteStatement
return (0..<CInt(columnCount)).map { String(cString: sqlite3_column_name(sqliteStatement, $0)) }
}()
public var columnNames: [String] {
columnCache.columnNames
}
// The database region is reported by `sqlite3_set_authorizer`, and maybe
// refined in `SQLQueryGenerator.makeStatement(_:)` when we have enough
@@ -114,12 +131,29 @@ public final class Statement {
@usableFromInline
unowned let database: Database
/// Cache for index(ofColumn:). Keys are lowercase.
private lazy var columnIndexes: [String: Int] = {
Dictionary(
columnNames.enumerated().map { ($0.element.lowercased(), $0.offset) },
uniquingKeysWith: { (left, _) in left }) // keep leftmost indexes
}()
/// Indexes of the leftmost columns. Keys are lowercase.
var columnIndexes: [String: Int] {
columnCache.columnIndexes
}
/// Storage for `columnCache`.
private var _columnCache: ColumnCache?
/// The column names and indexes.
///
/// SQLite recompiles statements after schema changes (see
/// <https://www.sqlite.org/c3ref/prepare.html>), and this can change
/// the result columns (think `SELECT *` after a column was added).
/// So the cache is rebuilt whenever the statement is recompiled.
private var columnCache: ColumnCache {
let reprepareCount = sqlite3_stmt_status(sqliteStatement, SQLITE_STMTSTATUS_REPREPARE, 0)
if let _columnCache, _columnCache.reprepareCount == reprepareCount {
return _columnCache
}
let columnCache = ColumnCache(sqliteStatement: sqliteStatement, reprepareCount: reprepareCount)
_columnCache = columnCache
return columnCache
}
/// Creates a prepared statement. Returns nil if the compiled string is
/// blank or empty.
@@ -150,10 +184,7 @@ public final class Statement {
&sqliteStatement, statementEnd)
guard code == SQLITE_OK else {
throw DatabaseError(
resultCode: code,
message: database.lastErrorMessage,
sql: String(cString: statementStart))
try database.statementCompilationDidFail(at: statementStart, withResultCode: code)
}
guard let sqliteStatement else {
+6 -4
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
@@ -14,6 +14,8 @@ import GRDBSQLite
import string_h
#elseif os(Linux)
import Glibc
#elseif os(Android)
import Android
#elseif os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS)
import Darwin
#elseif os(Windows)
@@ -115,10 +117,10 @@ final class StatementAuthorizer {
guard let columnName = cString2.map(String.init) else { return SQLITE_OK }
if columnName.isEmpty {
// SELECT COUNT(*) FROM table
selectedRegion.formUnion(DatabaseRegion(table: tableName))
selectedRegion.insert(table: tableName)
} else {
// SELECT column FROM table
selectedRegion.formUnion(DatabaseRegion(table: tableName, columns: [columnName]))
selectedRegion.insert(table: tableName, column: columnName)
}
return SQLITE_OK
+2 -2
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
+2 -2
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
+2 -2
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
+4 -5
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
@@ -56,9 +56,8 @@ extension Decimal: StatementColumnConvertible {
case SQLITE_FLOAT:
self.init(sqlite3_column_double(sqliteStatement, index))
case SQLITE_TEXT:
self.init(
string: String(cString: sqlite3_column_text(sqliteStatement, index)!),
locale: _posixLocale)
let string = String(sqliteStatement: sqliteStatement, index: index)
self.init(string: string, locale: _posixLocale)
default:
return nil
}
@@ -1,4 +1,3 @@
#if !os(Windows)
import Foundation
private let integerRoundingBehavior = NSDecimalNumberHandler(
@@ -104,4 +103,3 @@ extension NSNumber: DatabaseValueConvertible {
}
private let posixLocale = Locale(identifier: "en_US_POSIX")
#endif
-2
View File
@@ -1,6 +1,5 @@
import Foundation
#if !os(Windows)
/// NSURL stores its absoluteString in the database.
extension NSURL: DatabaseValueConvertible {
@@ -20,7 +19,6 @@ extension NSURL: DatabaseValueConvertible {
return cast(URL(string: string))
}
}
#endif
/// URL stores its absoluteString in the database.
extension URL: DatabaseValueConvertible { }
+3 -5
View File
@@ -4,15 +4,14 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
import Foundation
#if !os(Windows)
/// NSUUID adopts DatabaseValueConvertible
extension NSUUID: DatabaseValueConvertible {
/// Returns a BLOB database value containing the uuid bytes.
@@ -52,7 +51,6 @@ extension NSUUID: DatabaseValueConvertible {
}
}
}
#endif
/// UUID adopts DatabaseValueConvertible
extension UUID: DatabaseValueConvertible {
@@ -91,7 +89,7 @@ extension UUID: StatementColumnConvertible {
public init?(sqliteStatement: SQLiteStatement, index: CInt) {
switch sqlite3_column_type(sqliteStatement, index) {
case SQLITE_TEXT:
let string = String(cString: sqlite3_column_text(sqliteStatement, index)!)
let string = String(sqliteStatement: sqliteStatement, index: index)
guard let uuid = UUID(uuidString: string) else {
return nil
}
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
@@ -4,12 +4,14 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
import Foundation
// MARK: - Value Types
/// Bool adopts DatabaseValueConvertible and StatementColumnConvertible.
@@ -590,7 +592,9 @@ extension String: DatabaseValueConvertible, StatementColumnConvertible {
/// - sqliteStatement: A pointer to an SQLite statement.
/// - index: The column index.
public init(sqliteStatement: SQLiteStatement, index: CInt) {
self = String(cString: sqlite3_column_text(sqliteStatement, index)!)
let text = sqlite3_column_text(sqliteStatement, index)
let byteCount = Int(sqlite3_column_bytes(sqliteStatement, index))
self = String(decoding: UnsafeBufferPointer(start: text, count: byteCount), as: UTF8.self)
}
/// Returns a TEXT database value.
@@ -620,23 +624,57 @@ extension String: DatabaseValueConvertible, StatementColumnConvertible {
}
public func bind(to sqliteStatement: SQLiteStatement, at index: CInt) -> CInt {
sqlite3_bind_text(sqliteStatement, index, self, -1, SQLITE_TRANSIENT)
var string = self
return string.withSQLiteText {
sqlite3_bind_text(sqliteStatement, index, $0, $1, SQLITE_TRANSIENT)
}
}
/// Calls the given closure after binding a statement argument.
///
/// The binding is valid only during the execution of this method.
///
/// This method is mutating because the string is made contiguous
/// if necessary.
///
/// - parameter sqliteStatement: An SQLite statement.
/// - parameter index: 1-based index to statement arguments.
/// - parameter body: The closure to execute when argument is bound.
func withBinding<T>(to sqliteStatement: SQLiteStatement, at index: CInt, do body: () throws -> T) throws -> T {
try withCString {
let code = sqlite3_bind_text(sqliteStatement, index, $0, -1, nil /* SQLITE_STATIC */)
mutating func withBinding<T>(
to sqliteStatement: SQLiteStatement,
at index: CInt,
do body: () throws -> T
) throws -> T {
try withSQLiteText {
let code = sqlite3_bind_text(sqliteStatement, index, $0, $1, nil /* SQLITE_STATIC */)
try checkBindingSuccess(code: code, sqliteStatement: sqliteStatement)
return try body()
}
}
/// Runs body over the content of this string as an UTF8 string. This
/// method exists because it deals with the ASCII NUL (\0) characters,
/// unlike C strings.
///
/// This method is mutating because the string is made contiguous
/// if necessary.
mutating func withSQLiteText<T>(
_ body: (UnsafePointer<CChar>, CInt) throws -> T
) rethrows -> T {
try withUTF8 { utf8 in
guard let baseAddress = utf8.baseAddress else {
// Empty string: yield a non-nil pointer to the NUL string
// terminator, so that functions such as sqlite3_bind_text()
// unambiguously interpret it as the empty string.
return try withUnsafePointer(to: 0 as CChar) {
try body($0, 0)
}
}
return try baseAddress.withMemoryRebound(to: CChar.self, capacity: utf8.count) {
try body($0, CInt(utf8.count))
}
}
}
}
+154 -63
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
@@ -297,6 +297,10 @@ class DatabaseObservationBroker {
}
}
/// Notifies that some changes were performed in the provided
/// database region.
///
/// Support for the public ``Database/notifyChanges(in:)`` method.
func notifyChanges(withEventsOfKind eventKinds: [DatabaseEventKind]) throws {
// Support for stopObservingDatabaseChangesUntilNextTransaction()
SchedulingWatchdog.current!.databaseObservationBroker = self
@@ -334,65 +338,14 @@ class DatabaseObservationBroker {
SchedulingWatchdog.current!.databaseObservationBroker = self
// Fill statementObservations with observations that are interested
// in the kind of database events performed by the statement, as
// reported by `sqlite3_set_authorizer`.
//
// in the kind of database events performed by the statement.
// Those statementObservations will be notified of individual changes
// in databaseWillChange() and databaseDidChange().
let authorizerEventKinds = statement.authorizerEventKinds
switch authorizerEventKinds.count {
case 0:
// Statement has no effect on any database table.
//
// For example: PRAGMA foreign_keys = ON
statementObservations = []
case 1:
// We'll execute a simple statement without any side effect.
// Eventual database events will thus all have the same kind. All
// detabase events can be notified to interested observations.
//
// For example, if one observes all deletions in the table T, then
// all individual deletions of DELETE FROM T are notified:
let eventKind = authorizerEventKinds[0]
statementObservations = transactionObservations.compactMap { observation in
guard observation.observes(eventsOfKind: eventKind) else {
// observation is not interested
return nil
}
// Observation will be notified of all individual events
return StatementObservation(
transactionObservation: observation,
trackingEvents: .all)
}
default:
// We'll execute a complex statement with side effects performed by
// an SQL trigger or a foreign key action. Eventual database events
// may not all have the same kind: we need to filter them before
// notifying interested observations.
//
// For example, if DELETE FROM T1 generates deletions in T1 and T2
// by the mean of a foreign key action, then when one only observes
// deletions in T1, one must not be notified of deletions in T2:
statementObservations = transactionObservations.compactMap { observation in
let observedEventKinds = authorizerEventKinds.filter(observation.observes)
if observedEventKinds.isEmpty {
// observation is not interested
return nil
}
// Observation will only be notified of individual events
// it is interested into.
return StatementObservation(
transactionObservation: observation,
trackingEvents: .matching(
observedEventKinds: observedEventKinds,
authorizerEventKinds: authorizerEventKinds))
}
statementObservations = transactionObservations.compactMap { observation in
observation.statementObservation(for: statement)
}
}
transactionCompletion = .none
}
@@ -798,16 +751,78 @@ class DatabaseObservationBroker {
}
}
// MARK: - DatabaseEventObservationStrategy
/// Controls which database changes are notified to a `TransactionObserver`.
public struct DatabaseEventObservationStrategy: Sendable {
/// A boolean value indicating whether a ``TransactionObserver`` focuses
/// on database changes filtered by its
/// ``TransactionObserver/observes(eventsOfKind:)`` method.
///
/// When this flag is true (the default), the only notified changes are
/// those performed by `DELETE`, `INSERT` and `UPDATE` statements that
/// are compiled and executed by GRDB. Other changes are not: changes
/// performed by `SELECT` statements (through a database function),
/// changes performed by statements compiled or executed with the SQLite
/// C API.
///
/// Set this flag to false in order to be notified of all database events.
///
/// When this flag is false, an observer prevents the
/// [truncate optimization](https://www.sqlite.org/lang_delete.html#the_truncate_optimization)
/// from being applied on all database tables.
public var requiresDatabaseEventKind: Bool
/// The default strategy for observing database change events.
///
/// In this default strategy, only the `DELETE`, `INSERT` and `UPDATE`
/// statements that are compiled and executed by GRDB are observed.
public static let `default` = DatabaseEventObservationStrategy(requiresDatabaseEventKind: true)
}
// MARK: - TransactionObserver
public protocol TransactionObserver: AnyObject {
/// Controls which database changes should be notified to the observer.
///
/// The default value is ``DatabaseEventObservationStrategy/default``,
/// which only detects changes performed by `DELETE`, `INSERT` and
/// `UPDATE` statements that are compiled and executed by GRDB.
///
/// You can define a universal observer that observes changes performed
/// by `SELECT` statements (through a database function), changes
/// performed by statements compiled or executed with the SQLite C API,
/// as below:
///
/// ```swift
/// // An observer that observes all database changes.
/// class UniversalObserver: TransactionObserver {
/// var databaseEventObservationStrategy: DatabaseEventObservationStrategy {
/// var strategy = DatabaseEventObservationStrategy.default
/// // Don't filter on database event kind, so that we are
/// // notified of changes performed through the SQLite C API:
/// strategy.requiresDatabaseEventKind = false
/// return strategy
/// }
///
/// // You still have to provide an implementation for this method,
/// // but it will never be called since `requiresDatabaseEventKind`
/// // is false.
/// func observes(eventsOfKind eventKind: DatabaseEventKind) -> Bool {
/// false // ignored
/// }
///
/// func databaseDidChange(with event: DatabaseEvent) {
/// // Handle the change
/// }
/// }
/// ```
var databaseEventObservationStrategy: DatabaseEventObservationStrategy { get }
/// Returns whether specific kinds of database changes should be notified
/// to the observer.
///
/// When this method returns false, database events of this kind are not
/// notified to the ``databaseDidChange(with:)`` method.
///
/// For example:
///
/// ```swift
@@ -823,6 +838,11 @@ public protocol TransactionObserver: AnyObject {
/// prevents the
/// [truncate optimization](https://www.sqlite.org/lang_delete.html#the_truncate_optimization)
/// from being applied on the observed tables.
///
/// - Note: This method is not called when the result of
/// ``databaseEventObservationStrategy`` has the
/// ``DatabaseEventObservationStrategy/requiresDatabaseEventKind``
/// flag set to false.
func observes(eventsOfKind eventKind: DatabaseEventKind) -> Bool
/// Called when the database was modified in some unspecified way.
@@ -838,8 +858,12 @@ public protocol TransactionObserver: AnyObject {
/// Called when the database is changed by an insert, update, or
/// delete event.
///
/// The change is pending until the current transaction ends. See
/// ``databaseWillCommit()-7mksu``, ``databaseDidCommit(_:)`` and
/// Whether this method is called or not for any given change is
/// controlled by ``databaseEventObservationStrategy`` and
/// ``observes(eventsOfKind:)``.
///
/// The notified change is pending until the current transaction ends.
/// See ``databaseWillCommit()-7mksu``, ``databaseDidCommit(_:)`` and
/// ``databaseDidRollback(_:)``.
///
/// The observer has an opportunity to stop receiving further change events
@@ -902,6 +926,11 @@ public protocol TransactionObserver: AnyObject {
}
extension TransactionObserver {
/// The default implementation does not observe statements.
public var databaseEventObservationStrategy: DatabaseEventObservationStrategy {
.default
}
/// The default implementation does nothing.
public func databaseWillCommit() throws { }
@@ -996,7 +1025,69 @@ final class TransactionObservation {
}
func observes(eventsOfKind eventKind: DatabaseEventKind) -> Bool {
observer?.observes(eventsOfKind: eventKind) ?? false
guard let observer else {
return false
}
return !observer.databaseEventObservationStrategy.requiresDatabaseEventKind || observer.observes(eventsOfKind: eventKind)
}
func statementObservation(for statement: Statement) -> StatementObservation? {
guard let observer else {
return nil
}
if !observer.databaseEventObservationStrategy.requiresDatabaseEventKind {
return StatementObservation(
transactionObservation: self,
trackingEvents: .all)
}
let authorizerEventKinds = statement.authorizerEventKinds
switch authorizerEventKinds.count {
case 0:
// Statement has no effect on any database table.
//
// For example: PRAGMA foreign_keys = ON
return nil
case 1:
// We'll execute a simple statement without any side effect.
// Eventual database events will thus all have the same kind. All
// detabase events can be notified to interested observations.
//
// For example, if one observes all deletions in the table T, then
// all individual deletions of DELETE FROM T are notified:
guard observer.observes(eventsOfKind: authorizerEventKinds[0]) else {
// observation is not interested
return nil
}
// Observation will be notified of all individual events
return StatementObservation(
transactionObservation: self,
trackingEvents: .all)
default:
// We'll execute a complex statement with side effects performed by
// an SQL trigger or a foreign key action. Eventual database events
// may not all have the same kind: we need to filter them before
// notifying interested observations.
//
// For example, if DELETE FROM T1 generates deletions in T1 and T2
// by the mean of a foreign key action, then when one only observes
// deletions in T1, one must not be notified of deletions in T2:
let observedEventKinds = authorizerEventKinds.filter(observer.observes)
if observedEventKinds.isEmpty {
// observation is not interested
return nil
}
// Observation will only be notified of individual events
// it is interested into.
return StatementObservation(
transactionObservation: self,
trackingEvents: .matching(
observedEventKinds: observedEventKinds,
authorizerEventKinds: authorizerEventKinds))
}
}
#if SQLITE_ENABLE_PREUPDATE_HOOK
+2 -2
View File
@@ -5,8 +5,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
@@ -79,7 +79,7 @@ let observation = DatabaseRegionObservation(
`DatabaseRegionObservation` will not notify impactful transactions whenever the database is modified in an undetectable way:
- Changes performed by external database connections.
- Changes performed by SQLite statements that are not compiled and executed by GRDB.
- Changes performed by SQLite statements that are not a `DELETE`, `INSERT` or `UPDATE` statement compiled and executed by GRDB.
- Changes to the database schema, changes to internal system tables such as `sqlite_master`.
- Changes to [`WITHOUT ROWID`](https://www.sqlite.org/withoutrowid.html) tables.
@@ -97,7 +97,7 @@ do {
**Transaction observers can choose the database changes they are interested in.**
The ``observes(eventsOfKind:)`` method filters events that are notified to ``databaseDidChange(with:)``. It is the most efficient and recommended change filtering technique, because it is only called once before a database query is executed, and can completely disable change tracking:
By default, the ``observes(eventsOfKind:)`` method filters events that are notified to ``databaseDidChange(with:)``. It is the most efficient and recommended change filtering technique, because it is only called once before a database query is executed, and can completely disable change tracking:
```swift
// Calls `observes(eventsOfKind:)` once.
@@ -125,6 +125,8 @@ class PlayerObserver: TransactionObserver {
When the `observes(eventsOfKind:)` method returns false for all event kinds, the observer is still notified of transactions.
The filtering performed by ``observes(eventsOfKind:)`` makes a transaction observer unaware of changes performed by SQLite statements that are not a `DELETE`, `INSERT` or `UPDATE` statement compiled and executed by GRDB. You can lift this limitation with the ``TransactionObserver/databaseEventObservationStrategy``.
## Observation Extent
**You can specify how long an observer is notified of database changes and transactions.**
@@ -232,7 +234,7 @@ The changes and transactions that are not automatically notified to transaction
- Read-only transactions.
- Changes and transactions performed by external database connections.
- Changes performed by SQLite statements that are not both compiled and executed through GRDB APIs.
- Changes performed by SQLite statements that are not a `DELETE`, `INSERT` or `UPDATE` statement compiled and executed by GRDB (this limitation can be lifted, in your custom `TransactionObserver` type, with ``TransactionObserver/databaseEventObservationStrategy``).
- Changes to the database schema, changes to internal system tables such as `sqlite_master`.
- Changes to [`WITHOUT ROWID`](https://www.sqlite.org/withoutrowid.html) tables.
- The deletion of duplicate rows triggered by [`ON CONFLICT REPLACE`](https://www.sqlite.org/lang_conflict.html) clauses (this last exception might change in a future release of SQLite).
@@ -265,8 +267,10 @@ try dbQueue.write { db in
### Filtering Database Changes
- ``databaseEventObservationStrategy``
- ``observes(eventsOfKind:)``
- ``DatabaseEventKind``
- ``DatabaseEventObservationStrategy``
### Handling Database Changes
@@ -228,7 +228,7 @@ This ``tracking(region:_:fetch:)`` method lets you entirely separate the **obser
`ValueObservation` will not fetch and notify a fresh value whenever the database is modified in an undetectable way:
- Changes performed by external database connections.
- Changes performed by SQLite statements that are not compiled and executed by GRDB.
- Changes performed by SQLite statements that are not a `DELETE`, `INSERT` or `UPDATE` statement compiled and executed by GRDB.
- Changes to the database schema, changes to internal system tables such as `sqlite_master`.
- Changes to [`WITHOUT ROWID`](https://www.sqlite.org/withoutrowid.html) tables.
+2 -2
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
+2 -2
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
+2 -2
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
+2 -2
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
+2 -2
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
+2 -2
View File
@@ -5,8 +5,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
+2 -2
View File
@@ -5,8 +5,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
+2 -2
View File
@@ -5,8 +5,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
+2 -2
View File
@@ -5,8 +5,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
+38 -37
View File
@@ -111,7 +111,7 @@ public struct DatabaseMigrator: Sendable {
/// See also ``hasSchemaChanges(_:)``.
public var eraseDatabaseOnSchemaChange = false
private var defersForeignKeyChecks = true
private var _migrations: [Migration] = []
private var _migrations: OrderedDictionary<String, Migration> = [:]
/// A new migrator.
public init() {
@@ -349,10 +349,10 @@ public struct DatabaseMigrator: Sendable {
/// - parameter writer: A DatabaseWriter.
/// - throws: The error thrown by the first failed migration.
public func migrate(_ writer: any DatabaseWriter) throws {
guard let lastMigration = _migrations.last else {
guard let lastMigrationIdentifier = _migrations.keys.last else {
return
}
try migrate(writer, upTo: lastMigration.identifier)
try migrate(writer, upTo: lastMigrationIdentifier)
}
/// Runs all unapplied migrations, in the same order as they
@@ -387,8 +387,8 @@ public struct DatabaseMigrator: Sendable {
writer.asyncBarrierWriteWithoutTransaction { dbResult in
do {
let db = try dbResult.get()
if let lastMigration = _migrations.last {
try migrate(db, upTo: lastMigration.identifier)
if let lastMigrationIdentifier = _migrations.keys.last {
try migrate(db, upTo: lastMigrationIdentifier)
}
completion(.success(db))
} catch {
@@ -426,14 +426,13 @@ public struct DatabaseMigrator: Sendable {
///
public func hasSchemaChanges(_ db: Database) throws -> Bool {
let appliedIdentifiers = try appliedIdentifiers(db)
let knownIdentifiers = Set(_migrations.map { $0.identifier })
let knownIdentifiers = Set(_migrations.keys)
if !appliedIdentifiers.isSubset(of: knownIdentifiers) {
// Database contains an unknown migration
return true
}
if let lastAppliedIdentifier = _migrations
.map(\.identifier)
if let lastAppliedIdentifier = _migrations.keys
.last(where: { appliedIdentifiers.contains($0) })
{
// Some migrations were already applied.
@@ -492,7 +491,7 @@ public struct DatabaseMigrator: Sendable {
/// The list of registered migration identifiers, in the same order as they
/// have been registered.
public var migrations: [String] {
_migrations.map(\.identifier)
_migrations.keys
}
/// Returns the identifiers of registered and applied migrations, in the
@@ -502,7 +501,7 @@ public struct DatabaseMigrator: Sendable {
/// - throws: A ``DatabaseError`` whenever an SQLite error occurs.
public func appliedMigrations(_ db: Database) throws -> [String] {
let appliedIdentifiers = try self.appliedIdentifiers(db)
return _migrations.map { $0.identifier }.filter { appliedIdentifiers.contains($0) }
return _migrations.keys.filter { appliedIdentifiers.contains($0) }
}
/// Returns the applied migration identifiers, even unregistered ones.
@@ -531,7 +530,7 @@ public struct DatabaseMigrator: Sendable {
/// - throws: A ``DatabaseError`` whenever an SQLite error occurs.
public func completedMigrations(_ db: Database) throws -> [String] {
let appliedIdentifiers = try appliedMigrations(db)
let knownIdentifiers = _migrations.map(\.identifier)
let knownIdentifiers = _migrations.keys
return zip(appliedIdentifiers, knownIdentifiers)
.prefix(while: { (applied: String, known: String) in applied == known })
.map { $0.0 }
@@ -543,7 +542,7 @@ public struct DatabaseMigrator: Sendable {
/// - parameter db: A database connection.
/// - throws: A ``DatabaseError`` whenever an SQLite error occurs.
public func hasCompletedMigrations(_ db: Database) throws -> Bool {
try completedMigrations(db).last == _migrations.last?.identifier
try completedMigrations(db).last == _migrations.keys.last
}
/// A boolean value indicating whether the database refers to
@@ -556,7 +555,7 @@ public struct DatabaseMigrator: Sendable {
/// - throws: A ``DatabaseError`` whenever an SQLite error occurs.
public func hasBeenSuperseded(_ db: Database) throws -> Bool {
let appliedIdentifiers = try self.appliedIdentifiers(db)
let knownIdentifiers = _migrations.map(\.identifier)
let knownIdentifiers = _migrations.keys
return appliedIdentifiers.contains { !knownIdentifiers.contains($0) }
}
@@ -574,41 +573,43 @@ public struct DatabaseMigrator: Sendable {
private mutating func registerMigration(_ migration: Migration) {
GRDBPrecondition(
!_migrations.map({ $0.identifier }).contains(migration.identifier),
_migrations[migration.identifier] == nil,
"already registered migration: \(String(reflecting: migration.identifier))")
_migrations.append(migration)
_migrations.appendValue(migration, forKey: migration.identifier)
}
/// Returns unapplied migration executions
private func unappliedExecutions(upTo targetIdentifier: String, appliedIdentifiers: Set<String>) -> [Execution] {
var expectedMigrations: [Migration] = []
for migration in _migrations {
expectedMigrations.append(migration)
if migration.identifier == targetIdentifier {
var executions: [Execution] = []
var foundTarget = false
for (identifier, migration) in _migrations {
if appliedIdentifiers.contains(identifier) {
if !migration.mergedIdentifiers.isDisjoint(with: appliedIdentifiers) {
// Migration is applied, but we have some merged identifiers to delete
executions.append(Execution(migration: migration, mode: .deleteMergedIdentifiers))
}
} else {
// Migration is not applied yet.
let appliedMergedIdentifiers = migration.mergedIdentifiers.intersection(appliedIdentifiers)
executions.append(Execution(
migration: migration,
mode: .run(mergedIdentifiers: appliedMergedIdentifiers)
))
}
if identifier == targetIdentifier {
foundTarget = true
break
}
}
// targetIdentifier must refer to a registered migration
GRDBPrecondition(
expectedMigrations.last?.identifier == targetIdentifier,
foundTarget,
"undefined migration: \(String(reflecting: targetIdentifier))")
return expectedMigrations.compactMap { migration in
if appliedIdentifiers.contains(migration.identifier) {
if migration.mergedIdentifiers.isDisjoint(with: appliedIdentifiers) {
// Nothing to do
return nil
} else {
// Migration is applied, but we have some merged identifiers to delete
return Execution(migration: migration, mode: .deleteMergedIdentifiers)
}
} else {
// Migration is not applied yet.
let appliedMergedIdentifiers = migration.mergedIdentifiers.intersection(appliedIdentifiers)
return Execution(migration: migration, mode: .run(mergedIdentifiers: appliedMergedIdentifiers))
}
}
return executions
}
private func runMigrations(_ db: Database, upTo targetIdentifier: String) throws {
@@ -616,9 +617,9 @@ public struct DatabaseMigrator: Sendable {
// Subsequent migration must not be applied
let appliedMigrations = try self.appliedMigrations(db) // Only known ids
if let targetIndex = _migrations.firstIndex(where: { $0.identifier == targetIdentifier }),
if let targetIndex = _migrations.keys.firstIndex(of: targetIdentifier),
let lastAppliedMigration = appliedMigrations.last,
let lastAppliedIndex = _migrations.firstIndex(where: { $0.identifier == lastAppliedMigration }),
let lastAppliedIndex = _migrations.keys.firstIndex(of: lastAppliedMigration),
targetIndex < lastAppliedIndex
{
fatalError("database is already migrated beyond migration \(String(reflecting: targetIdentifier))")
@@ -1872,6 +1872,18 @@ public struct ColumnAssignment {
}
}
/// A strategy for updating database rows in case of upsert conflict.
public struct UpsertUpdateStrategy: OptionSet, Sendable {
public let rawValue: Int
public init(rawValue: Int) { self.rawValue = rawValue }
/// Only the specified columns are updated in the existing row.
public static let noColumnUnlessSpecified = Self([])
/// All columns are updated in the existing row, unless specified otherwise.
public static let allColumns = Self(rawValue: 1 << 0)
}
extension ColumnExpression {
/// Returns an assignment of this column to an SQL expression.
///
+2 -2
View File
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
+16 -13
View File
@@ -42,6 +42,7 @@ final class DAO<Record: MutablePersistableRecord> {
func upsertStatement(
_ db: Database,
onConflict conflictTargetColumns: [String],
updating strategy: UpsertUpdateStrategy,
doUpdate assignments: ((_ excluded: TableAlias<Record>) -> [ColumnAssignment])?,
updateCondition: ((
_ existing: TableAlias<Record>,
@@ -78,20 +79,22 @@ final class DAO<Record: MutablePersistableRecord> {
sql += " DO UPDATE SET "
let excluded = TableAlias<Record>(name: "excluded")
var assignments = assignments?(excluded) ?? []
let lowercaseExcludedColumns = Set(primaryKey.columns.map { $0.lowercased() })
.union(conflictTargetColumns.map { $0.lowercased() })
for column in persistenceContainer.columns {
let lowercasedColumn = column.lowercased()
if lowercaseExcludedColumns.contains(lowercasedColumn) {
// excluded (primary key or conflict target)
continue
if strategy.contains(.allColumns) {
let lowercaseExcludedColumns = Set(primaryKey.columns.map { $0.lowercased() })
.union(conflictTargetColumns.map { $0.lowercased() })
for column in persistenceContainer.columns {
let lowercasedColumn = column.lowercased()
if lowercaseExcludedColumns.contains(lowercasedColumn) {
// excluded (primary key or conflict target)
continue
}
if assignments.contains(where: { $0.columnName.lowercased() == lowercasedColumn }) {
// already updated from the `assignments` argument
continue
}
// overwrite
assignments.append(Column(column).set(to: excluded[column]))
}
if assignments.contains(where: { $0.columnName.lowercased() == lowercasedColumn }) {
// already updated from the `assignments` argument
continue
}
// overwrite
assignments.append(Column(column).set(to: excluded[column]))
}
let context = SQLGenerationContext(db)
let updateSQL = try assignments
+282 -125
View File
@@ -73,55 +73,52 @@ extension MutablePersistableRecord {
/// let upsertedPlayer = try player.upsertAndFetch(db)
/// ```
///
/// With `conflictTarget` and `assignments` arguments, you can further
/// control the upsert behavior. Make sure you check
/// With the `conflictTarget`, `strategy`, and `assignments` arguments,
/// you can further control the upsert behavior. Make sure you check
/// <https://www.sqlite.org/lang_UPSERT.html> for detailed information.
///
/// The conflict target are the columns of the uniqueness constraint
/// (primary key or unique index) that triggers the upsert. If empty, all
/// uniqueness constraint are considered.
///
/// The assignments describe how to update columns in case of violation of
/// a uniqueness constraint. In the next example, we insert the new
/// vocabulary word "jovial" if that word is not already in the dictionary.
/// If the word is already in the dictionary, it increments the counter,
/// does not overwrite the tainted flag, and overwrites the
/// remaining columns:
/// The strategy controls which columns are updated in case of
/// uniqueness constraint violation: all columns unless specified (the
/// default), or only the specified columns.
///
/// For example, compare:
///
/// ```swift
/// // CREATE TABLE vocabulary(
/// // word TEXT PRIMARY KEY,
/// // kind TEXT NOT NULL,
/// // isTainted BOOLEAN DEFAULT 0,
/// // count INT DEFAULT 1))
/// struct Vocabulary: Encodable, MutablePersistableRecord {
/// var word: String
/// var kind: String
/// var isTainted: Bool
/// // In case of conflict, updates all columns, including columns added
/// // in a future migration.
/// let upserted = try player.upsertAndFetch(db)
///
/// // In case of conflict, updates all columns, including future ones,
/// // but 'score'.
/// let upserted = try player.upsertAndFetch(db) { _ in
/// [Column("score").noOverwrite]
/// }
///
/// // INSERT INTO vocabulary(word, kind, isTainted)
/// // VALUES('jovial', 'adjective', 0)
/// // ON CONFLICT(word) DO UPDATE SET \
/// // count = count + 1,
/// // kind = excluded.kind
/// // RETURNING *
/// var vocabulary = Vocabulary(word: "jovial", kind: "adjective", isTainted: false)
/// let upserted = try vocabulary.upsertAndFetch(
/// db,
/// onConflict: ["word"],
/// doUpdate: { _ in
/// [Column("count") += 1,
/// Column("isTainted").noOverwrite]
/// })
/// // In case of conflict, do not update any column.
/// let upserted = try player.upsertAndFetch(db, updating: .noColumnUnlessSpecified)
///
/// // In case of conflict, only update 'name'.
/// let upserted = try player.upsertAndFetch(db, updating: .noColumnUnlessSpecified) { excluded in
/// [Column("name").set(to: excluded[Column("name")])]
/// }
/// ```
///
/// - parameter db: A database connection.
/// - parameter conflictTarget: The conflict target.
/// - parameter strategy: The default strategy, `.allColumns`, updates
/// all columns in case of conflict, unless specified otherwise in the
/// `assignments` parameter. Use `.noColumnUnlessSpecified` to only
/// update the columns assigned in the `assignments` parameter.
/// - parameter assignments: An optional function that returns an array of
/// ``ColumnAssignment``. In case of violation of a uniqueness
/// constraints, these assignments are performed, and remaining columns
/// are overwritten by inserted values.
/// constraint, these assignments are performed, and remaining columns
/// are overwritten by inserted values, or not, depending on the
/// chosen `strategy`. To use the value that would have been inserted
/// had the constraint not failed, use the `excluded` parameter.
/// - returns: The upserted record.
/// - throws: A ``DatabaseError`` whenever an SQLite error occurs, or any
/// error thrown by the persistence callbacks defined by the record type.
@@ -129,26 +126,36 @@ extension MutablePersistableRecord {
public mutating func upsertAndFetch(
_ db: Database,
onConflict conflictTarget: [String] = [],
updating strategy: UpsertUpdateStrategy = .allColumns,
doUpdate assignments: ((_ excluded: TableAlias<Self>) -> [ColumnAssignment])? = nil)
throws -> Self
where Self: FetchableRecord
{
try upsertAndFetch(db, as: Self.self, onConflict: conflictTarget, doUpdate: assignments)
try upsertAndFetch(
db, as: Self.self, onConflict: conflictTarget,
updating: strategy, doUpdate: assignments)
}
/// Executes an `INSERT ON CONFLICT DO UPDATE RETURNING` statement, and
/// returns the upserted record.
///
/// See `upsertAndFetch(_:onConflict:doUpdate:)` for more information about
/// the `conflictTarget` and `assignments` parameters.
/// See ``upsertAndFetch(_:onConflict:updating:doUpdate:)`` for more
/// information about the `conflictTarget`, `strategy`, and
/// `assignments` parameters.
///
/// - parameter db: A database connection.
/// - parameter returnedType: The type of the returned record.
/// - parameter conflictTarget: The conflict target.
/// - parameter strategy: The default strategy, `.allColumns`, updates
/// all columns in case of conflict, unless specified otherwise in the
/// `assignments` parameter. Use `.noColumnUnlessSpecified` to only
/// update the columns assigned in the `assignments` parameter.
/// - parameter assignments: An optional function that returns an array of
/// ``ColumnAssignment``. In case of violation of a uniqueness
/// constraints, these assignments are performed, and remaining columns
/// are overwritten by inserted values.
/// constraint, these assignments are performed, and remaining columns
/// are overwritten by inserted values, or not, depending on the
/// chosen `strategy`. To use the value that would have been inserted
/// had the constraint not failed, use the `excluded` parameter.
/// - returns: A record of type `returnedType`.
/// - throws: A ``DatabaseError`` whenever an SQLite error occurs, or any
/// error thrown by the persistence callbacks defined by the record type.
@@ -157,6 +164,7 @@ extension MutablePersistableRecord {
_ db: Database,
as returnedType: T.Type,
onConflict conflictTarget: [String] = [],
updating strategy: UpsertUpdateStrategy = .allColumns,
doUpdate assignments: ((_ excluded: TableAlias<Self>) -> [ColumnAssignment])? = nil)
throws -> T
{
@@ -166,7 +174,7 @@ extension MutablePersistableRecord {
try aroundSave(db) {
success = try upsertAndFetchWithCallbacks(
db, onConflict: conflictTarget,
doUpdate: assignments,
updating: strategy, doUpdate: assignments,
selection: T.databaseSelection,
decode: { try T(row: $0) })
return PersistenceSuccess(success!.inserted)
@@ -250,55 +258,52 @@ extension MutablePersistableRecord {
/// let upsertedPlayer = try player.upsertAndFetch(db)
/// ```
///
/// With `conflictTarget` and `assignments` arguments, you can further
/// control the upsert behavior. Make sure you check
/// With the `conflictTarget`, `strategy`, and `assignments` arguments,
/// you can further control the upsert behavior. Make sure you check
/// <https://www.sqlite.org/lang_UPSERT.html> for detailed information.
///
/// The conflict target are the columns of the uniqueness constraint
/// (primary key or unique index) that triggers the upsert. If empty, all
/// uniqueness constraint are considered.
///
/// The assignments describe how to update columns in case of violation of
/// a uniqueness constraint. In the next example, we insert the new
/// vocabulary word "jovial" if that word is not already in the dictionary.
/// If the word is already in the dictionary, it increments the counter,
/// does not overwrite the tainted flag, and overwrites the
/// remaining columns:
/// The strategy controls which columns are updated in case of
/// uniqueness constraint violation: all columns unless specified (the
/// default), or only the specified columns.
///
/// For example, compare:
///
/// ```swift
/// // CREATE TABLE vocabulary(
/// // word TEXT PRIMARY KEY,
/// // kind TEXT NOT NULL,
/// // isTainted BOOLEAN DEFAULT 0,
/// // count INT DEFAULT 1))
/// struct Vocabulary: Encodable, MutablePersistableRecord {
/// var word: String
/// var kind: String
/// var isTainted: Bool
/// // In case of conflict, updates all columns, including columns added
/// // in a future migration.
/// let upserted = try player.upsertAndFetch(db)
///
/// // In case of conflict, updates all columns, including future ones,
/// // but 'score'.
/// let upserted = try player.upsertAndFetch(db) { _ in
/// [Column("score").noOverwrite]
/// }
///
/// // INSERT INTO vocabulary(word, kind, isTainted)
/// // VALUES('jovial', 'adjective', 0)
/// // ON CONFLICT(word) DO UPDATE SET \
/// // count = count + 1,
/// // kind = excluded.kind
/// // RETURNING *
/// var vocabulary = Vocabulary(word: "jovial", kind: "adjective", isTainted: false)
/// let upserted = try vocabulary.upsertAndFetch(
/// db,
/// onConflict: ["word"],
/// doUpdate: { _ in
/// [Column("count") += 1,
/// Column("isTainted").noOverwrite]
/// })
/// // In case of conflict, do not update any column.
/// let upserted = try player.upsertAndFetch(db, updating: .noColumnUnlessSpecified)
///
/// // In case of conflict, only update 'name'.
/// let upserted = try player.upsertAndFetch(db, updating: .noColumnUnlessSpecified) { excluded in
/// [Column("name").set(to: excluded[Column("name")])]
/// }
/// ```
///
/// - parameter db: A database connection.
/// - parameter conflictTarget: The conflict target.
/// - parameter strategy: The default strategy, `.allColumns`, updates
/// all columns in case of conflict, unless specified otherwise in the
/// `assignments` parameter. Use `.noColumnUnlessSpecified` to only
/// update the columns assigned in the `assignments` parameter.
/// - parameter assignments: An optional function that returns an array of
/// ``ColumnAssignment``. In case of violation of a uniqueness
/// constraints, these assignments are performed, and remaining columns
/// are overwritten by inserted values.
/// constraint, these assignments are performed, and remaining columns
/// are overwritten by inserted values, or not, depending on the
/// chosen `strategy`. To use the value that would have been inserted
/// had the constraint not failed, use the `excluded` parameter.
/// - returns: The upserted record.
/// - throws: A ``DatabaseError`` whenever an SQLite error occurs, or any
/// error thrown by the persistence callbacks defined by the record type.
@@ -307,26 +312,36 @@ extension MutablePersistableRecord {
public mutating func upsertAndFetch(
_ db: Database,
onConflict conflictTarget: [String] = [],
updating strategy: UpsertUpdateStrategy = .allColumns,
doUpdate assignments: ((_ excluded: TableAlias<Self>) -> [ColumnAssignment])? = nil)
throws -> Self
where Self: FetchableRecord
{
try upsertAndFetch(db, as: Self.self, onConflict: conflictTarget, doUpdate: assignments)
try upsertAndFetch(
db, as: Self.self, onConflict: conflictTarget,
updating: strategy, doUpdate: assignments)
}
/// Executes an `INSERT ON CONFLICT DO UPDATE RETURNING` statement, and
/// returns the upserted record.
///
/// See ``upsertAndFetch(_:onConflict:doUpdate:)`` for more information
/// about the `conflictTarget` and `assignments` parameters.
/// See ``upsertAndFetch(_:onConflict:updating:doUpdate:)`` for more
/// information about the `conflictTarget`, `strategy`, and
/// `assignments` parameters.
///
/// - parameter db: A database connection.
/// - parameter returnedType: The type of the returned record.
/// - parameter conflictTarget: The conflict target.
/// - parameter strategy: The default strategy, `.allColumns`, updates
/// all columns in case of conflict, unless specified otherwise in the
/// `assignments` parameter. Use `.noColumnUnlessSpecified` to only
/// update the columns assigned in the `assignments` parameter.
/// - parameter assignments: An optional function that returns an array of
/// ``ColumnAssignment``. In case of violation of a uniqueness
/// constraints, these assignments are performed, and remaining columns
/// are overwritten by inserted values.
/// constraint, these assignments are performed, and remaining columns
/// are overwritten by inserted values, or not, depending on the
/// chosen `strategy`. To use the value that would have been inserted
/// had the constraint not failed, use the `excluded` parameter.
/// - returns: A record of type `returnedType`.
/// - throws: A ``DatabaseError`` whenever an SQLite error occurs, or any
/// error thrown by the persistence callbacks defined by the record type.
@@ -336,6 +351,7 @@ extension MutablePersistableRecord {
_ db: Database,
as returnedType: T.Type,
onConflict conflictTarget: [String] = [],
updating strategy: UpsertUpdateStrategy = .allColumns,
doUpdate assignments: ((_ excluded: TableAlias<Self>) -> [ColumnAssignment])? = nil)
throws -> T
{
@@ -345,7 +361,7 @@ extension MutablePersistableRecord {
try aroundSave(db) {
success = try upsertAndFetchWithCallbacks(
db, onConflict: conflictTarget,
doUpdate: assignments,
updating: strategy, doUpdate: assignments,
selection: T.databaseSelection,
decode: { try T(row: $0) })
return PersistenceSuccess(success!.inserted)
@@ -367,18 +383,17 @@ extension MutablePersistableRecord {
mutating func upsertWithCallbacks(_ db: Database)
throws -> InsertionSuccess
{
let (inserted, _) = try upsertAndFetchWithCallbacks(
try upsertWithCallbacks(
db, onConflict: [],
doUpdate: nil,
selection: [],
decode: { _ in /* Nothing to decode */ })
return inserted
updating: .allColumns,
doUpdate: nil)
}
@inlinable // allow specialization so that empty callbacks are removed
mutating func upsertAndFetchWithCallbacks<T>(
_ db: Database,
onConflict conflictTarget: [String],
updating strategy: UpsertUpdateStrategy,
doUpdate assignments: ((_ excluded: TableAlias<Self>) -> [ColumnAssignment])?,
selection: [any SQLSelectable],
decode: (Row) throws -> T)
@@ -390,7 +405,7 @@ extension MutablePersistableRecord {
try aroundInsert(db) {
success = try upsertAndFetchWithoutCallbacks(
db, onConflict: conflictTarget,
doUpdate: assignments,
updating: strategy, doUpdate: assignments,
selection: selection,
decode: decode)
return success!.inserted
@@ -403,63 +418,205 @@ extension MutablePersistableRecord {
return success
}
@inlinable // allow specialization so that empty callbacks are removed
mutating func upsertWithCallbacks(
_ db: Database,
onConflict conflictTarget: [String],
updating strategy: UpsertUpdateStrategy,
doUpdate assignments: ((_ excluded: TableAlias<Self>) -> [ColumnAssignment])?
) throws -> InsertionSuccess {
try willInsert(db)
var inserted: InsertionSuccess?
try aroundInsert(db) {
inserted = try upsertWithoutCallbacks(
db, onConflict: conflictTarget,
updating: strategy, doUpdate: assignments)
return inserted!
}
guard let inserted else {
try persistenceCallbackMisuse("aroundInsert")
}
didInsert(inserted)
return inserted
}
/// Executes an `INSERT` statement, and DOES NOT run
/// insertion callbacks.
@usableFromInline
func upsertWithoutCallbacks(
_ db: Database,
onConflict conflictTarget: [String],
updating strategy: UpsertUpdateStrategy,
doUpdate assignments: ((_ excluded: TableAlias<Self>) -> [ColumnAssignment])?)
throws -> InsertionSuccess
{
let primaryKey = try db.primaryKey(Self.databaseTableName)
if primaryKey.tableHasRowID {
let dao = try DAO(db, self)
let statement = try dao.upsertStatement(
db, onConflict: conflictTarget,
updating: strategy,
doUpdate: assignments,
updateCondition: nil,
returning: [Column.rowID])
let cursor = try Row.fetchCursor(statement)
// Keep cursor alive until we can process the fetched row
let rowid: Int64 = try withExtendedLifetime(cursor) { cursor in
guard let row = try cursor.next() else {
throw DatabaseError(message: "Insertion failed")
}
let rowid: Int64 = row[0]
// Now that we have fetched the values we need, we could stop
// there. But let's make sure we fully consume the cursor
// anyway, until SQLITE_DONE. This is necessary, for example,
// for upserts in tables that are synchronized with an
// FTS5 table.
// See <https://github.com/groue/GRDB.swift/issues/1390>
while try cursor.next() != nil { }
return rowid
}
// Update the persistenceContainer with the inserted rowid.
// This allows the Record class to set its `hasDatabaseChanges` property
// to false in its `aroundInsert` callback.
var persistenceContainer = dao.persistenceContainer
let rowIDColumn = dao.primaryKey.rowIDColumn
if let rowIDColumn {
persistenceContainer[rowIDColumn] = rowid
}
let inserted = InsertionSuccess(
rowID: rowid,
rowIDColumn: rowIDColumn,
persistenceContainer: persistenceContainer)
return inserted
} else {
let dao = try DAO(db, self)
let statement = try dao.upsertStatement(
db, onConflict: conflictTarget,
updating: strategy,
doUpdate: assignments,
updateCondition: nil,
returning: [])
let cursor = try Row.fetchCursor(statement)
// Let's make sure we fully consume the cursor, until SQLITE_DONE.
// This is necessary, for example, for upserts in tables that
// are synchronized with an FTS5 table.
// See <https://github.com/groue/GRDB.swift/issues/1390>
while try cursor.next() != nil { }
let inserted = InsertionSuccess(
rowID: 0, // Meaningless in WITHOUT ROWID tables.
rowIDColumn: nil,
persistenceContainer: dao.persistenceContainer)
return inserted
}
}
/// Executes an `INSERT RETURNING` statement, and DOES NOT run
/// insertion callbacks.
@usableFromInline
func upsertAndFetchWithoutCallbacks<T>(
_ db: Database,
onConflict conflictTarget: [String],
updating strategy: UpsertUpdateStrategy,
doUpdate assignments: ((_ excluded: TableAlias<Self>) -> [ColumnAssignment])?,
selection: [any SQLSelectable],
decode: (Row) throws -> T)
throws -> (InsertionSuccess, T)
{
// Append the rowID to the returned columns
let selection = selection + [Column.rowID]
let primaryKey = try db.primaryKey(Self.databaseTableName)
let dao = try DAO(db, self)
let statement = try dao.upsertStatement(
db,
onConflict: conflictTarget,
doUpdate: assignments,
updateCondition: nil,
returning: selection)
let cursor = try Row.fetchCursor(statement)
// Keep cursor alive until we can process the fetched row
let (rowid, returned): (Int64, T) = try withExtendedLifetime(cursor) { cursor in
guard let row = try cursor.next() else {
throw DatabaseError(message: "Insertion failed")
if primaryKey.tableHasRowID {
// Append the rowID to the returned columns
let selection = selection + [Column.rowID]
let dao = try DAO(db, self)
let statement = try dao.upsertStatement(
db, onConflict: conflictTarget,
updating: strategy,
doUpdate: assignments,
updateCondition: nil,
returning: selection)
let cursor = try Row.fetchCursor(statement)
// Keep cursor alive until we can process the fetched row
let (rowid, returned): (Int64, T) = try withExtendedLifetime(cursor) { cursor in
guard let row = try cursor.next() else {
throw DatabaseError(message: "Insertion failed")
}
// Rowid is the last column
let rowid: Int64 = row[row.count - 1]
let returned = try decode(row)
// Now that we have fetched the values we need, we could stop
// there. But let's make sure we fully consume the cursor
// anyway, until SQLITE_DONE. This is necessary, for example,
// for upserts in tables that are synchronized with an
// FTS5 table.
// See <https://github.com/groue/GRDB.swift/issues/1390>
while try cursor.next() != nil { }
return (rowid, returned)
}
// Rowid is the last column
let rowid: Int64 = row[row.count - 1]
let returned = try decode(row)
// Update the persistenceContainer with the inserted rowid.
// This allows the Record class to set its `hasDatabaseChanges` property
// to false in its `aroundInsert` callback.
var persistenceContainer = dao.persistenceContainer
let rowIDColumn = dao.primaryKey.rowIDColumn
if let rowIDColumn {
persistenceContainer[rowIDColumn] = rowid
}
// Now that we have fetched the values we need, we could stop
// there. But let's make sure we fully consume the cursor
// anyway, until SQLITE_DONE. This is necessary, for example,
// for upserts in tables that are synchronized with an
// FTS5 table.
// See <https://github.com/groue/GRDB.swift/issues/1390>
while try cursor.next() != nil { }
let inserted = InsertionSuccess(
rowID: rowid,
rowIDColumn: rowIDColumn,
persistenceContainer: persistenceContainer)
return (inserted, returned)
} else {
let dao = try DAO(db, self)
let statement = try dao.upsertStatement(
db, onConflict: conflictTarget,
updating: strategy,
doUpdate: assignments,
updateCondition: nil,
returning: selection)
let cursor = try Row.fetchCursor(statement)
return (rowid, returned)
// Keep cursor alive until we can process the fetched row
let returned: T = try withExtendedLifetime(cursor) { cursor in
guard let row = try cursor.next() else {
throw DatabaseError(message: "Insertion failed")
}
let returned = try decode(row)
// Now that we have fetched the values we need, we could stop
// there. But let's make sure we fully consume the cursor
// anyway, until SQLITE_DONE. This is necessary, for example,
// for upserts in tables that are synchronized with an
// FTS5 table.
// See <https://github.com/groue/GRDB.swift/issues/1390>
while try cursor.next() != nil { }
return returned
}
let inserted = InsertionSuccess(
rowID: 0, // Meaningless in WITHOUT ROWID tables.
rowIDColumn: nil,
persistenceContainer: dao.persistenceContainer)
return (inserted, returned)
}
// Update the persistenceContainer with the inserted rowid.
// This allows the Record class to set its `hasDatabaseChanges` property
// to false in its `aroundInsert` callback.
var persistenceContainer = dao.persistenceContainer
let rowIDColumn = dao.primaryKey.rowIDColumn
if let rowIDColumn {
persistenceContainer[rowIDColumn] = rowid
}
let inserted = InsertionSuccess(
rowID: rowid,
rowIDColumn: rowIDColumn,
persistenceContainer: persistenceContainer)
return (inserted, returned)
}
}
+3 -2
View File
@@ -62,8 +62,9 @@
/// - ``insertAndFetch(_:onConflict:as:)``
/// - ``insertAndFetch(_:onConflict:selection:fetch:)``
/// - ``insertAndFetch(_:onConflict:fetch:select:)``
/// - ``upsertAndFetch(_:onConflict:doUpdate:)``
/// - ``upsertAndFetch(_:as:onConflict:doUpdate:)``
/// - ``upsertAndFetch(_:onConflict:updating:doUpdate:)``
/// - ``upsertAndFetch(_:as:onConflict:updating:doUpdate:)``
/// - ``UpsertUpdateStrategy``
///
/// ### Updating a Record
///
+123 -84
View File
@@ -73,55 +73,52 @@ extension PersistableRecord {
/// let upsertedPlayer = try player.upsertAndFetch(db)
/// ```
///
/// With `conflictTarget` and `assignments` arguments, you can further
/// control the upsert behavior. Make sure you check
/// With the `conflictTarget`, `strategy`, and `assignments` arguments,
/// you can further control the upsert behavior. Make sure you check
/// <https://www.sqlite.org/lang_UPSERT.html> for detailed information.
///
/// The conflict target are the columns of the uniqueness constraint
/// (primary key or unique index) that triggers the upsert. If empty, all
/// uniqueness constraint are considered.
///
/// The assignments describe how to update columns in case of violation of
/// a uniqueness constraint. In the next example, we insert the new
/// vocabulary word "jovial" if that word is not already in the dictionary.
/// If the word is already in the dictionary, it increments the counter,
/// does not overwrite the tainted flag, and overwrites the
/// remaining columns:
/// The strategy controls which columns are updated in case of
/// uniqueness constraint violation: all columns unless specified (the
/// default), or only the specified columns.
///
/// For example, compare:
///
/// ```swift
/// // CREATE TABLE vocabulary(
/// // word TEXT PRIMARY KEY,
/// // kind TEXT NOT NULL,
/// // isTainted BOOLEAN DEFAULT 0,
/// // count INT DEFAULT 1))
/// struct Vocabulary: Encodable, PersistableRecord {
/// var word: String
/// var kind: String
/// var isTainted: Bool
/// // In case of conflict, updates all columns, including columns added
/// // in a future migration.
/// let upserted = try player.upsertAndFetch(db)
///
/// // In case of conflict, updates all columns, including future ones,
/// // but 'score'.
/// let upserted = try player.upsertAndFetch(db) { _ in
/// [Column("score").noOverwrite]
/// }
///
/// // INSERT INTO vocabulary(word, kind, isTainted)
/// // VALUES('jovial', 'adjective', 0)
/// // ON CONFLICT(word) DO UPDATE SET \
/// // count = count + 1,
/// // kind = excluded.kind
/// // RETURNING *
/// let vocabulary = Vocabulary(word: "jovial", kind: "adjective", isTainted: false)
/// let upserted = try vocabulary.upsertAndFetch(
/// db,
/// onConflict: ["word"],
/// doUpdate: { _ in
/// [Column("count") += 1,
/// Column("isTainted").noOverwrite]
/// })
/// // In case of conflict, do not update any column.
/// let upserted = try player.upsertAndFetch(db, updating: .noColumnUnlessSpecified)
///
/// // In case of conflict, only update 'name'.
/// let upserted = try player.upsertAndFetch(db, updating: .noColumnUnlessSpecified) { excluded in
/// [Column("name").set(to: excluded[Column("name")])]
/// }
/// ```
///
/// - parameter db: A database connection.
/// - parameter conflictTarget: The conflict target.
/// - parameter strategy: The default strategy, `.allColumns`, updates
/// all columns in case of conflict, unless specified otherwise in the
/// `assignments` parameter. Use `.noColumnUnlessSpecified` to only
/// update the columns assigned in the `assignments` parameter.
/// - parameter assignments: An optional function that returns an array of
/// ``ColumnAssignment``. In case of violation of a uniqueness
/// constraints, these assignments are performed, and remaining columns
/// are overwritten by inserted values.
/// constraint, these assignments are performed, and remaining columns
/// are overwritten by inserted values, or not, depending on the
/// chosen `strategy`. To use the value that would have been inserted
/// had the constraint not failed, use the `excluded` parameter.
/// - returns: The upserted record.
/// - throws: A ``DatabaseError`` whenever an SQLite error occurs, or any
/// error thrown by the persistence callbacks defined by the record type.
@@ -129,26 +126,36 @@ extension PersistableRecord {
public func upsertAndFetch(
_ db: Database,
onConflict conflictTarget: [String] = [],
updating strategy: UpsertUpdateStrategy = .allColumns,
doUpdate assignments: ((_ excluded: TableAlias<Self>) -> [ColumnAssignment])? = nil)
throws -> Self
where Self: FetchableRecord
{
try upsertAndFetch(db, as: Self.self, onConflict: conflictTarget, doUpdate: assignments)
try upsertAndFetch(
db, as: Self.self, onConflict: conflictTarget,
updating: strategy, doUpdate: assignments)
}
/// Executes an `INSERT ON CONFLICT DO UPDATE RETURNING` statement, and
/// returns the upserted record.
///
/// See `upsertAndFetch(_:onConflict:doUpdate:)` for more information about
/// the `conflictTarget` and `assignments` parameters.
/// See ``upsertAndFetch(_:onConflict:updating:doUpdate:)`` for more
/// information about the `conflictTarget`, `strategy`, and
/// `assignments` parameters.
///
/// - parameter db: A database connection.
/// - parameter returnedType: The type of the returned record.
/// - parameter conflictTarget: The conflict target.
/// - parameter strategy: The default strategy, `.allColumns`, updates
/// all columns in case of conflict, unless specified otherwise in the
/// `assignments` parameter. Use `.noColumnUnlessSpecified` to only
/// update the columns assigned in the `assignments` parameter.
/// - parameter assignments: An optional function that returns an array of
/// ``ColumnAssignment``. In case of violation of a uniqueness
/// constraints, these assignments are performed, and remaining columns
/// are overwritten by inserted values.
/// constraint, these assignments are performed, and remaining columns
/// are overwritten by inserted values, or not, depending on the
/// chosen `strategy`. To use the value that would have been inserted
/// had the constraint not failed, use the `excluded` parameter.
/// - returns: A record of type `returnedType`.
/// - throws: A ``DatabaseError`` whenever an SQLite error occurs, or any
/// error thrown by the persistence callbacks defined by the record type.
@@ -157,6 +164,7 @@ extension PersistableRecord {
_ db: Database,
as returnedType: T.Type,
onConflict conflictTarget: [String] = [],
updating strategy: UpsertUpdateStrategy = .allColumns,
doUpdate assignments: ((_ excluded: TableAlias<Self>) -> [ColumnAssignment])? = nil)
throws -> T
{
@@ -166,7 +174,7 @@ extension PersistableRecord {
try aroundSave(db) {
success = try upsertAndFetchWithCallbacks(
db, onConflict: conflictTarget,
doUpdate: assignments,
updating: strategy, doUpdate: assignments,
selection: T.databaseSelection,
decode: { try T(row: $0) })
return PersistenceSuccess(success!.inserted)
@@ -250,55 +258,52 @@ extension PersistableRecord {
/// let upsertedPlayer = try player.upsertAndFetch(db)
/// ```
///
/// With `conflictTarget` and `assignments` arguments, you can further
/// control the upsert behavior. Make sure you check
/// With the `conflictTarget`, `strategy`, and `assignments` arguments,
/// you can further control the upsert behavior. Make sure you check
/// <https://www.sqlite.org/lang_UPSERT.html> for detailed information.
///
/// The conflict target are the columns of the uniqueness constraint
/// (primary key or unique index) that triggers the upsert. If empty, all
/// uniqueness constraint are considered.
///
/// The assignments describe how to update columns in case of violation of
/// a uniqueness constraint. In the next example, we insert the new
/// vocabulary word "jovial" if that word is not already in the dictionary.
/// If the word is already in the dictionary, it increments the counter,
/// does not overwrite the tainted flag, and overwrites the
/// remaining columns:
/// The strategy controls which columns are updated in case of
/// uniqueness constraint violation: all columns unless specified (the
/// default), or only the specified columns.
///
/// For example, compare:
///
/// ```swift
/// // CREATE TABLE vocabulary(
/// // word TEXT PRIMARY KEY,
/// // kind TEXT NOT NULL,
/// // isTainted BOOLEAN DEFAULT 0,
/// // count INT DEFAULT 1))
/// struct Vocabulary: Encodable, PersistableRecord {
/// var word: String
/// var kind: String
/// var isTainted: Bool
/// // In case of conflict, updates all columns, including columns added
/// // in a future migration.
/// let upserted = try player.upsertAndFetch(db)
///
/// // In case of conflict, updates all columns, including future ones,
/// // but 'score'.
/// let upserted = try player.upsertAndFetch(db) { _ in
/// [Column("score").noOverwrite]
/// }
///
/// // INSERT INTO vocabulary(word, kind, isTainted)
/// // VALUES('jovial', 'adjective', 0)
/// // ON CONFLICT(word) DO UPDATE SET \
/// // count = count + 1,
/// // kind = excluded.kind
/// // RETURNING *
/// let vocabulary = Vocabulary(word: "jovial", kind: "adjective", isTainted: false)
/// let upserted = try vocabulary.upsertAndFetch(
/// db,
/// onConflict: ["word"],
/// doUpdate: { _ in
/// [Column("count") += 1,
/// Column("isTainted").noOverwrite]
/// })
/// // In case of conflict, do not update any column.
/// let upserted = try player.upsertAndFetch(db, updating: .noColumnUnlessSpecified)
///
/// // In case of conflict, only update 'name'.
/// let upserted = try player.upsertAndFetch(db, updating: .noColumnUnlessSpecified) { excluded in
/// [Column("name").set(to: excluded[Column("name")])]
/// }
/// ```
///
/// - parameter db: A database connection.
/// - parameter conflictTarget: The conflict target.
/// - parameter strategy: The default strategy, `.allColumns`, updates
/// all columns in case of conflict, unless specified otherwise in the
/// `assignments` parameter. Use `.noColumnUnlessSpecified` to only
/// update the columns assigned in the `assignments` parameter.
/// - parameter assignments: An optional function that returns an array of
/// ``ColumnAssignment``. In case of violation of a uniqueness
/// constraints, these assignments are performed, and remaining columns
/// are overwritten by inserted values.
/// constraint, these assignments are performed, and remaining columns
/// are overwritten by inserted values, or not, depending on the
/// chosen `strategy`. To use the value that would have been inserted
/// had the constraint not failed, use the `excluded` parameter.
/// - returns: The upserted record.
/// - throws: A ``DatabaseError`` whenever an SQLite error occurs, or any
/// error thrown by the persistence callbacks defined by the record type.
@@ -307,26 +312,36 @@ extension PersistableRecord {
public func upsertAndFetch(
_ db: Database,
onConflict conflictTarget: [String] = [],
updating strategy: UpsertUpdateStrategy = .allColumns,
doUpdate assignments: ((_ excluded: TableAlias<Self>) -> [ColumnAssignment])? = nil)
throws -> Self
where Self: FetchableRecord
{
try upsertAndFetch(db, as: Self.self, onConflict: conflictTarget, doUpdate: assignments)
try upsertAndFetch(
db, as: Self.self, onConflict: conflictTarget,
updating: strategy, doUpdate: assignments)
}
/// Executes an `INSERT ON CONFLICT DO UPDATE RETURNING` statement, and
/// returns the upserted record.
///
/// See ``upsertAndFetch(_:onConflict:doUpdate:)`` for more information
/// about the `conflictTarget` and `assignments` parameters.
/// See ``upsertAndFetch(_:onConflict:updating:doUpdate:)`` for more
/// information about the `conflictTarget`, `strategy`, and
/// `assignments` parameters.
///
/// - parameter db: A database connection.
/// - parameter returnedType: The type of the returned record.
/// - parameter conflictTarget: The conflict target.
/// - parameter strategy: The default strategy, `.allColumns`, updates
/// all columns in case of conflict, unless specified otherwise in the
/// `assignments` parameter. Use `.noColumnUnlessSpecified` to only
/// update the columns assigned in the `assignments` parameter.
/// - parameter assignments: An optional function that returns an array of
/// ``ColumnAssignment``. In case of violation of a uniqueness
/// constraints, these assignments are performed, and remaining columns
/// are overwritten by inserted values.
/// constraint, these assignments are performed, and remaining columns
/// are overwritten by inserted values, or not, depending on the
/// chosen `strategy`. To use the value that would have been inserted
/// had the constraint not failed, use the `excluded` parameter.
/// - returns: A record of type `returnedType`.
/// - throws: A ``DatabaseError`` whenever an SQLite error occurs, or any
/// error thrown by the persistence callbacks defined by the record type.
@@ -336,6 +351,7 @@ extension PersistableRecord {
_ db: Database,
as returnedType: T.Type,
onConflict conflictTarget: [String] = [],
updating strategy: UpsertUpdateStrategy = .allColumns,
doUpdate assignments: ((_ excluded: TableAlias<Self>) -> [ColumnAssignment])? = nil)
throws -> T
{
@@ -345,7 +361,7 @@ extension PersistableRecord {
try aroundSave(db) {
success = try upsertAndFetchWithCallbacks(
db, onConflict: conflictTarget,
doUpdate: assignments,
updating: strategy, doUpdate: assignments,
selection: T.databaseSelection,
decode: { try T(row: $0) })
return PersistenceSuccess(success!.inserted)
@@ -367,18 +383,17 @@ extension PersistableRecord {
func upsertWithCallbacks(_ db: Database)
throws -> InsertionSuccess
{
let (inserted, _) = try upsertAndFetchWithCallbacks(
try upsertWithCallbacks(
db, onConflict: [],
doUpdate: nil,
selection: [],
decode: { _ in /* Nothing to decode */ })
return inserted
updating: .allColumns,
doUpdate: nil)
}
@inlinable // allow specialization so that empty callbacks are removed
func upsertAndFetchWithCallbacks<T>(
_ db: Database,
onConflict conflictTarget: [String],
updating strategy: UpsertUpdateStrategy,
doUpdate assignments: ((_ excluded: TableAlias<Self>) -> [ColumnAssignment])?,
selection: [any SQLSelectable],
decode: (Row) throws -> T)
@@ -390,7 +405,7 @@ extension PersistableRecord {
try aroundInsert(db) {
success = try upsertAndFetchWithoutCallbacks(
db, onConflict: conflictTarget,
doUpdate: assignments,
updating: strategy, doUpdate: assignments,
selection: selection,
decode: decode)
return success!.inserted
@@ -402,4 +417,28 @@ extension PersistableRecord {
didInsert(success.inserted)
return success
}
@inlinable // allow specialization so that empty callbacks are removed
func upsertWithCallbacks(
_ db: Database,
onConflict conflictTarget: [String],
updating strategy: UpsertUpdateStrategy,
doUpdate assignments: ((_ excluded: TableAlias<Self>) -> [ColumnAssignment])?
) throws -> InsertionSuccess {
try willInsert(db)
var inserted: InsertionSuccess?
try aroundInsert(db) {
inserted = try upsertWithoutCallbacks(
db, onConflict: conflictTarget,
updating: strategy, doUpdate: assignments)
return inserted!
}
guard let inserted else {
try persistenceCallbackMisuse("aroundInsert")
}
didInsert(inserted)
return inserted
}
}
+3 -2
View File
@@ -24,8 +24,9 @@
/// - ``insertAndFetch(_:onConflict:as:)``
/// - ``insertAndFetch(_:onConflict:selection:fetch:)``
/// - ``insertAndFetch(_:onConflict:fetch:select:)``
/// - ``upsertAndFetch(_:onConflict:doUpdate:)``
/// - ``upsertAndFetch(_:as:onConflict:doUpdate:)``
/// - ``upsertAndFetch(_:onConflict:updating:doUpdate:)``
/// - ``upsertAndFetch(_:as:onConflict:updating:doUpdate:)``
/// - ``UpsertUpdateStrategy``
///
/// ### Saving a Record
///
@@ -452,8 +452,15 @@ extension ValueConcurrentObserver {
let isModified: Bool
if let currentWALSnapshot = try? WALSnapshot(writerDB) {
let ordering = initialFetchTransaction.walSnapshot.compare(currentWALSnapshot)
assert(ordering <= 0, "Unexpected snapshot ordering")
isModified = ordering < 0
// We expect `ordering <= 0`, since the current
// snapshot is captured after the snapshot of the
// initial fetch. The current one is supposed to be
// identical (no change), or newer (database was
// changed since initial fetch). Yet SQLite has
// a quirk, as revealed by <https://github.com/groue/GRDB.swift/issues/1883>
// That's why we just check for a difference, and do
// not `assert(ordering <= 0)`.
isModified = ordering != 0
} else {
// Can't compare: assume the database was modified.
isModified = true
@@ -806,14 +813,14 @@ extension ValueConcurrentObserver: TransactionObserver {
private func asyncFetch(databaseAccess: DatabaseAccess) {
databaseAccess.dbPool.asyncRead { [self] dbResult in
let isNotifying = self.lock.synchronized { self.notificationCallbacks != nil }
let isNotifying = lock.synchronized { self.notificationCallbacks != nil }
guard isNotifying else { return /* Cancelled */ }
let fetchResult = dbResult.flatMap { db in
Result { try databaseAccess.fetch(db) }
}
self.reduce(fetchResult)
reduce(fetchResult)
fetchingStateMutex.withLock { state in
switch state {
@@ -169,17 +169,37 @@ public final class SharedValueObservation<Element: Sendable>: @unchecked Sendabl
private let scheduler: any ValueObservationScheduler
private let extent: SharedValueObservationExtent
private let startObservation: ValueObservationStart<Element>
private let lock = NSRecursiveLock() // support synchronous observation events
// Clients are notified outside of the lock, so that a client can be
// cancelled from any thread during a notification without deadlock.
private let lock = NSLock()
// protected by lock
private var clients: [Client]
private var isObserving = false
private var cancellable: AnyDatabaseCancellable?
private var currentSubscription: ValueObservationSubscription? // nil when not observing
private var lastResult: Result<Element, Error>?
/// A subscription to the upstream ValueObservation.
///
/// Events and cancellables of a subscription that is no longer
/// the current one are ignored.
private final class ValueObservationSubscription: @unchecked Sendable {
// @unchecked Sendable because state is protected by
// the lock of SharedValueObservation.
var cancellable: AnyDatabaseCancellable?
}
private final class Client: Sendable {
let onError: @Sendable (Error) -> Void
let onChange: @Sendable (Element) -> Void
private let onError: @Sendable (Error) -> Void
private let onChange: @Sendable (Element) -> Void
private let stateMutex = Mutex(State())
private struct State {
var isCancelled = false
/// True when a ValueObservation event was notified, and we must
/// not notify the last result of the shared observation as the
/// initial event.
var shouldDiscardInitialResult = false
}
init(
onError: @escaping @Sendable (Error) -> Void,
@@ -188,6 +208,54 @@ public final class SharedValueObservation<Element: Sendable>: @unchecked Sendabl
self.onError = onError
self.onChange = onChange
}
/// Notifies the last result of the shared observation as the initial
/// value, unless a ValueObservation event was already notified.
func notifyInitial(_ result: Result<Element, Error>) {
guard shouldNotifyInitialResult() else { return }
switch result {
case let .failure(error):
onError(error)
case let .success(value):
onChange(value)
}
}
/// Notifies a ValueObservation event.
func notifyChange(_ value: Element) {
guard shouldNotifyValueObservationEvent() else { return }
onChange(value)
}
/// Notifies a ValueObservation event.
func notifyError(_ error: Error) {
guard shouldNotifyValueObservationEvent() else { return }
onError(error)
}
/// After this method returns, no new notification starts.
func cancel() {
stateMutex.withLock { $0.isCancelled = true }
}
/// Returns whether a ValueObservation event event should be notified.
private func shouldNotifyValueObservationEvent() -> Bool {
stateMutex.withLock { state in
if state.isCancelled { return false }
// After a ValueObservation event, we must ignore the
// initial result.
state.shouldDiscardInitialResult = true
return true
}
}
/// Returns whether the initial result should be notified: the client
/// is not cancelled, and the initial result should not be discarded.
private func shouldNotifyInitialResult() -> Bool {
stateMutex.withLock { state in
!state.isCancelled && !state.shouldDiscardInitialResult
}
}
}
fileprivate init(
@@ -229,49 +297,65 @@ public final class SharedValueObservation<Element: Sendable>: @unchecked Sendabl
onChange: @escaping @Sendable (Element) -> Void)
-> AnyDatabaseCancellable
{
withLock {
let client = Client(onError: onError, onChange: onChange)
let (newSubscription, lastResult) = lock.withLock {
// State change
clients.append(client)
// Support for reentrancy: a shared immediate observation is
// started from the first value notification of that same shared
// immediate observation. Yeah, users are nasty.
// In this case, self.cancellable is still nil, because we are
// still waiting for the upstream ValueObservation to start.
// But we must not start another one.
let needsStart = !isObserving
// In this case, self.currentSubscription has no cancellable yet,
// because we are still waiting for the upstream ValueObservation
// to start. But we must not start another one.
if currentSubscription != nil {
return (ValueObservationSubscription?.none, self.lastResult)
}
let newSubscription = ValueObservationSubscription()
currentSubscription = newSubscription
return (newSubscription, nil)
}
// Side effect
if let newSubscription {
// Self retains the subscription and its cancellable, so don't have
// the cancellable retain self or the subscription.
let cancellable = startObservation(
// onError
{ [weak self, weak newSubscription] error in
guard let newSubscription else { return }
self?.handleError(error, from: newSubscription)
},
// onChange
{ [weak self, weak newSubscription] element in
guard let newSubscription else { return }
self?.handleChange(element, from: newSubscription)
})
// State change
let client = Client(onError: onError, onChange: onChange)
clients.append(client)
isObserving = true
// Side effect
if needsStart {
// Self retains the cancellable, so don't have the cancellable retain self.
cancellable = startObservation(
// onError
{ [weak self] error in
self?.handleError(error)
},
// onChange
{ [weak self] element in
self?.handleChange(element)
})
} else if let result = lastResult {
// Notify last result as an initial value
scheduler.scheduleInitial {
switch result {
case let .failure(error):
onError(error)
case let .success(value):
onChange(value)
}
// The upstream observation may have been stopped, and maybe
// replaced, while it was starting (for example, if the initial
// fetch fails). In this case, discard its cancellable.
let discardedCancellable: AnyDatabaseCancellable? = lock.withLock {
guard currentSubscription === newSubscription else {
return cancellable
}
newSubscription.cancellable = cancellable
return nil
}
return AnyDatabaseCancellable {
// Retain shared observation (self) until client cancels
self.handleCancel(client)
discardedCancellable?.cancel()
} else if let lastResult {
// Notify last result as an initial value. A fresher result may
// have been scheduled before, and already notified to the
// client: in this case, the last result is not notified.
scheduler.scheduleInitial {
client.notifyInitial(lastResult)
}
}
return AnyDatabaseCancellable {
// Retain shared observation (self) until client cancels
self.handleCancel(client)
}
}
#if canImport(Combine)
@@ -299,55 +383,76 @@ public final class SharedValueObservation<Element: Sendable>: @unchecked Sendabl
}
#endif
private func handleError(_ error: Error) {
withLock {
let notifiedClients = clients
private func handleError(_ error: Error, from source: ValueObservationSubscription) {
let (notifiedClients, stoppedCancellable) = lock.withLock {
guard source === currentSubscription else {
return ([Client](), AnyDatabaseCancellable?.none)
}
// State change
let notifiedClients = clients
var stoppedCancellable: AnyDatabaseCancellable?
clients = []
if extent == .whileObserved {
isObserving = false
cancellable = nil
lastResult = nil
stoppedCancellable = stopObservation()
} else {
lastResult = .failure(error)
}
// Side effect
for client in notifiedClients {
client.onError(error)
}
return (notifiedClients, stoppedCancellable)
}
// Side effects
stoppedCancellable?.cancel()
for client in notifiedClients {
client.notifyError(error)
}
}
private func handleChange(_ value: Element) {
withLock {
private func handleChange(_ value: Element, from source: ValueObservationSubscription) {
let notifiedClients = lock.withLock {
guard source === currentSubscription else {
return [Client]()
}
// State change
lastResult = .success(value)
// Side effect
for client in clients {
client.onChange(value)
}
return clients
}
// Side effect
for client in notifiedClients {
client.notifyChange(value)
}
}
private func handleCancel(_ client: Client) {
withLock {
// Prevent the client from being notified, even if a notification
// is currently in progress.
client.cancel()
let stoppedCancellable = lock.withLock {
// State change
clients.removeFirst(where: { $0 === client })
if clients.isEmpty && extent == .whileObserved {
isObserving = false
cancellable = nil
lastResult = nil
return stopObservation()
}
return nil
}
// Side effect
stoppedCancellable?.cancel()
}
private func withLock<T>(_ execute: () throws -> T) rethrows -> T {
lock.lock()
defer { lock.unlock() }
return try execute()
/// Stops the current upstream observation, and returns its cancellable,
/// so that it can be cancelled outside of the lock.
///
/// Must be called with the lock held.
private func stopObservation() -> AnyDatabaseCancellable? {
let stoppedCancellable = currentSubscription?.cancellable
currentSubscription = nil
lastResult = nil
return stoppedCancellable
}
}
+1 -1
View File
@@ -345,7 +345,7 @@ extension ValueObservation {
/// - parameter reader: A DatabaseReader.
/// - parameter scheduler: A ValueObservationScheduler. By default,
/// fresh values are dispatched on the cooperative thread pool.
/// - parameter bufferingPolicy: see the documntation
/// - parameter bufferingPolicy: see the documentation
/// of `AsyncThrowingStream`.
public func values(
in reader: any DatabaseReader,
File diff suppressed because it is too large. Load diff
+25 -15
View File
@@ -14,12 +14,6 @@ let darwinPlatforms: [Platform] = [
]
var swiftSettings: [SwiftSetting] = [
.define("SQLITE_ENABLE_FTS5"),
// Until Xcode has proper support for package traits, we must enable
// SQLITE_ENABLE_SNAPSHOT by default so that Xcode projects that build
// a Darwin app can depend on GRDB and profit from WAL snapshots.
// Package traits who want to disable snapshots must set SQLITE_DISABLE_SNAPSHOT.
// TODO: when Xcode support traits, remove all mentions of SQLITE_DISABLE_SNAPSHOT and update as below:
// .define("SQLITE_ENABLE_SNAPSHOT", .when(platforms: darwinPlatforms, traits: ["GRDBSQLite"])),
.define("SQLITE_ENABLE_SNAPSHOT"),
// Not all Linux distributions have support for WAL snapshots.
.define("SQLITE_DISABLE_SNAPSHOT", .when(platforms: [.linux])),
@@ -44,6 +38,12 @@ if ProcessInfo.processInfo.environment["SPI_BUILDER"] == "1" {
dependencies.append(.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"))
}
// GRDB+SQLCipher: Uncomment those lines
//dependencies.append(.package(url: "https://github.com/sqlcipher/SQLCipher.swift.git", from: "4.11.0"))
//cSettings.append(.define("SQLITE_HAS_CODEC"))
//swiftSettings.append(.define("SQLITE_HAS_CODEC"))
//swiftSettings.append(.define("SQLCipher"))
let package = Package(
name: "GRDB",
defaultLocalization: "en", // for tests
@@ -54,28 +54,37 @@ let package = Package(
.watchOS(.v7),
],
products: [
// GRDB+SQLCipher: Delete the GRDBSQLite library
.library(name: "GRDBSQLite", targets: ["GRDBSQLite"]),
.library(name: "GRDB", targets: ["GRDB"]),
.library(name: "GRDB-dynamic", type: .dynamic, targets: ["GRDB"]),
],
traits: [
"GRDBSQLite",
.default(enabledTraits: ["GRDBSQLite"]),
],
dependencies: dependencies,
targets: [
// GRDB+SQLCipher: Delete the GRDBSQLite target
.systemLibrary(
name: "GRDBSQLite",
providers: [.apt(["libsqlite3-dev"])]),
// GRDB+SQLCipher: Uncomment the GRDBSQLCipher target
//.target(
// name: "GRDBSQLCipher",
// dependencies: [.product(name: "SQLCipher", package: "SQLCipher.swift")]
//),
.target(
name: "GRDB",
dependencies: [
.target(name: "GRDBSQLite", condition: .when(traits: ["GRDBSQLite"])),
// GRDB+SQLCipher: Delete the GRDBSQLite dependency
.target(name: "GRDBSQLite"),
// GRDB+SQLCipher: Uncomment the SQLCipher and GRDBSQLCipher dependencies
//.product(name: "SQLCipher", package: "SQLCipher.swift"),
//.target(name: "GRDBSQLCipher"),
],
path: "GRDB",
resources: [.copy("PrivacyInfo.xcprivacy")],
cSettings: cSettings,
swiftSettings: swiftSettings),
swiftSettings: swiftSettings + [
.enableUpcomingFeature("MemberImportVisibility"),
]),
.testTarget(
name: "GRDBTests",
dependencies: ["GRDB"],
@@ -85,7 +94,7 @@ let package = Package(
"Crash",
"CustomSQLite",
"GRDBManualInstall",
"GRDBTests/getThreadsCount.c",
"GRDBTests/Core/DatabasePool/getThreadsCount.c",
"Info.plist",
"Performance",
"SPM",
@@ -95,8 +104,9 @@ let package = Package(
],
resources: [
.copy("GRDBTests/Betty.jpeg"),
.copy("GRDBTests/InflectionsTests.json"),
.copy("GRDBTests/Issue1383.sqlite"),
.copy("GRDBTests/Private/InflectionsTests.json"),
.copy("GRDBTests/ValueObservation/Issue1383.sqlite"),
.copy("GRDBTests/GRDBCipher/db.SQLCipher3"),
],
cSettings: cSettings,
swiftSettings: swiftSettings + [
+11 -19
View File
@@ -15,17 +15,7 @@
<a href="https://github.com/groue/GRDB.swift/actions/workflows/CI.yml"><img alt="CI Status" src="https://github.com/groue/GRDB.swift/actions/workflows/CI.yml/badge.svg?branch=master"></a>
</p>
---
<a href="https://menial.co.uk/base/"><img alt="Base: The best SQLite database editor for macOS" src="https://raw.githubusercontent.com/groue/GRDB.swift/master/Sponsors/base.png"></a>
<p align="center">
<strong>Thank you to <a href="https://menial.co.uk/base/">Base</a> for sponsoring GRDB</strong><br />Base is a small, powerful, comfortable SQLite editor for everyone on macOS.
</p>
---
**Latest release**: October 2, 2025 • [version 7.8.0](https://github.com/groue/GRDB.swift/tree/v7.8.0) • [CHANGELOG](CHANGELOG.md) • [Migrating From GRDB 6 to GRDB 7](Documentation/GRDB7MigrationGuide.md)
**Latest release**: November 1, 2026 • [version 7.12.0](https://github.com/groue/GRDB.swift/tree/v7.12.0) • [CHANGELOG](CHANGELOG.md) • [Migrating From GRDB 6 to GRDB 7](Documentation/GRDB7MigrationGuide.md)
**Requirements**: iOS 13.0+ / macOS 10.15+ / tvOS 13.0+ / watchOS 7.0+ &bull; SQLite 3.20.0+ &bull; Swift 6.1+ / Xcode 16.3+
@@ -110,7 +100,7 @@ try dbQueue.write { db in
}
try dbQueue.read { db in
let player = try Player.find(db, id: "1"))
let player = try Player.find(db, id: "1")
let bestPlayers = try Player
.order(\.score.desc)
@@ -209,7 +199,7 @@ try dbQueue.write { db in
// Update a record
player.score += 10
try score.update(db)
try player.update(db)
try player.updateChanges { $0.score += 10 }
@@ -1662,7 +1652,7 @@ Records
```swift
try dbQueue.write { db in
if var place = try Player.fetchOne(db, id: 1) {
if var player = try Player.fetchOne(db, id: 1) {
player.score += 10
try player.update(db)
}
@@ -2220,7 +2210,7 @@ For more information about batch updates, see [Update Requests](#update-requests
try player.upsert(db)
```
- `upsertAndFetch(_:onConflict:doUpdate:)` (requires [FetchableRecord] conformance)
- `upsertAndFetch(_:onConflict:updating:doUpdate:)` (requires [FetchableRecord] conformance)
Inserts or updates a record, and returns the upserted record.
@@ -2230,7 +2220,7 @@ For more information about batch updates, see [Update Requests](#update-requests
If empty (the default), all uniqueness constraint are considered.
- `doUpdate`: a closure that returns columns assignments to perform in case of conflict. Other columns are overwritten with the inserted values.
- `doUpdate`: a closure that returns columns assignments to perform in case of conflict. Depending on the `options` parameter, other columns are overwritten with the inserted values, or not.
By default, all inserted columns but the primary key and the conflict target are overwritten.
@@ -2278,9 +2268,9 @@ For more information about batch updates, see [Update Requests](#update-requests
})
```
- `upsertAndFetch(_:as:onConflict:doUpdate:)` (does not require [FetchableRecord] conformance)
- `upsertAndFetch(_:as:onConflict:updating:doUpdate:)` (does not require [FetchableRecord] conformance)
This method is identical to `upsertAndFetch(_:onConflict:doUpdate:)` described above, but you can provide a distinct [FetchableRecord] record type as a result, in order to specify the returned columns.
This method is identical to `upsertAndFetch(_:onConflict:updating:doUpdate:)` described above, but you can provide a distinct [FetchableRecord] record type as a result, in order to specify the returned columns.
### Persistence Methods and the `RETURNING` clause
@@ -4599,7 +4589,9 @@ Encryption
**GRDB can encrypt your database with [SQLCipher](http://sqlcipher.net) v3.4+.**
Use [CocoaPods](http://cocoapods.org/), and specify in your `Podfile`:
To use SQLCipher with the [Swift Package Manager](https://swift.org/package-manager/), you must fork GRDB, and modify `Package.swift`. Instructions are in the file itself, in comments that contain "GRDB+SQLCipher".
To use SQLCipher with [CocoaPods](http://cocoapods.org/), specify in your `Podfile`:
```ruby
# GRDB with SQLCipher 4
+1 -1
View File
@@ -5,6 +5,7 @@ disabled_rules:
- comment_spacing
- cyclomatic_complexity
- duplicate_enum_cases
- duplicate_imports
- file_length
- for_where
- force_cast
@@ -62,7 +63,6 @@ opt_in_rules:
- redundant_type_annotation
- shorthand_optional_binding
- sorted_first_last
- sorted_imports
- toggle_bool
- unhandled_throwing_task
- vertical_parameter_alignment_on_call
+1
View File
@@ -0,0 +1 @@
// empty c-file
@@ -0,0 +1,32 @@
#ifndef grdb_config_h
#define grdb_config_h
#include <SQLCipher/sqlite3.h>
typedef void(*_errorLogCallback)(void *pArg, int iErrCode, const char *zMsg);
/// Wrapper around sqlite3_config(SQLITE_CONFIG_LOG, ...) which is a variadic
/// function that can't be used from Swift.
static inline void _registerErrorLogCallback(_errorLogCallback callback) {
sqlite3_config(SQLITE_CONFIG_LOG, callback, 0);
}
#if SQLITE_VERSION_NUMBER >= 3029000
/// Wrapper around sqlite3_db_config() which is a variadic function that can't
/// be used from Swift.
static inline void _disableDoubleQuotedStringLiterals(sqlite3 *db) {
sqlite3_db_config(db, SQLITE_DBCONFIG_DQS_DDL, 0, (void *)0);
sqlite3_db_config(db, SQLITE_DBCONFIG_DQS_DML, 0, (void *)0);
}
/// Wrapper around sqlite3_db_config() which is a variadic function that can't
/// be used from Swift.
static inline void _enableDoubleQuotedStringLiterals(sqlite3 *db) {
sqlite3_db_config(db, SQLITE_DBCONFIG_DQS_DDL, 1, (void *)0);
sqlite3_db_config(db, SQLITE_DBCONFIG_DQS_DML, 1, (void *)0);
}
#else
static inline void _disableDoubleQuotedStringLiterals(sqlite3 *db) { }
static inline void _enableDoubleQuotedStringLiterals(sqlite3 *db) { }
#endif
#endif /* grdb_config_h */
@@ -0,0 +1,4 @@
module GRDBSQLCipher {
header "SQLCipher_config.h"
export *
}
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

+1 -1
View File
@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>7.8.0</string>
<string>7.12.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
@@ -361,8 +361,8 @@
56419EBA24A54063004967E1 /* PersistableRecordTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56419D4524A5405F004967E1 /* PersistableRecordTests.swift */; };
56419EBB24A54063004967E1 /* AssociationHasManyThroughSQLTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56419D4624A54060004967E1 /* AssociationHasManyThroughSQLTests.swift */; };
56419EBC24A54063004967E1 /* AssociationHasManyThroughSQLTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56419D4624A54060004967E1 /* AssociationHasManyThroughSQLTests.swift */; };
56419EBD24A54063004967E1 /* AssociationHasOneThroughSQLDerivationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56419D4724A54060004967E1 /* AssociationHasOneThroughSQLDerivationTests.swift */; };
56419EBE24A54063004967E1 /* AssociationHasOneThroughSQLDerivationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56419D4724A54060004967E1 /* AssociationHasOneThroughSQLDerivationTests.swift */; };
56419EBD24A54063004967E1 /* AssociationHasOneSQLDerivationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56419D4724A54060004967E1 /* AssociationHasOneSQLDerivationTests.swift */; };
56419EBE24A54063004967E1 /* AssociationHasOneSQLDerivationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56419D4724A54060004967E1 /* AssociationHasOneSQLDerivationTests.swift */; };
56419EBF24A54063004967E1 /* FTS5TableBuilderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56419D4824A54060004967E1 /* FTS5TableBuilderTests.swift */; };
56419EC024A54063004967E1 /* FTS5TableBuilderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56419D4824A54060004967E1 /* FTS5TableBuilderTests.swift */; };
56419EC124A54063004967E1 /* DatabaseQueueBackupTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56419D4924A54060004967E1 /* DatabaseQueueBackupTests.swift */; };
@@ -503,7 +503,6 @@
56DFC3B42C84798300DFE5DC /* AsyncSemaphore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56DFC3B22C84798300DFE5DC /* AsyncSemaphore.swift */; };
56F61DF0283D484700AF9884 /* getThreadsCount.c in Sources */ = {isa = PBXBuildFile; fileRef = 56F61DEE283D484700AF9884 /* getThreadsCount.c */; };
56F61DF1283D484700AF9884 /* getThreadsCount.c in Sources */ = {isa = PBXBuildFile; fileRef = 56F61DEE283D484700AF9884 /* getThreadsCount.c */; };
5B33E6E34F941B4C839A714F /* BuildFile in Frameworks */ = {isa = PBXBuildFile; };
98AB0B01EB11B33719AE412E /* Pods_GRDBTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FE2436BF42B9FCD6552E7076 /* Pods_GRDBTests.framework */; };
F2B3C4250D67969FF3948955 /* Pods_GRDBTestsEncrypted.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7D5C7999E7D9CE7145687F5D /* Pods_GRDBTestsEncrypted.framework */; };
/* End PBXBuildFile section */
@@ -511,215 +510,215 @@
/* Begin PBXFileReference section */
04298D834C818285823558AB /* Pods-GRDBTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GRDBTests.release.xcconfig"; path = "Target Support Files/Pods-GRDBTests/Pods-GRDBTests.release.xcconfig"; sourceTree = "<group>"; };
47C5D1B9AFFE795AA1D6EA5D /* Pods-GRDBTestsEncrypted.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GRDBTestsEncrypted.release.xcconfig"; path = "Target Support Files/Pods-GRDBTestsEncrypted/Pods-GRDBTestsEncrypted.release.xcconfig"; sourceTree = "<group>"; };
5603CECE2AC8636E00CF097D /* JSONExpressionsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JSONExpressionsTests.swift; sourceTree = "<group>"; };
56071DE42BD3DDB5000802B6 /* SingletonUserDefaultsTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SingletonUserDefaultsTest.swift; sourceTree = "<group>"; };
561F38DC2AC891710051EEE9 /* JSONColumnTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JSONColumnTests.swift; sourceTree = "<group>"; };
561F38F72AC9CE6D0051EEE9 /* DatabaseDataDecodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseDataDecodingStrategyTests.swift; sourceTree = "<group>"; };
561F38F82AC9CE6D0051EEE9 /* DatabaseDataEncodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseDataEncodingStrategyTests.swift; sourceTree = "<group>"; };
5623B61B2AED39F700436239 /* DatabaseQueueTemporaryCopyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueTemporaryCopyTests.swift; sourceTree = "<group>"; };
5623B61C2AED39F700436239 /* DatabaseQueueInMemoryCopyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueInMemoryCopyTests.swift; sourceTree = "<group>"; };
5603CECE2AC8636E00CF097D /* JSONExpressionsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = JSONExpressionsTests.swift; path = JSON/JSONExpressionsTests.swift; sourceTree = "<group>"; };
56071DE42BD3DDB5000802B6 /* SingletonUserDefaultsTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SingletonUserDefaultsTest.swift; path = Record/SingletonUserDefaultsTest.swift; sourceTree = "<group>"; };
561F38DC2AC891710051EEE9 /* JSONColumnTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = JSONColumnTests.swift; path = JSON/JSONColumnTests.swift; sourceTree = "<group>"; };
561F38F72AC9CE6D0051EEE9 /* DatabaseDataDecodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseDataDecodingStrategyTests.swift; path = Record/FetchableRecord/DatabaseDataDecodingStrategyTests.swift; sourceTree = "<group>"; };
561F38F82AC9CE6D0051EEE9 /* DatabaseDataEncodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseDataEncodingStrategyTests.swift; path = Record/PersistableRecord/DatabaseDataEncodingStrategyTests.swift; sourceTree = "<group>"; };
5623B61B2AED39F700436239 /* DatabaseQueueTemporaryCopyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseQueueTemporaryCopyTests.swift; path = Core/DatabaseQueue/DatabaseQueueTemporaryCopyTests.swift; sourceTree = "<group>"; };
5623B61C2AED39F700436239 /* DatabaseQueueInMemoryCopyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseQueueInMemoryCopyTests.swift; path = Core/DatabaseQueue/DatabaseQueueInMemoryCopyTests.swift; sourceTree = "<group>"; };
563EA3E42C7B3A4F001BE0D4 /* Mutex.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Mutex.swift; sourceTree = "<group>"; };
56419C9C24A54053004967E1 /* DatabasePoolTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabasePoolTests.swift; sourceTree = "<group>"; };
56419C9D24A54053004967E1 /* ResultCodeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResultCodeTests.swift; sourceTree = "<group>"; };
56419C9E24A54053004967E1 /* DatabaseQueueTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueTests.swift; sourceTree = "<group>"; };
56419C9F24A54054004967E1 /* Record+QueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Record+QueryInterfaceRequestTests.swift"; sourceTree = "<group>"; };
56419CA024A54054004967E1 /* DatabaseQueueInMemoryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueInMemoryTests.swift; sourceTree = "<group>"; };
56419CA124A54054004967E1 /* DatabasePoolSchemaCacheTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabasePoolSchemaCacheTests.swift; sourceTree = "<group>"; };
56419CA224A54054004967E1 /* TableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableRecordTests.swift; sourceTree = "<group>"; };
56419CA324A54054004967E1 /* DropFirstCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DropFirstCursorTests.swift; sourceTree = "<group>"; };
56419CA424A54054004967E1 /* DatabaseCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseCursorTests.swift; sourceTree = "<group>"; };
56419CA624A54054004967E1 /* FetchableRecord+QueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "FetchableRecord+QueryInterfaceRequestTests.swift"; sourceTree = "<group>"; };
56419CA724A54054004967E1 /* ValueObservationMapTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationMapTests.swift; sourceTree = "<group>"; };
56419CA824A54054004967E1 /* DatabasePoolFunctionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabasePoolFunctionTests.swift; sourceTree = "<group>"; };
56419CA924A54054004967E1 /* FoundationNSNumberTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationNSNumberTests.swift; sourceTree = "<group>"; };
56419CAA24A54054004967E1 /* FetchableRecordDecodableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FetchableRecordDecodableTests.swift; sourceTree = "<group>"; };
56419CAB24A54054004967E1 /* FTS4RecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS4RecordTests.swift; sourceTree = "<group>"; };
56419CAC24A54054004967E1 /* RecordPrimaryKeyHiddenRowIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordPrimaryKeyHiddenRowIDTests.swift; sourceTree = "<group>"; };
56419CAD24A54054004967E1 /* AssociationPrefetchingSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationPrefetchingSQLTests.swift; sourceTree = "<group>"; };
56419CAE24A54054004967E1 /* RecordInitializersTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordInitializersTests.swift; sourceTree = "<group>"; };
56419CAF24A54054004967E1 /* DatabaseErrorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseErrorTests.swift; sourceTree = "<group>"; };
56419CB024A54054004967E1 /* RecordUniqueIndexTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordUniqueIndexTests.swift; sourceTree = "<group>"; };
56419CB124A54054004967E1 /* DatabaseFunctionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseFunctionTests.swift; sourceTree = "<group>"; };
56419CB224A54055004967E1 /* PrimaryKeyInfoTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PrimaryKeyInfoTests.swift; sourceTree = "<group>"; };
56419CB324A54055004967E1 /* DatabaseSavepointTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseSavepointTests.swift; sourceTree = "<group>"; };
56419CB424A54055004967E1 /* RowCopiedFromStatementTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RowCopiedFromStatementTests.swift; sourceTree = "<group>"; };
56419CB524A54055004967E1 /* DatabaseValueConvertibleSubclassTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseValueConvertibleSubclassTests.swift; sourceTree = "<group>"; };
56419CB624A54055004967E1 /* TransactionObserverSavepointsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TransactionObserverSavepointsTests.swift; sourceTree = "<group>"; };
56419CB724A54055004967E1 /* FetchRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FetchRequestTests.swift; sourceTree = "<group>"; };
56419CB824A54055004967E1 /* CompilationSubClassTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CompilationSubClassTests.swift; sourceTree = "<group>"; };
56419CB924A54055004967E1 /* EncryptionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EncryptionTests.swift; sourceTree = "<group>"; };
56419CBA24A54055004967E1 /* AssociationPrefetchingRowTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationPrefetchingRowTests.swift; sourceTree = "<group>"; };
56419CBB24A54055004967E1 /* QueryInterfacePromiseTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = QueryInterfacePromiseTests.swift; sourceTree = "<group>"; };
56419CBC24A54055004967E1 /* RecordWithColumnNameManglingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordWithColumnNameManglingTests.swift; sourceTree = "<group>"; };
56419CBD24A54055004967E1 /* UpdateStatementTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UpdateStatementTests.swift; sourceTree = "<group>"; };
56419CBF24A54056004967E1 /* AssociationHasManyRowScopeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasManyRowScopeTests.swift; sourceTree = "<group>"; };
56419CC024A54056004967E1 /* DatabaseMigratorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseMigratorTests.swift; sourceTree = "<group>"; };
56419CC124A54056004967E1 /* AssociationBelongsToDecodableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationBelongsToDecodableRecordTests.swift; sourceTree = "<group>"; };
56419CC224A54056004967E1 /* AssociationHasOneSQLDerivationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasOneSQLDerivationTests.swift; sourceTree = "<group>"; };
56419CC324A54056004967E1 /* VirtualTableModuleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = VirtualTableModuleTests.swift; sourceTree = "<group>"; };
56419CC424A54056004967E1 /* AssociationPrefetchingFetchableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationPrefetchingFetchableRecordTests.swift; sourceTree = "<group>"; };
56419C9C24A54053004967E1 /* DatabasePoolTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabasePoolTests.swift; path = Core/DatabasePool/DatabasePoolTests.swift; sourceTree = "<group>"; };
56419C9D24A54053004967E1 /* ResultCodeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ResultCodeTests.swift; path = Core/ResultCodeTests.swift; sourceTree = "<group>"; };
56419C9E24A54053004967E1 /* DatabaseQueueTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseQueueTests.swift; path = Core/DatabaseQueue/DatabaseQueueTests.swift; sourceTree = "<group>"; };
56419C9F24A54054004967E1 /* Record+QueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "Record+QueryInterfaceRequestTests.swift"; path = "QueryInterface/Record+QueryInterfaceRequestTests.swift"; sourceTree = "<group>"; };
56419CA024A54054004967E1 /* DatabaseQueueInMemoryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseQueueInMemoryTests.swift; path = Core/DatabaseQueue/DatabaseQueueInMemoryTests.swift; sourceTree = "<group>"; };
56419CA124A54054004967E1 /* DatabasePoolSchemaCacheTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabasePoolSchemaCacheTests.swift; path = Private/DatabasePoolSchemaCacheTests.swift; sourceTree = "<group>"; };
56419CA224A54054004967E1 /* TableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TableRecordTests.swift; path = Record/TableRecord/TableRecordTests.swift; sourceTree = "<group>"; };
56419CA324A54054004967E1 /* DropFirstCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DropFirstCursorTests.swift; path = Core/Cursor/DropFirstCursorTests.swift; sourceTree = "<group>"; };
56419CA424A54054004967E1 /* DatabaseCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseCursorTests.swift; path = Core/Cursor/DatabaseCursorTests.swift; sourceTree = "<group>"; };
56419CA624A54054004967E1 /* FetchableRecord+QueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "FetchableRecord+QueryInterfaceRequestTests.swift"; path = "QueryInterface/FetchableRecord+QueryInterfaceRequestTests.swift"; sourceTree = "<group>"; };
56419CA724A54054004967E1 /* ValueObservationMapTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationMapTests.swift; path = ValueObservation/ValueObservationMapTests.swift; sourceTree = "<group>"; };
56419CA824A54054004967E1 /* DatabasePoolFunctionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabasePoolFunctionTests.swift; path = Core/DatabasePool/DatabasePoolFunctionTests.swift; sourceTree = "<group>"; };
56419CA924A54054004967E1 /* FoundationNSNumberTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationNSNumberTests.swift; path = Support/Foundation/FoundationNSNumberTests.swift; sourceTree = "<group>"; };
56419CAA24A54054004967E1 /* FetchableRecordDecodableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FetchableRecordDecodableTests.swift; path = Record/FetchableRecord/FetchableRecordDecodableTests.swift; sourceTree = "<group>"; };
56419CAB24A54054004967E1 /* FTS4RecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS4RecordTests.swift; path = FTS/FTS4RecordTests.swift; sourceTree = "<group>"; };
56419CAC24A54054004967E1 /* RecordPrimaryKeyHiddenRowIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordPrimaryKeyHiddenRowIDTests.swift; path = Record/Record/RecordPrimaryKeyHiddenRowIDTests.swift; sourceTree = "<group>"; };
56419CAD24A54054004967E1 /* AssociationPrefetchingSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationPrefetchingSQLTests.swift; path = QueryInterface/Association/AssociationPrefetchingSQLTests.swift; sourceTree = "<group>"; };
56419CAE24A54054004967E1 /* RecordInitializersTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordInitializersTests.swift; path = Record/Record/RecordInitializersTests.swift; sourceTree = "<group>"; };
56419CAF24A54054004967E1 /* DatabaseErrorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseErrorTests.swift; path = Core/DatabaseErrorTests.swift; sourceTree = "<group>"; };
56419CB024A54054004967E1 /* RecordUniqueIndexTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordUniqueIndexTests.swift; path = Private/RecordUniqueIndexTests.swift; sourceTree = "<group>"; };
56419CB124A54054004967E1 /* DatabaseFunctionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseFunctionTests.swift; path = Core/DatabaseFunctionTests.swift; sourceTree = "<group>"; };
56419CB224A54055004967E1 /* PrimaryKeyInfoTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PrimaryKeyInfoTests.swift; path = Core/PrimaryKeyInfoTests.swift; sourceTree = "<group>"; };
56419CB324A54055004967E1 /* DatabaseSavepointTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseSavepointTests.swift; path = Core/DatabaseSavepointTests.swift; sourceTree = "<group>"; };
56419CB424A54055004967E1 /* RowCopiedFromStatementTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RowCopiedFromStatementTests.swift; path = Core/Row/RowCopiedFromStatementTests.swift; sourceTree = "<group>"; };
56419CB524A54055004967E1 /* DatabaseValueConvertibleSubclassTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseValueConvertibleSubclassTests.swift; path = Core/DatabaseValueConvertible/DatabaseValueConvertibleSubclassTests.swift; sourceTree = "<group>"; };
56419CB624A54055004967E1 /* TransactionObserverSavepointsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TransactionObserverSavepointsTests.swift; path = Core/TransactionObserver/TransactionObserverSavepointsTests.swift; sourceTree = "<group>"; };
56419CB724A54055004967E1 /* FetchRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FetchRequestTests.swift; path = Core/FetchRequestTests.swift; sourceTree = "<group>"; };
56419CB824A54055004967E1 /* CompilationSubClassTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = CompilationSubClassTests.swift; path = Compilation/CompilationSubClassTests.swift; sourceTree = "<group>"; };
56419CB924A54055004967E1 /* EncryptionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = EncryptionTests.swift; path = GRDBCipher/EncryptionTests.swift; sourceTree = "<group>"; };
56419CBA24A54055004967E1 /* AssociationPrefetchingRowTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationPrefetchingRowTests.swift; path = QueryInterface/Association/AssociationPrefetchingRowTests.swift; sourceTree = "<group>"; };
56419CBB24A54055004967E1 /* QueryInterfacePromiseTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = QueryInterfacePromiseTests.swift; path = QueryInterface/QueryInterfacePromiseTests.swift; sourceTree = "<group>"; };
56419CBC24A54055004967E1 /* RecordWithColumnNameManglingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordWithColumnNameManglingTests.swift; path = Record/Record/RecordWithColumnNameManglingTests.swift; sourceTree = "<group>"; };
56419CBD24A54055004967E1 /* UpdateStatementTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = UpdateStatementTests.swift; path = Core/Statement/UpdateStatementTests.swift; sourceTree = "<group>"; };
56419CBF24A54056004967E1 /* AssociationHasManyRowScopeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasManyRowScopeTests.swift; path = QueryInterface/Association/AssociationHasManyRowScopeTests.swift; sourceTree = "<group>"; };
56419CC024A54056004967E1 /* DatabaseMigratorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseMigratorTests.swift; path = Migrations/DatabaseMigratorTests.swift; sourceTree = "<group>"; };
56419CC124A54056004967E1 /* AssociationBelongsToDecodableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationBelongsToDecodableRecordTests.swift; path = QueryInterface/Association/AssociationBelongsToDecodableRecordTests.swift; sourceTree = "<group>"; };
56419CC224A54056004967E1 /* AssociationHasOneSQLDerivationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasOneSQLDerivationTests.swift; path = QueryInterface/Association/AssociationHasOneSQLDerivationTests.swift; sourceTree = "<group>"; };
56419CC324A54056004967E1 /* VirtualTableModuleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = VirtualTableModuleTests.swift; path = QueryInterface/VirtualTableModuleTests.swift; sourceTree = "<group>"; };
56419CC424A54056004967E1 /* AssociationPrefetchingFetchableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationPrefetchingFetchableRecordTests.swift; path = QueryInterface/Association/AssociationPrefetchingFetchableRecordTests.swift; sourceTree = "<group>"; };
56419CC524A54056004967E1 /* FailureTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FailureTestCase.swift; sourceTree = "<group>"; };
56419CC624A54056004967E1 /* ValueObservationRegionRecordingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationRegionRecordingTests.swift; sourceTree = "<group>"; };
56419CC724A54056004967E1 /* DatabasePoolConcurrencyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabasePoolConcurrencyTests.swift; sourceTree = "<group>"; };
56419CC824A54056004967E1 /* UtilsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UtilsTests.swift; sourceTree = "<group>"; };
56419CC924A54056004967E1 /* FoundationNSDateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationNSDateTests.swift; sourceTree = "<group>"; };
56419CCA24A54056004967E1 /* SQLExpressionLiteralTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SQLExpressionLiteralTests.swift; sourceTree = "<group>"; };
56419CCB24A54057004967E1 /* AssociationHasManyOrderingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasManyOrderingTests.swift; sourceTree = "<group>"; };
56419CCC24A54057004967E1 /* DatabaseAfterNextTransactionCommitTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseAfterNextTransactionCommitTests.swift; sourceTree = "<group>"; };
56419CCD24A54057004967E1 /* AssociationChainSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationChainSQLTests.swift; sourceTree = "<group>"; };
56419CCE24A54057004967E1 /* DatabaseDateDecodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseDateDecodingStrategyTests.swift; sourceTree = "<group>"; };
56419CCF24A54057004967E1 /* DatabaseQueueReadOnlyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueReadOnlyTests.swift; sourceTree = "<group>"; };
56419CC624A54056004967E1 /* ValueObservationRegionRecordingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationRegionRecordingTests.swift; path = ValueObservation/ValueObservationRegionRecordingTests.swift; sourceTree = "<group>"; };
56419CC724A54056004967E1 /* DatabasePoolConcurrencyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabasePoolConcurrencyTests.swift; path = Core/DatabasePool/DatabasePoolConcurrencyTests.swift; sourceTree = "<group>"; };
56419CC824A54056004967E1 /* UtilsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = UtilsTests.swift; path = Private/UtilsTests.swift; sourceTree = "<group>"; };
56419CC924A54056004967E1 /* FoundationNSDateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationNSDateTests.swift; path = Support/Foundation/FoundationNSDateTests.swift; sourceTree = "<group>"; };
56419CCA24A54056004967E1 /* SQLExpressionLiteralTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SQLExpressionLiteralTests.swift; path = Private/SQLExpressionLiteralTests.swift; sourceTree = "<group>"; };
56419CCB24A54057004967E1 /* AssociationHasManyOrderingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasManyOrderingTests.swift; path = QueryInterface/Association/AssociationHasManyOrderingTests.swift; sourceTree = "<group>"; };
56419CCC24A54057004967E1 /* DatabaseAfterNextTransactionCommitTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseAfterNextTransactionCommitTests.swift; path = Core/DatabaseAfterNextTransactionCommitTests.swift; sourceTree = "<group>"; };
56419CCD24A54057004967E1 /* AssociationChainSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationChainSQLTests.swift; path = QueryInterface/Association/AssociationChainSQLTests.swift; sourceTree = "<group>"; };
56419CCE24A54057004967E1 /* DatabaseDateDecodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseDateDecodingStrategyTests.swift; path = Record/FetchableRecord/DatabaseDateDecodingStrategyTests.swift; sourceTree = "<group>"; };
56419CCF24A54057004967E1 /* DatabaseQueueReadOnlyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseQueueReadOnlyTests.swift; path = Core/DatabaseQueue/DatabaseQueueReadOnlyTests.swift; sourceTree = "<group>"; };
56419CD024A54057004967E1 /* GRDBTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GRDBTestCase.swift; sourceTree = "<group>"; };
56419CD124A54057004967E1 /* ValueObservationRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationRecordTests.swift; sourceTree = "<group>"; };
56419CD224A54057004967E1 /* TableRecordUpdateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableRecordUpdateTests.swift; sourceTree = "<group>"; };
56419CD324A54057004967E1 /* FTS5TokenizerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS5TokenizerTests.swift; sourceTree = "<group>"; };
56419CD424A54057004967E1 /* CGFloatTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CGFloatTests.swift; sourceTree = "<group>"; };
56419CD524A54057004967E1 /* AssociationBelongsToSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationBelongsToSQLTests.swift; sourceTree = "<group>"; };
56419CD624A54057004967E1 /* DatabaseSuspensionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseSuspensionTests.swift; sourceTree = "<group>"; };
56419CD724A54057004967E1 /* FTS5PatternTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS5PatternTests.swift; sourceTree = "<group>"; };
56419CD824A54057004967E1 /* FTS4TableBuilderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS4TableBuilderTests.swift; sourceTree = "<group>"; };
56419CD924A54058004967E1 /* ColumnExpressionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ColumnExpressionTests.swift; sourceTree = "<group>"; };
56419CDA24A54058004967E1 /* InflectionsTests.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = InflectionsTests.json; sourceTree = "<group>"; };
56419CDB24A54058004967E1 /* RecordPrimaryKeySingleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordPrimaryKeySingleTests.swift; sourceTree = "<group>"; };
56419CDC24A54058004967E1 /* MapCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MapCursorTests.swift; sourceTree = "<group>"; };
56419CDD24A54058004967E1 /* EnumeratedCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EnumeratedCursorTests.swift; sourceTree = "<group>"; };
56419CDE24A54058004967E1 /* IndexInfoTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IndexInfoTests.swift; sourceTree = "<group>"; };
56419CDF24A54058004967E1 /* RawRepresentable+DatabaseValueConvertibleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "RawRepresentable+DatabaseValueConvertibleTests.swift"; sourceTree = "<group>"; };
56419CE024A54058004967E1 /* FTS5WrapperTokenizerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS5WrapperTokenizerTests.swift; sourceTree = "<group>"; };
56419CE124A54058004967E1 /* FoundationNSNullTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationNSNullTests.swift; sourceTree = "<group>"; };
56419CE224A54058004967E1 /* AssociationBelongsToSQLDerivationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationBelongsToSQLDerivationTests.swift; sourceTree = "<group>"; };
56419CE324A54058004967E1 /* DatabaseTimestampTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseTimestampTests.swift; sourceTree = "<group>"; };
56419CE424A54058004967E1 /* DatabaseDateEncodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseDateEncodingStrategyTests.swift; sourceTree = "<group>"; };
56419CE524A54058004967E1 /* RowFromDictionaryLiteralTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RowFromDictionaryLiteralTests.swift; sourceTree = "<group>"; };
56419CE624A54058004967E1 /* DatabaseSnapshotTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseSnapshotTests.swift; sourceTree = "<group>"; };
56419CE724A54058004967E1 /* AnyCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AnyCursorTests.swift; sourceTree = "<group>"; };
56419CE824A54059004967E1 /* DatabaseCollationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseCollationTests.swift; sourceTree = "<group>"; };
56419CE924A54059004967E1 /* AssociationHasOneThroughFetchableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasOneThroughFetchableRecordTests.swift; sourceTree = "<group>"; };
56419CEA24A54059004967E1 /* SchedulingWatchdogTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SchedulingWatchdogTests.swift; sourceTree = "<group>"; };
56419CEB24A54059004967E1 /* AssociationParallelSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationParallelSQLTests.swift; sourceTree = "<group>"; };
56419CEC24A54059004967E1 /* DatabasePoolBackupTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabasePoolBackupTests.swift; sourceTree = "<group>"; };
56419CED24A54059004967E1 /* DatabaseValueConversionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseValueConversionTests.swift; sourceTree = "<group>"; };
56419CEE24A54059004967E1 /* FoundationNSURLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationNSURLTests.swift; sourceTree = "<group>"; };
56419CEF24A54059004967E1 /* DatabaseQueueSchemaCacheTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueSchemaCacheTests.swift; sourceTree = "<group>"; };
56419CF024A54059004967E1 /* InflectionsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = InflectionsTests.swift; sourceTree = "<group>"; };
56419CF124A54059004967E1 /* ForeignKeyInfoTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ForeignKeyInfoTests.swift; sourceTree = "<group>"; };
56419CF224A54059004967E1 /* FoundationNSStringTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationNSStringTests.swift; sourceTree = "<group>"; };
56419CF324A54059004967E1 /* AssociationChainRowScopesTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationChainRowScopesTests.swift; sourceTree = "<group>"; };
56419CF424A54059004967E1 /* PoolTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PoolTests.swift; sourceTree = "<group>"; };
56419CF524A54059004967E1 /* DerivableRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DerivableRequestTests.swift; sourceTree = "<group>"; };
56419CF624A5405A004967E1 /* RowFetchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RowFetchTests.swift; sourceTree = "<group>"; };
56419CF724A5405A004967E1 /* DatabaseRegionObservationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseRegionObservationTests.swift; sourceTree = "<group>"; };
56419CF824A5405A004967E1 /* ValueObservationRecorderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationRecorderTests.swift; sourceTree = "<group>"; };
56419CF924A5405A004967E1 /* AssociationHasOneThroughRowScopeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasOneThroughRowScopeTests.swift; sourceTree = "<group>"; };
56419CFA24A5405A004967E1 /* SelectStatementTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SelectStatementTests.swift; sourceTree = "<group>"; };
56419CFB24A5405A004967E1 /* QueryInterfaceExpressionsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = QueryInterfaceExpressionsTests.swift; sourceTree = "<group>"; };
56419CFC24A5405A004967E1 /* FoundationURLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationURLTests.swift; sourceTree = "<group>"; };
56419CFD24A5405A004967E1 /* NumericOverflowTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NumericOverflowTests.swift; sourceTree = "<group>"; };
56419CFE24A5405A004967E1 /* DatabaseAbortedTransactionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseAbortedTransactionTests.swift; sourceTree = "<group>"; };
56419CFF24A5405A004967E1 /* AssociationHasManyThroughRowScopeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasManyThroughRowScopeTests.swift; sourceTree = "<group>"; };
56419D0024A5405A004967E1 /* JoinSupportTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JoinSupportTests.swift; sourceTree = "<group>"; };
56419D0124A5405A004967E1 /* SQLLiteralTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SQLLiteralTests.swift; sourceTree = "<group>"; };
56419D0224A5405A004967E1 /* MutablePersistableRecordChangesTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MutablePersistableRecordChangesTests.swift; sourceTree = "<group>"; };
56419D0324A5405B004967E1 /* FTS3TokenizerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS3TokenizerTests.swift; sourceTree = "<group>"; };
56419D0424A5405B004967E1 /* DatabaseTraceTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseTraceTests.swift; sourceTree = "<group>"; };
56419D0524A5405B004967E1 /* ValueObservationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationTests.swift; sourceTree = "<group>"; };
56419D0624A5405B004967E1 /* AssociationHasOneThroughSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasOneThroughSQLTests.swift; sourceTree = "<group>"; };
56419D0724A5405B004967E1 /* FTS3TableBuilderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS3TableBuilderTests.swift; sourceTree = "<group>"; };
56419D0824A5405B004967E1 /* RecordMinimalPrimaryKeySingleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordMinimalPrimaryKeySingleTests.swift; sourceTree = "<group>"; };
56419D0924A5405B004967E1 /* TransactionObserverTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TransactionObserverTests.swift; sourceTree = "<group>"; };
56419D0A24A5405B004967E1 /* DatabaseQueueReleaseMemoryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueReleaseMemoryTests.swift; sourceTree = "<group>"; };
56419D0B24A5405B004967E1 /* SQLRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SQLRequestTests.swift; sourceTree = "<group>"; };
56419D0C24A5405B004967E1 /* RecordEditedTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordEditedTests.swift; sourceTree = "<group>"; };
56419D0D24A5405B004967E1 /* DatabaseLogErrorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseLogErrorTests.swift; sourceTree = "<group>"; };
56419D0E24A5405B004967E1 /* RowTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RowTestCase.swift; sourceTree = "<group>"; };
56419D0F24A5405B004967E1 /* FoundationNSDecimalNumberTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationNSDecimalNumberTests.swift; sourceTree = "<group>"; };
56419D1024A5405B004967E1 /* DatabaseValueConvertibleEscapingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseValueConvertibleEscapingTests.swift; sourceTree = "<group>"; };
56419D1124A5405C004967E1 /* DatabaseConfigurationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseConfigurationTests.swift; sourceTree = "<group>"; };
56419D1224A5405C004967E1 /* DataMemoryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DataMemoryTests.swift; sourceTree = "<group>"; };
56419D1324A5405C004967E1 /* ValueObservationPrintTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationPrintTests.swift; sourceTree = "<group>"; };
56419D1424A5405C004967E1 /* DatabaseValueConvertibleFetchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseValueConvertibleFetchTests.swift; sourceTree = "<group>"; };
56419D1524A5405C004967E1 /* ValueObservationDatabaseValueConvertibleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationDatabaseValueConvertibleTests.swift; sourceTree = "<group>"; };
56419D1624A5405C004967E1 /* DatabaseWriterTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseWriterTests.swift; sourceTree = "<group>"; };
56419D1724A5405C004967E1 /* DatabaseAggregateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseAggregateTests.swift; sourceTree = "<group>"; };
56419D1824A5405C004967E1 /* DatabaseUUIDEncodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseUUIDEncodingStrategyTests.swift; sourceTree = "<group>"; };
56419D1924A5405C004967E1 /* CompilationProtocolTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CompilationProtocolTests.swift; sourceTree = "<group>"; };
56419D1A24A5405C004967E1 /* PrefixCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PrefixCursorTests.swift; sourceTree = "<group>"; };
56419D1B24A5405C004967E1 /* FoundationUUIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationUUIDTests.swift; sourceTree = "<group>"; };
56419D1C24A5405C004967E1 /* AssociationHasOneThroughDecodableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasOneThroughDecodableRecordTests.swift; sourceTree = "<group>"; };
56419D1D24A5405C004967E1 /* AssociationHasManyThroughOrderingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasManyThroughOrderingTests.swift; sourceTree = "<group>"; };
56419D1E24A5405C004967E1 /* ValueObservationFetchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationFetchTests.swift; sourceTree = "<group>"; };
56419D1F24A5405D004967E1 /* DatabasePoolReadOnlyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabasePoolReadOnlyTests.swift; sourceTree = "<group>"; };
56419D2024A5405D004967E1 /* AssociationPrefetchingObservationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationPrefetchingObservationTests.swift; sourceTree = "<group>"; };
56419D2124A5405D004967E1 /* DatabaseTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseTests.swift; sourceTree = "<group>"; };
56419D2224A5405D004967E1 /* TruncateOptimizationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TruncateOptimizationTests.swift; sourceTree = "<group>"; };
56419D2324A5405D004967E1 /* AssociationAggregateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationAggregateTests.swift; sourceTree = "<group>"; };
56419D2424A5405D004967E1 /* ValueObservationReadonlyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationReadonlyTests.swift; sourceTree = "<group>"; };
56419D2524A5405D004967E1 /* RecordPrimaryKeySingleWithReplaceConflictResolutionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordPrimaryKeySingleWithReplaceConflictResolutionTests.swift; sourceTree = "<group>"; };
56419D2624A5405D004967E1 /* DatabaseRegionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseRegionTests.swift; sourceTree = "<group>"; };
56419D2724A5405D004967E1 /* DropWhileCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DropWhileCursorTests.swift; sourceTree = "<group>"; };
56419D2824A5405D004967E1 /* DatabaseQueueConcurrencyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueConcurrencyTests.swift; sourceTree = "<group>"; };
56419D2924A5405D004967E1 /* DatabaseReaderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseReaderTests.swift; sourceTree = "<group>"; };
56419D2A24A5405D004967E1 /* RecordPrimaryKeyRowIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordPrimaryKeyRowIDTests.swift; sourceTree = "<group>"; };
56419D2B24A5405D004967E1 /* FTS3PatternTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS3PatternTests.swift; sourceTree = "<group>"; };
56419D2C24A5405E004967E1 /* AssociationPrefetchingCodableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationPrefetchingCodableRecordTests.swift; sourceTree = "<group>"; };
56419D2D24A5405E004967E1 /* AssociationParallelDecodableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationParallelDecodableRecordTests.swift; sourceTree = "<group>"; };
56419D2E24A5405E004967E1 /* FoundationDataTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationDataTests.swift; sourceTree = "<group>"; };
56419D2F24A5405E004967E1 /* MutablePersistableRecordEncodableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MutablePersistableRecordEncodableTests.swift; sourceTree = "<group>"; };
56419D3024A5405E004967E1 /* AssociationHasManySQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasManySQLTests.swift; sourceTree = "<group>"; };
56419D3124A5405E004967E1 /* FTS5CustomTokenizerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS5CustomTokenizerTests.swift; sourceTree = "<group>"; };
56419D3224A5405E004967E1 /* DatabaseValueConvertibleDecodableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseValueConvertibleDecodableTests.swift; sourceTree = "<group>"; };
56419D3324A5405E004967E1 /* PrefixWhileCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PrefixWhileCursorTests.swift; sourceTree = "<group>"; };
56419D3424A5405E004967E1 /* FoundationDateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationDateTests.swift; sourceTree = "<group>"; };
56419D3524A5405E004967E1 /* AssociationBelongsToFetchableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationBelongsToFetchableRecordTests.swift; sourceTree = "<group>"; };
56419D3624A5405E004967E1 /* FTS3RecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS3RecordTests.swift; sourceTree = "<group>"; };
56419D3724A5405E004967E1 /* StatementArgumentsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StatementArgumentsTests.swift; sourceTree = "<group>"; };
56419D3824A5405E004967E1 /* FetchableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FetchableRecordTests.swift; sourceTree = "<group>"; };
56419D3924A5405F004967E1 /* QueryInterfaceExtensibilityTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = QueryInterfaceExtensibilityTests.swift; sourceTree = "<group>"; };
56419D3A24A5405F004967E1 /* TableRecordDeleteTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableRecordDeleteTests.swift; sourceTree = "<group>"; };
56419D3B24A5405F004967E1 /* MutablePersistableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MutablePersistableRecordTests.swift; sourceTree = "<group>"; };
56419D3C24A5405F004967E1 /* CursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CursorTests.swift; sourceTree = "<group>"; };
56419D3D24A5405F004967E1 /* DatabasePoolReleaseMemoryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabasePoolReleaseMemoryTests.swift; sourceTree = "<group>"; };
56419D3E24A5405F004967E1 /* DatabaseValueTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseValueTests.swift; sourceTree = "<group>"; };
56419D3F24A5405F004967E1 /* ValueObservationQueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationQueryInterfaceRequestTests.swift; sourceTree = "<group>"; };
56419D4024A5405F004967E1 /* RowFromDictionaryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RowFromDictionaryTests.swift; sourceTree = "<group>"; };
56419D4124A5405F004967E1 /* DatabasePoolCollationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabasePoolCollationTests.swift; sourceTree = "<group>"; };
56419D4224A5405F004967E1 /* RecordMinimalPrimaryKeyRowIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordMinimalPrimaryKeyRowIDTests.swift; sourceTree = "<group>"; };
56419D4324A5405F004967E1 /* StatementArguments+FoundationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "StatementArguments+FoundationTests.swift"; sourceTree = "<group>"; };
56419D4424A5405F004967E1 /* MutablePersistableRecordPersistenceConflictPolicyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MutablePersistableRecordPersistenceConflictPolicyTests.swift; sourceTree = "<group>"; };
56419D4524A5405F004967E1 /* PersistableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PersistableRecordTests.swift; sourceTree = "<group>"; };
56419D4624A54060004967E1 /* AssociationHasManyThroughSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasManyThroughSQLTests.swift; sourceTree = "<group>"; };
56419D4724A54060004967E1 /* AssociationHasOneThroughSQLDerivationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasOneThroughSQLDerivationTests.swift; sourceTree = "<group>"; };
56419D4824A54060004967E1 /* FTS5TableBuilderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS5TableBuilderTests.swift; sourceTree = "<group>"; };
56419D4924A54060004967E1 /* DatabaseQueueBackupTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueBackupTests.swift; sourceTree = "<group>"; };
56419D4A24A54060004967E1 /* TableRecord+QueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "TableRecord+QueryInterfaceRequestTests.swift"; sourceTree = "<group>"; };
56419D4B24A54060004967E1 /* FlattenCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FlattenCursorTests.swift; sourceTree = "<group>"; };
56419D4C24A54060004967E1 /* RecordPrimaryKeyMultipleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordPrimaryKeyMultipleTests.swift; sourceTree = "<group>"; };
56419D4D24A54060004967E1 /* ValueObservationRowTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationRowTests.swift; sourceTree = "<group>"; };
56419D4E24A54060004967E1 /* FTS5RecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS5RecordTests.swift; sourceTree = "<group>"; };
56419D4F24A54060004967E1 /* OrderedDictionaryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OrderedDictionaryTests.swift; sourceTree = "<group>"; };
56419D5024A54060004967E1 /* AssociationParallelRowScopesTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationParallelRowScopesTests.swift; sourceTree = "<group>"; };
56419D5124A54060004967E1 /* DatabaseValueConversionErrorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseValueConversionErrorTests.swift; sourceTree = "<group>"; };
56419D5224A54060004967E1 /* QueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = QueryInterfaceRequestTests.swift; sourceTree = "<group>"; };
56419D5324A54061004967E1 /* RowFromStatementTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RowFromStatementTests.swift; sourceTree = "<group>"; };
56419D5424A54061004967E1 /* ColumnInfoTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ColumnInfoTests.swift; sourceTree = "<group>"; };
56419D5524A54061004967E1 /* AssociationHasOneSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasOneSQLTests.swift; sourceTree = "<group>"; };
56419D5624A54061004967E1 /* ValueObservationRecorder.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationRecorder.swift; sourceTree = "<group>"; };
56419D5724A54061004967E1 /* TableDefinitionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableDefinitionTests.swift; sourceTree = "<group>"; };
56419D5824A54061004967E1 /* AssociationRowScopeSearchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationRowScopeSearchTests.swift; sourceTree = "<group>"; };
56419D5924A54061004967E1 /* FoundationNSUUIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationNSUUIDTests.swift; sourceTree = "<group>"; };
56419D5A24A54061004967E1 /* Row+FoundationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Row+FoundationTests.swift"; sourceTree = "<group>"; };
56419D5B24A54061004967E1 /* FilterCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FilterCursorTests.swift; sourceTree = "<group>"; };
56419D5C24A54061004967E1 /* RowAdapterTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RowAdapterTests.swift; sourceTree = "<group>"; };
56419D5D24A54061004967E1 /* DatabaseValueConvertibleEncodableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseValueConvertibleEncodableTests.swift; sourceTree = "<group>"; };
56419D5E24A54061004967E1 /* RecordPersistenceConflictPolicy.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordPersistenceConflictPolicy.swift; sourceTree = "<group>"; };
56419D5F24A54061004967E1 /* RecordSubClassTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordSubClassTests.swift; sourceTree = "<group>"; };
56419D6024A54061004967E1 /* RecordPrimaryKeyNoneTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordPrimaryKeyNoneTests.swift; sourceTree = "<group>"; };
56419D6124A54062004967E1 /* StatementColumnConvertibleFetchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StatementColumnConvertibleFetchTests.swift; sourceTree = "<group>"; };
56419D6224A54062004967E1 /* FoundationNSDataTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationNSDataTests.swift; sourceTree = "<group>"; };
56419D6324A54062004967E1 /* AssociationTableAliasTestsSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationTableAliasTestsSQLTests.swift; sourceTree = "<group>"; };
56419D6424A54062004967E1 /* ValueObservationCountTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationCountTests.swift; sourceTree = "<group>"; };
56419D6524A54062004967E1 /* AssociationBelongsToRowScopeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationBelongsToRowScopeTests.swift; sourceTree = "<group>"; };
56419D6624A54062004967E1 /* FoundationDateComponentsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationDateComponentsTests.swift; sourceTree = "<group>"; };
56419CD124A54057004967E1 /* ValueObservationRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationRecordTests.swift; path = ValueObservation/ValueObservationRecordTests.swift; sourceTree = "<group>"; };
56419CD224A54057004967E1 /* TableRecordUpdateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TableRecordUpdateTests.swift; path = Record/TableRecord/TableRecordUpdateTests.swift; sourceTree = "<group>"; };
56419CD324A54057004967E1 /* FTS5TokenizerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS5TokenizerTests.swift; path = FTS/FTS5TokenizerTests.swift; sourceTree = "<group>"; };
56419CD424A54057004967E1 /* CGFloatTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = CGFloatTests.swift; path = Support/CGFloatTests.swift; sourceTree = "<group>"; };
56419CD524A54057004967E1 /* AssociationBelongsToSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationBelongsToSQLTests.swift; path = QueryInterface/Association/AssociationBelongsToSQLTests.swift; sourceTree = "<group>"; };
56419CD624A54057004967E1 /* DatabaseSuspensionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseSuspensionTests.swift; path = Core/DatabaseSuspensionTests.swift; sourceTree = "<group>"; };
56419CD724A54057004967E1 /* FTS5PatternTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS5PatternTests.swift; path = FTS/FTS5PatternTests.swift; sourceTree = "<group>"; };
56419CD824A54057004967E1 /* FTS4TableBuilderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS4TableBuilderTests.swift; path = FTS/FTS4TableBuilderTests.swift; sourceTree = "<group>"; };
56419CD924A54058004967E1 /* ColumnExpressionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ColumnExpressionTests.swift; path = QueryInterface/ColumnExpressionTests.swift; sourceTree = "<group>"; };
56419CDA24A54058004967E1 /* InflectionsTests.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = InflectionsTests.json; path = Private/InflectionsTests.json; sourceTree = "<group>"; };
56419CDB24A54058004967E1 /* RecordPrimaryKeySingleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordPrimaryKeySingleTests.swift; path = Record/Record/RecordPrimaryKeySingleTests.swift; sourceTree = "<group>"; };
56419CDC24A54058004967E1 /* MapCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MapCursorTests.swift; path = Core/Cursor/MapCursorTests.swift; sourceTree = "<group>"; };
56419CDD24A54058004967E1 /* EnumeratedCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = EnumeratedCursorTests.swift; path = Core/Cursor/EnumeratedCursorTests.swift; sourceTree = "<group>"; };
56419CDE24A54058004967E1 /* IndexInfoTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = IndexInfoTests.swift; path = Core/IndexInfoTests.swift; sourceTree = "<group>"; };
56419CDF24A54058004967E1 /* RawRepresentable+DatabaseValueConvertibleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "RawRepresentable+DatabaseValueConvertibleTests.swift"; path = "Core/DatabaseValueConvertible/RawRepresentable+DatabaseValueConvertibleTests.swift"; sourceTree = "<group>"; };
56419CE024A54058004967E1 /* FTS5WrapperTokenizerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS5WrapperTokenizerTests.swift; path = FTS/FTS5WrapperTokenizerTests.swift; sourceTree = "<group>"; };
56419CE124A54058004967E1 /* FoundationNSNullTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationNSNullTests.swift; path = Support/Foundation/FoundationNSNullTests.swift; sourceTree = "<group>"; };
56419CE224A54058004967E1 /* AssociationBelongsToSQLDerivationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationBelongsToSQLDerivationTests.swift; path = QueryInterface/Association/AssociationBelongsToSQLDerivationTests.swift; sourceTree = "<group>"; };
56419CE324A54058004967E1 /* DatabaseTimestampTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseTimestampTests.swift; path = Core/DatabaseValueConvertible/DatabaseTimestampTests.swift; sourceTree = "<group>"; };
56419CE424A54058004967E1 /* DatabaseDateEncodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseDateEncodingStrategyTests.swift; path = Record/PersistableRecord/DatabaseDateEncodingStrategyTests.swift; sourceTree = "<group>"; };
56419CE524A54058004967E1 /* RowFromDictionaryLiteralTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RowFromDictionaryLiteralTests.swift; path = Core/Row/RowFromDictionaryLiteralTests.swift; sourceTree = "<group>"; };
56419CE624A54058004967E1 /* DatabaseSnapshotTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseSnapshotTests.swift; path = Core/DatabaseSnapshotTests.swift; sourceTree = "<group>"; };
56419CE724A54058004967E1 /* AnyCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AnyCursorTests.swift; path = Core/Cursor/AnyCursorTests.swift; sourceTree = "<group>"; };
56419CE824A54059004967E1 /* DatabaseCollationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseCollationTests.swift; path = Core/DatabaseCollationTests.swift; sourceTree = "<group>"; };
56419CE924A54059004967E1 /* AssociationHasOneThroughFetchableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasOneThroughFetchableRecordTests.swift; path = QueryInterface/Association/AssociationHasOneThroughFetchableRecordTests.swift; sourceTree = "<group>"; };
56419CEA24A54059004967E1 /* SchedulingWatchdogTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SchedulingWatchdogTests.swift; path = Core/SchedulingWatchdogTests.swift; sourceTree = "<group>"; };
56419CEB24A54059004967E1 /* AssociationParallelSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationParallelSQLTests.swift; path = QueryInterface/Association/AssociationParallelSQLTests.swift; sourceTree = "<group>"; };
56419CEC24A54059004967E1 /* DatabasePoolBackupTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabasePoolBackupTests.swift; path = Core/DatabasePool/DatabasePoolBackupTests.swift; sourceTree = "<group>"; };
56419CED24A54059004967E1 /* DatabaseValueConversionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseValueConversionTests.swift; path = Core/DatabaseValueConversionTests.swift; sourceTree = "<group>"; };
56419CEE24A54059004967E1 /* FoundationNSURLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationNSURLTests.swift; path = Support/Foundation/FoundationNSURLTests.swift; sourceTree = "<group>"; };
56419CEF24A54059004967E1 /* DatabaseQueueSchemaCacheTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseQueueSchemaCacheTests.swift; path = Private/DatabaseQueueSchemaCacheTests.swift; sourceTree = "<group>"; };
56419CF024A54059004967E1 /* InflectionsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = InflectionsTests.swift; path = Private/InflectionsTests.swift; sourceTree = "<group>"; };
56419CF124A54059004967E1 /* ForeignKeyInfoTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ForeignKeyInfoTests.swift; path = Core/ForeignKeyInfoTests.swift; sourceTree = "<group>"; };
56419CF224A54059004967E1 /* FoundationNSStringTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationNSStringTests.swift; path = Support/Foundation/FoundationNSStringTests.swift; sourceTree = "<group>"; };
56419CF324A54059004967E1 /* AssociationChainRowScopesTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationChainRowScopesTests.swift; path = QueryInterface/Association/AssociationChainRowScopesTests.swift; sourceTree = "<group>"; };
56419CF424A54059004967E1 /* PoolTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PoolTests.swift; path = Private/PoolTests.swift; sourceTree = "<group>"; };
56419CF524A54059004967E1 /* DerivableRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DerivableRequestTests.swift; path = QueryInterface/DerivableRequestTests.swift; sourceTree = "<group>"; };
56419CF624A5405A004967E1 /* RowFetchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RowFetchTests.swift; path = Core/Row/RowFetchTests.swift; sourceTree = "<group>"; };
56419CF724A5405A004967E1 /* DatabaseRegionObservationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseRegionObservationTests.swift; path = Core/DatabaseRegionObservationTests.swift; sourceTree = "<group>"; };
56419CF824A5405A004967E1 /* ValueObservationRecorderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationRecorderTests.swift; path = ValueObservation/ValueObservationRecorderTests.swift; sourceTree = "<group>"; };
56419CF924A5405A004967E1 /* AssociationHasOneThroughRowScopeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasOneThroughRowScopeTests.swift; path = QueryInterface/Association/AssociationHasOneThroughRowScopeTests.swift; sourceTree = "<group>"; };
56419CFA24A5405A004967E1 /* SelectStatementTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SelectStatementTests.swift; path = Core/Statement/SelectStatementTests.swift; sourceTree = "<group>"; };
56419CFB24A5405A004967E1 /* QueryInterfaceExpressionsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = QueryInterfaceExpressionsTests.swift; path = QueryInterface/QueryInterfaceExpressionsTests.swift; sourceTree = "<group>"; };
56419CFC24A5405A004967E1 /* FoundationURLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationURLTests.swift; path = Support/Foundation/FoundationURLTests.swift; sourceTree = "<group>"; };
56419CFD24A5405A004967E1 /* NumericOverflowTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = NumericOverflowTests.swift; path = Core/NumericOverflowTests.swift; sourceTree = "<group>"; };
56419CFE24A5405A004967E1 /* DatabaseAbortedTransactionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseAbortedTransactionTests.swift; path = Core/DatabaseAbortedTransactionTests.swift; sourceTree = "<group>"; };
56419CFF24A5405A004967E1 /* AssociationHasManyThroughRowScopeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasManyThroughRowScopeTests.swift; path = QueryInterface/Association/AssociationHasManyThroughRowScopeTests.swift; sourceTree = "<group>"; };
56419D0024A5405A004967E1 /* JoinSupportTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = JoinSupportTests.swift; path = Record/JoinSupportTests.swift; sourceTree = "<group>"; };
56419D0124A5405A004967E1 /* SQLLiteralTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SQLLiteralTests.swift; path = Core/SQLLiteralTests.swift; sourceTree = "<group>"; };
56419D0224A5405A004967E1 /* MutablePersistableRecordChangesTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MutablePersistableRecordChangesTests.swift; path = Record/PersistableRecord/MutablePersistableRecordChangesTests.swift; sourceTree = "<group>"; };
56419D0324A5405B004967E1 /* FTS3TokenizerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS3TokenizerTests.swift; path = FTS/FTS3TokenizerTests.swift; sourceTree = "<group>"; };
56419D0424A5405B004967E1 /* DatabaseTraceTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseTraceTests.swift; path = Core/DatabaseTraceTests.swift; sourceTree = "<group>"; };
56419D0524A5405B004967E1 /* ValueObservationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationTests.swift; path = ValueObservation/ValueObservationTests.swift; sourceTree = "<group>"; };
56419D0624A5405B004967E1 /* AssociationHasOneThroughSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasOneThroughSQLTests.swift; path = QueryInterface/Association/AssociationHasOneThroughSQLTests.swift; sourceTree = "<group>"; };
56419D0724A5405B004967E1 /* FTS3TableBuilderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS3TableBuilderTests.swift; path = FTS/FTS3TableBuilderTests.swift; sourceTree = "<group>"; };
56419D0824A5405B004967E1 /* RecordMinimalPrimaryKeySingleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordMinimalPrimaryKeySingleTests.swift; path = Record/Record/RecordMinimalPrimaryKeySingleTests.swift; sourceTree = "<group>"; };
56419D0924A5405B004967E1 /* TransactionObserverTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TransactionObserverTests.swift; path = Core/TransactionObserver/TransactionObserverTests.swift; sourceTree = "<group>"; };
56419D0A24A5405B004967E1 /* DatabaseQueueReleaseMemoryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseQueueReleaseMemoryTests.swift; path = Private/DatabaseQueueReleaseMemoryTests.swift; sourceTree = "<group>"; };
56419D0B24A5405B004967E1 /* SQLRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SQLRequestTests.swift; path = Core/SQLRequestTests.swift; sourceTree = "<group>"; };
56419D0C24A5405B004967E1 /* RecordEditedTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordEditedTests.swift; path = Record/Record/RecordEditedTests.swift; sourceTree = "<group>"; };
56419D0D24A5405B004967E1 /* DatabaseLogErrorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseLogErrorTests.swift; path = Core/DatabaseLogErrorTests.swift; sourceTree = "<group>"; };
56419D0E24A5405B004967E1 /* RowTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RowTestCase.swift; path = Core/Row/RowTestCase.swift; sourceTree = "<group>"; };
56419D0F24A5405B004967E1 /* FoundationNSDecimalNumberTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationNSDecimalNumberTests.swift; path = Support/Foundation/FoundationNSDecimalNumberTests.swift; sourceTree = "<group>"; };
56419D1024A5405B004967E1 /* DatabaseValueConvertibleEscapingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseValueConvertibleEscapingTests.swift; path = Private/DatabaseValueConvertibleEscapingTests.swift; sourceTree = "<group>"; };
56419D1124A5405C004967E1 /* DatabaseConfigurationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseConfigurationTests.swift; path = Core/DatabaseConfigurationTests.swift; sourceTree = "<group>"; };
56419D1224A5405C004967E1 /* DataMemoryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DataMemoryTests.swift; path = Private/DataMemoryTests.swift; sourceTree = "<group>"; };
56419D1324A5405C004967E1 /* ValueObservationPrintTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationPrintTests.swift; path = ValueObservation/ValueObservationPrintTests.swift; sourceTree = "<group>"; };
56419D1424A5405C004967E1 /* DatabaseValueConvertibleFetchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseValueConvertibleFetchTests.swift; path = Core/DatabaseValueConvertible/DatabaseValueConvertibleFetchTests.swift; sourceTree = "<group>"; };
56419D1524A5405C004967E1 /* ValueObservationDatabaseValueConvertibleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationDatabaseValueConvertibleTests.swift; path = ValueObservation/ValueObservationDatabaseValueConvertibleTests.swift; sourceTree = "<group>"; };
56419D1624A5405C004967E1 /* DatabaseWriterTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseWriterTests.swift; path = Core/DatabaseWriterTests.swift; sourceTree = "<group>"; };
56419D1724A5405C004967E1 /* DatabaseAggregateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseAggregateTests.swift; path = Core/DatabaseAggregateTests.swift; sourceTree = "<group>"; };
56419D1824A5405C004967E1 /* DatabaseUUIDEncodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseUUIDEncodingStrategyTests.swift; path = Record/PersistableRecord/DatabaseUUIDEncodingStrategyTests.swift; sourceTree = "<group>"; };
56419D1924A5405C004967E1 /* CompilationProtocolTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = CompilationProtocolTests.swift; path = Compilation/CompilationProtocolTests.swift; sourceTree = "<group>"; };
56419D1A24A5405C004967E1 /* PrefixCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PrefixCursorTests.swift; path = Core/Cursor/PrefixCursorTests.swift; sourceTree = "<group>"; };
56419D1B24A5405C004967E1 /* FoundationUUIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationUUIDTests.swift; path = Support/Foundation/FoundationUUIDTests.swift; sourceTree = "<group>"; };
56419D1C24A5405C004967E1 /* AssociationHasOneThroughDecodableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasOneThroughDecodableRecordTests.swift; path = QueryInterface/Association/AssociationHasOneThroughDecodableRecordTests.swift; sourceTree = "<group>"; };
56419D1D24A5405C004967E1 /* AssociationHasManyThroughOrderingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasManyThroughOrderingTests.swift; path = QueryInterface/Association/AssociationHasManyThroughOrderingTests.swift; sourceTree = "<group>"; };
56419D1E24A5405C004967E1 /* ValueObservationFetchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationFetchTests.swift; path = ValueObservation/ValueObservationFetchTests.swift; sourceTree = "<group>"; };
56419D1F24A5405D004967E1 /* DatabasePoolReadOnlyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabasePoolReadOnlyTests.swift; path = Core/DatabasePool/DatabasePoolReadOnlyTests.swift; sourceTree = "<group>"; };
56419D2024A5405D004967E1 /* AssociationPrefetchingObservationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationPrefetchingObservationTests.swift; path = QueryInterface/Association/AssociationPrefetchingObservationTests.swift; sourceTree = "<group>"; };
56419D2124A5405D004967E1 /* DatabaseTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseTests.swift; path = Core/DatabaseTests.swift; sourceTree = "<group>"; };
56419D2224A5405D004967E1 /* TruncateOptimizationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TruncateOptimizationTests.swift; path = Core/TransactionObserver/TruncateOptimizationTests.swift; sourceTree = "<group>"; };
56419D2324A5405D004967E1 /* AssociationAggregateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationAggregateTests.swift; path = QueryInterface/Association/AssociationAggregateTests.swift; sourceTree = "<group>"; };
56419D2424A5405D004967E1 /* ValueObservationReadonlyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationReadonlyTests.swift; path = ValueObservation/ValueObservationReadonlyTests.swift; sourceTree = "<group>"; };
56419D2524A5405D004967E1 /* RecordPrimaryKeySingleWithReplaceConflictResolutionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordPrimaryKeySingleWithReplaceConflictResolutionTests.swift; path = Record/Record/RecordPrimaryKeySingleWithReplaceConflictResolutionTests.swift; sourceTree = "<group>"; };
56419D2624A5405D004967E1 /* DatabaseRegionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseRegionTests.swift; path = Private/DatabaseRegionTests.swift; sourceTree = "<group>"; };
56419D2724A5405D004967E1 /* DropWhileCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DropWhileCursorTests.swift; path = Core/Cursor/DropWhileCursorTests.swift; sourceTree = "<group>"; };
56419D2824A5405D004967E1 /* DatabaseQueueConcurrencyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseQueueConcurrencyTests.swift; path = Core/DatabaseQueue/DatabaseQueueConcurrencyTests.swift; sourceTree = "<group>"; };
56419D2924A5405D004967E1 /* DatabaseReaderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseReaderTests.swift; path = Core/DatabaseReaderTests.swift; sourceTree = "<group>"; };
56419D2A24A5405D004967E1 /* RecordPrimaryKeyRowIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordPrimaryKeyRowIDTests.swift; path = Record/Record/RecordPrimaryKeyRowIDTests.swift; sourceTree = "<group>"; };
56419D2B24A5405D004967E1 /* FTS3PatternTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS3PatternTests.swift; path = FTS/FTS3PatternTests.swift; sourceTree = "<group>"; };
56419D2C24A5405E004967E1 /* AssociationPrefetchingCodableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationPrefetchingCodableRecordTests.swift; path = QueryInterface/Association/AssociationPrefetchingCodableRecordTests.swift; sourceTree = "<group>"; };
56419D2D24A5405E004967E1 /* AssociationParallelDecodableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationParallelDecodableRecordTests.swift; path = QueryInterface/Association/AssociationParallelDecodableRecordTests.swift; sourceTree = "<group>"; };
56419D2E24A5405E004967E1 /* FoundationDataTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationDataTests.swift; path = Support/Foundation/FoundationDataTests.swift; sourceTree = "<group>"; };
56419D2F24A5405E004967E1 /* MutablePersistableRecordEncodableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MutablePersistableRecordEncodableTests.swift; path = Record/PersistableRecord/MutablePersistableRecordEncodableTests.swift; sourceTree = "<group>"; };
56419D3024A5405E004967E1 /* AssociationHasManySQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasManySQLTests.swift; path = QueryInterface/Association/AssociationHasManySQLTests.swift; sourceTree = "<group>"; };
56419D3124A5405E004967E1 /* FTS5CustomTokenizerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS5CustomTokenizerTests.swift; path = FTS/FTS5CustomTokenizerTests.swift; sourceTree = "<group>"; };
56419D3224A5405E004967E1 /* DatabaseValueConvertibleDecodableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseValueConvertibleDecodableTests.swift; path = Core/DatabaseValueConvertible/DatabaseValueConvertibleDecodableTests.swift; sourceTree = "<group>"; };
56419D3324A5405E004967E1 /* PrefixWhileCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PrefixWhileCursorTests.swift; path = Core/Cursor/PrefixWhileCursorTests.swift; sourceTree = "<group>"; };
56419D3424A5405E004967E1 /* FoundationDateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationDateTests.swift; path = Support/Foundation/FoundationDateTests.swift; sourceTree = "<group>"; };
56419D3524A5405E004967E1 /* AssociationBelongsToFetchableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationBelongsToFetchableRecordTests.swift; path = QueryInterface/Association/AssociationBelongsToFetchableRecordTests.swift; sourceTree = "<group>"; };
56419D3624A5405E004967E1 /* FTS3RecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS3RecordTests.swift; path = FTS/FTS3RecordTests.swift; sourceTree = "<group>"; };
56419D3724A5405E004967E1 /* StatementArgumentsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = StatementArgumentsTests.swift; path = Core/Statement/StatementArgumentsTests.swift; sourceTree = "<group>"; };
56419D3824A5405E004967E1 /* FetchableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FetchableRecordTests.swift; path = Record/FetchableRecord/FetchableRecordTests.swift; sourceTree = "<group>"; };
56419D3924A5405F004967E1 /* QueryInterfaceExtensibilityTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = QueryInterfaceExtensibilityTests.swift; path = QueryInterface/QueryInterfaceExtensibilityTests.swift; sourceTree = "<group>"; };
56419D3A24A5405F004967E1 /* TableRecordDeleteTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TableRecordDeleteTests.swift; path = Record/TableRecord/TableRecordDeleteTests.swift; sourceTree = "<group>"; };
56419D3B24A5405F004967E1 /* MutablePersistableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MutablePersistableRecordTests.swift; path = Record/PersistableRecord/MutablePersistableRecordTests.swift; sourceTree = "<group>"; };
56419D3C24A5405F004967E1 /* CursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = CursorTests.swift; path = Core/Cursor/CursorTests.swift; sourceTree = "<group>"; };
56419D3D24A5405F004967E1 /* DatabasePoolReleaseMemoryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabasePoolReleaseMemoryTests.swift; path = Private/DatabasePoolReleaseMemoryTests.swift; sourceTree = "<group>"; };
56419D3E24A5405F004967E1 /* DatabaseValueTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseValueTests.swift; path = Core/DatabaseValueTests.swift; sourceTree = "<group>"; };
56419D3F24A5405F004967E1 /* ValueObservationQueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationQueryInterfaceRequestTests.swift; path = ValueObservation/ValueObservationQueryInterfaceRequestTests.swift; sourceTree = "<group>"; };
56419D4024A5405F004967E1 /* RowFromDictionaryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RowFromDictionaryTests.swift; path = Core/Row/RowFromDictionaryTests.swift; sourceTree = "<group>"; };
56419D4124A5405F004967E1 /* DatabasePoolCollationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabasePoolCollationTests.swift; path = Core/DatabasePool/DatabasePoolCollationTests.swift; sourceTree = "<group>"; };
56419D4224A5405F004967E1 /* RecordMinimalPrimaryKeyRowIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordMinimalPrimaryKeyRowIDTests.swift; path = Record/Record/RecordMinimalPrimaryKeyRowIDTests.swift; sourceTree = "<group>"; };
56419D4324A5405F004967E1 /* StatementArguments+FoundationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "StatementArguments+FoundationTests.swift"; path = "Support/Foundation/StatementArguments+FoundationTests.swift"; sourceTree = "<group>"; };
56419D4424A5405F004967E1 /* MutablePersistableRecordPersistenceConflictPolicyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MutablePersistableRecordPersistenceConflictPolicyTests.swift; path = Record/PersistableRecord/MutablePersistableRecordPersistenceConflictPolicyTests.swift; sourceTree = "<group>"; };
56419D4524A5405F004967E1 /* PersistableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PersistableRecordTests.swift; path = Record/PersistableRecord/PersistableRecordTests.swift; sourceTree = "<group>"; };
56419D4624A54060004967E1 /* AssociationHasManyThroughSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasManyThroughSQLTests.swift; path = QueryInterface/Association/AssociationHasManyThroughSQLTests.swift; sourceTree = "<group>"; };
56419D4724A54060004967E1 /* AssociationHasOneSQLDerivationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasOneSQLDerivationTests.swift; path = QueryInterface/Association/AssociationHasOneSQLDerivationTests.swift; sourceTree = "<group>"; };
56419D4824A54060004967E1 /* FTS5TableBuilderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS5TableBuilderTests.swift; path = FTS/FTS5TableBuilderTests.swift; sourceTree = "<group>"; };
56419D4924A54060004967E1 /* DatabaseQueueBackupTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseQueueBackupTests.swift; path = Core/DatabaseQueue/DatabaseQueueBackupTests.swift; sourceTree = "<group>"; };
56419D4A24A54060004967E1 /* TableRecord+QueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "TableRecord+QueryInterfaceRequestTests.swift"; path = "QueryInterface/TableRecord+QueryInterfaceRequestTests.swift"; sourceTree = "<group>"; };
56419D4B24A54060004967E1 /* FlattenCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FlattenCursorTests.swift; path = Core/Cursor/FlattenCursorTests.swift; sourceTree = "<group>"; };
56419D4C24A54060004967E1 /* RecordPrimaryKeyMultipleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordPrimaryKeyMultipleTests.swift; path = Record/Record/RecordPrimaryKeyMultipleTests.swift; sourceTree = "<group>"; };
56419D4D24A54060004967E1 /* ValueObservationRowTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationRowTests.swift; path = ValueObservation/ValueObservationRowTests.swift; sourceTree = "<group>"; };
56419D4E24A54060004967E1 /* FTS5RecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS5RecordTests.swift; path = FTS/FTS5RecordTests.swift; sourceTree = "<group>"; };
56419D4F24A54060004967E1 /* OrderedDictionaryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = OrderedDictionaryTests.swift; path = Private/OrderedDictionaryTests.swift; sourceTree = "<group>"; };
56419D5024A54060004967E1 /* AssociationParallelRowScopesTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationParallelRowScopesTests.swift; path = QueryInterface/Association/AssociationParallelRowScopesTests.swift; sourceTree = "<group>"; };
56419D5124A54060004967E1 /* DatabaseValueConversionErrorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseValueConversionErrorTests.swift; path = Core/DatabaseValueConversionErrorTests.swift; sourceTree = "<group>"; };
56419D5224A54060004967E1 /* QueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = QueryInterfaceRequestTests.swift; path = QueryInterface/QueryInterfaceRequestTests.swift; sourceTree = "<group>"; };
56419D5324A54061004967E1 /* RowFromStatementTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RowFromStatementTests.swift; path = Core/Row/RowFromStatementTests.swift; sourceTree = "<group>"; };
56419D5424A54061004967E1 /* ColumnInfoTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ColumnInfoTests.swift; path = Core/ColumnInfoTests.swift; sourceTree = "<group>"; };
56419D5524A54061004967E1 /* AssociationHasOneSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasOneSQLTests.swift; path = QueryInterface/Association/AssociationHasOneSQLTests.swift; sourceTree = "<group>"; };
56419D5624A54061004967E1 /* ValueObservationRecorder.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationRecorder.swift; path = ValueObservation/ValueObservationRecorder.swift; sourceTree = "<group>"; };
56419D5724A54061004967E1 /* TableDefinitionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TableDefinitionTests.swift; path = QueryInterface/TableDefinitionTests.swift; sourceTree = "<group>"; };
56419D5824A54061004967E1 /* AssociationRowScopeSearchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationRowScopeSearchTests.swift; path = QueryInterface/Association/AssociationRowScopeSearchTests.swift; sourceTree = "<group>"; };
56419D5924A54061004967E1 /* FoundationNSUUIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationNSUUIDTests.swift; path = Support/Foundation/FoundationNSUUIDTests.swift; sourceTree = "<group>"; };
56419D5A24A54061004967E1 /* Row+FoundationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "Row+FoundationTests.swift"; path = "Support/Foundation/Row+FoundationTests.swift"; sourceTree = "<group>"; };
56419D5B24A54061004967E1 /* FilterCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FilterCursorTests.swift; path = Core/Cursor/FilterCursorTests.swift; sourceTree = "<group>"; };
56419D5C24A54061004967E1 /* RowAdapterTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RowAdapterTests.swift; path = Core/Row/RowAdapterTests.swift; sourceTree = "<group>"; };
56419D5D24A54061004967E1 /* DatabaseValueConvertibleEncodableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseValueConvertibleEncodableTests.swift; path = Core/DatabaseValueConvertible/DatabaseValueConvertibleEncodableTests.swift; sourceTree = "<group>"; };
56419D5E24A54061004967E1 /* RecordPersistenceConflictPolicy.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordPersistenceConflictPolicy.swift; path = Record/Record/RecordPersistenceConflictPolicy.swift; sourceTree = "<group>"; };
56419D5F24A54061004967E1 /* RecordSubClassTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordSubClassTests.swift; path = Record/Record/RecordSubClassTests.swift; sourceTree = "<group>"; };
56419D6024A54061004967E1 /* RecordPrimaryKeyNoneTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordPrimaryKeyNoneTests.swift; path = Record/Record/RecordPrimaryKeyNoneTests.swift; sourceTree = "<group>"; };
56419D6124A54062004967E1 /* StatementColumnConvertibleFetchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = StatementColumnConvertibleFetchTests.swift; path = Core/StatementColumnConvertibleFetchTests.swift; sourceTree = "<group>"; };
56419D6224A54062004967E1 /* FoundationNSDataTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationNSDataTests.swift; path = Support/Foundation/FoundationNSDataTests.swift; sourceTree = "<group>"; };
56419D6324A54062004967E1 /* AssociationTableAliasTestsSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationTableAliasTestsSQLTests.swift; path = QueryInterface/Association/AssociationTableAliasTestsSQLTests.swift; sourceTree = "<group>"; };
56419D6424A54062004967E1 /* ValueObservationCountTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationCountTests.swift; path = ValueObservation/ValueObservationCountTests.swift; sourceTree = "<group>"; };
56419D6524A54062004967E1 /* AssociationBelongsToRowScopeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationBelongsToRowScopeTests.swift; path = QueryInterface/Association/AssociationBelongsToRowScopeTests.swift; sourceTree = "<group>"; };
56419D6624A54062004967E1 /* FoundationDateComponentsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationDateComponentsTests.swift; path = Support/Foundation/FoundationDateComponentsTests.swift; sourceTree = "<group>"; };
5641A18F24A540D5004967E1 /* DatabaseWriterWritePublisherTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseWriterWritePublisherTests.swift; sourceTree = "<group>"; };
5641A19024A540D5004967E1 /* DatabaseReaderReadPublisherTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseReaderReadPublisherTests.swift; sourceTree = "<group>"; };
5641A19124A540D5004967E1 /* Support.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Support.swift; sourceTree = "<group>"; };
@@ -739,31 +738,31 @@
564A1F22226B876D001F64F1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
564A1F6F226B89D6001F64F1 /* Betty.jpeg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = Betty.jpeg; sourceTree = "<group>"; };
564A2156226B8E18001F64F1 /* GRDBTestsEncrypted.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GRDBTestsEncrypted.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
565A27CB27871FFF00659A62 /* BackupTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BackupTestCase.swift; sourceTree = "<group>"; };
567B23162A29BFA400C61174 /* Issue1383.sqlite */ = {isa = PBXFileReference; lastKnownFileType = file; path = Issue1383.sqlite; sourceTree = "<group>"; };
567B5C1C2AD32A2D00629622 /* CommonTableExpressionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CommonTableExpressionTests.swift; sourceTree = "<group>"; };
567B5C1D2AD32A2D00629622 /* SQLIdentifyingColumnsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SQLIdentifyingColumnsTests.swift; sourceTree = "<group>"; };
567B5C1E2AD32A2D00629622 /* SingletonRecordTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SingletonRecordTest.swift; sourceTree = "<group>"; };
567B5C1F2AD32A2D00629622 /* DatabaseColumnEncodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseColumnEncodingStrategyTests.swift; sourceTree = "<group>"; };
567B5C202AD32A2D00629622 /* TableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableTests.swift; sourceTree = "<group>"; };
567B5C212AD32A2D00629622 /* TransactionDateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TransactionDateTests.swift; sourceTree = "<group>"; };
567B5C222AD32A2D00629622 /* DatabaseSnapshotPoolTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseSnapshotPoolTests.swift; sourceTree = "<group>"; };
567B5C232AD32A2D00629622 /* SQLExpressionIsConstantTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SQLExpressionIsConstantTests.swift; sourceTree = "<group>"; };
567B5C242AD32A2D00629622 /* FoundationDecimalTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationDecimalTests.swift; sourceTree = "<group>"; };
567B5C252AD32A2D00629622 /* AssociationPrefetchingRelationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationPrefetchingRelationTests.swift; sourceTree = "<group>"; };
567B5C262AD32A2D00629622 /* RecordMinimalNonOptionalPrimaryKeySingleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordMinimalNonOptionalPrimaryKeySingleTests.swift; sourceTree = "<group>"; };
567B5C272AD32A2D00629622 /* CaseInsensitiveIdentifierTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CaseInsensitiveIdentifierTests.swift; sourceTree = "<group>"; };
567B5C282AD32A2D00629622 /* SharedValueObservationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SharedValueObservationTests.swift; sourceTree = "<group>"; };
567B5C492AD32F7000629622 /* DatabaseDumpTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseDumpTests.swift; sourceTree = "<group>"; };
567B5C4A2AD32F7000629622 /* DatabaseReaderDumpTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseReaderDumpTests.swift; sourceTree = "<group>"; };
568515AA2E66C2F40082E9A1 /* RecordMappedOnMutableViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RecordMappedOnMutableViewTests.swift; sourceTree = "<group>"; };
568C3F7E2A5AB36900A2309D /* ForeignKeyDefinitionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ForeignKeyDefinitionTests.swift; sourceTree = "<group>"; };
565A27CB27871FFF00659A62 /* BackupTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = BackupTestCase.swift; path = Core/BackupTestCase.swift; sourceTree = "<group>"; };
567B23162A29BFA400C61174 /* Issue1383.sqlite */ = {isa = PBXFileReference; lastKnownFileType = file; name = Issue1383.sqlite; path = ValueObservation/Issue1383.sqlite; sourceTree = "<group>"; };
567B5C1C2AD32A2D00629622 /* CommonTableExpressionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = CommonTableExpressionTests.swift; path = QueryInterface/CommonTableExpressionTests.swift; sourceTree = "<group>"; };
567B5C1D2AD32A2D00629622 /* SQLIdentifyingColumnsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SQLIdentifyingColumnsTests.swift; path = QueryInterface/SQLIdentifyingColumnsTests.swift; sourceTree = "<group>"; };
567B5C1E2AD32A2D00629622 /* SingletonRecordTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SingletonRecordTest.swift; path = Record/SingletonRecordTest.swift; sourceTree = "<group>"; };
567B5C1F2AD32A2D00629622 /* DatabaseColumnEncodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseColumnEncodingStrategyTests.swift; path = Record/PersistableRecord/DatabaseColumnEncodingStrategyTests.swift; sourceTree = "<group>"; };
567B5C202AD32A2D00629622 /* TableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TableTests.swift; path = QueryInterface/TableTests.swift; sourceTree = "<group>"; };
567B5C212AD32A2D00629622 /* TransactionDateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TransactionDateTests.swift; path = Core/TransactionDateTests.swift; sourceTree = "<group>"; };
567B5C222AD32A2D00629622 /* DatabaseSnapshotPoolTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseSnapshotPoolTests.swift; path = Core/DatabaseSnapshotPoolTests.swift; sourceTree = "<group>"; };
567B5C232AD32A2D00629622 /* SQLExpressionIsConstantTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SQLExpressionIsConstantTests.swift; path = QueryInterface/SQLExpressionIsConstantTests.swift; sourceTree = "<group>"; };
567B5C242AD32A2D00629622 /* FoundationDecimalTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationDecimalTests.swift; path = Support/Foundation/FoundationDecimalTests.swift; sourceTree = "<group>"; };
567B5C252AD32A2D00629622 /* AssociationPrefetchingRelationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationPrefetchingRelationTests.swift; path = QueryInterface/Association/AssociationPrefetchingRelationTests.swift; sourceTree = "<group>"; };
567B5C262AD32A2D00629622 /* RecordMinimalNonOptionalPrimaryKeySingleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordMinimalNonOptionalPrimaryKeySingleTests.swift; path = Record/Record/RecordMinimalNonOptionalPrimaryKeySingleTests.swift; sourceTree = "<group>"; };
567B5C272AD32A2D00629622 /* CaseInsensitiveIdentifierTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = CaseInsensitiveIdentifierTests.swift; path = Private/CaseInsensitiveIdentifierTests.swift; sourceTree = "<group>"; };
567B5C282AD32A2D00629622 /* SharedValueObservationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SharedValueObservationTests.swift; path = ValueObservation/SharedValueObservationTests.swift; sourceTree = "<group>"; };
567B5C492AD32F7000629622 /* DatabaseDumpTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseDumpTests.swift; path = Dump/DatabaseDumpTests.swift; sourceTree = "<group>"; };
567B5C4A2AD32F7000629622 /* DatabaseReaderDumpTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseReaderDumpTests.swift; path = Dump/DatabaseReaderDumpTests.swift; sourceTree = "<group>"; };
568515AA2E66C2F40082E9A1 /* RecordMappedOnMutableViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = RecordMappedOnMutableViewTests.swift; path = Record/PersistableRecord/RecordMappedOnMutableViewTests.swift; sourceTree = "<group>"; };
568C3F7E2A5AB36900A2309D /* ForeignKeyDefinitionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ForeignKeyDefinitionTests.swift; path = QueryInterface/ForeignKeyDefinitionTests.swift; sourceTree = "<group>"; };
5691D97427257CE40021D540 /* AvailableElements.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AvailableElements.swift; sourceTree = "<group>"; };
56BCA2652E6C294600E4F08D /* DatabaseSchemaSourceTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DatabaseSchemaSourceTests.swift; sourceTree = "<group>"; };
56BCA2652E6C294600E4F08D /* DatabaseSchemaSourceTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = DatabaseSchemaSourceTests.swift; path = Core/DatabaseSchemaSourceTests.swift; sourceTree = "<group>"; };
56DFC3B22C84798300DFE5DC /* AsyncSemaphore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AsyncSemaphore.swift; sourceTree = "<group>"; };
56F61DEC283D484700AF9884 /* GRDBTests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "GRDBTests-Bridging-Header.h"; sourceTree = "<group>"; };
56F61DEE283D484700AF9884 /* getThreadsCount.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = getThreadsCount.c; sourceTree = "<group>"; };
56F61DEF283D484700AF9884 /* getThreadsCount.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = getThreadsCount.h; sourceTree = "<group>"; };
56F61DEE283D484700AF9884 /* getThreadsCount.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = getThreadsCount.c; path = Core/DatabasePool/getThreadsCount.c; sourceTree = "<group>"; };
56F61DEF283D484700AF9884 /* getThreadsCount.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = getThreadsCount.h; path = Core/DatabasePool/getThreadsCount.h; sourceTree = "<group>"; };
6A4788C0F815F6C5E4EBDE12 /* Pods-GRDBTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GRDBTests.debug.xcconfig"; path = "Target Support Files/Pods-GRDBTests/Pods-GRDBTests.debug.xcconfig"; sourceTree = "<group>"; };
7D5C7999E7D9CE7145687F5D /* Pods_GRDBTestsEncrypted.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_GRDBTestsEncrypted.framework; sourceTree = BUILT_PRODUCTS_DIR; };
83BFB5733A86DAA3D0BEE684 /* Pods-GRDBTestsEncrypted.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GRDBTestsEncrypted.debug.xcconfig"; path = "Target Support Files/Pods-GRDBTestsEncrypted/Pods-GRDBTestsEncrypted.debug.xcconfig"; sourceTree = "<group>"; };
@@ -775,7 +774,6 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
5B33E6E34F941B4C839A714F /* BuildFile in Frameworks */,
98AB0B01EB11B33719AE412E /* Pods_GRDBTests.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
@@ -800,8 +798,7 @@
5641A19224A540D5004967E1 /* DatabaseRegionObservationPublisherTests.swift */,
5641A19324A540D5004967E1 /* ValueObservationPublisherTests.swift */,
);
name = GRDBCombineTests;
path = ../GRDBCombineTests;
path = GRDBCombineTests;
sourceTree = "<group>";
};
5641A19424A540D6004967E1 /* CombineExpectations */ = {
@@ -813,7 +810,7 @@
5641A19F24A540D6004967E1 /* PublisherExpectation.swift */,
);
name = CombineExpectations;
path = ../CombineExpectations;
path = GRDBCombineTests/CombineExpectations;
sourceTree = "<group>";
};
5641A19724A540D6004967E1 /* PublisherExpectations */ = {
@@ -880,7 +877,7 @@
56419D1C24A5405C004967E1 /* AssociationHasOneThroughDecodableRecordTests.swift */,
56419CE924A54059004967E1 /* AssociationHasOneThroughFetchableRecordTests.swift */,
56419CF924A5405A004967E1 /* AssociationHasOneThroughRowScopeTests.swift */,
56419D4724A54060004967E1 /* AssociationHasOneThroughSQLDerivationTests.swift */,
56419D4724A54060004967E1 /* AssociationHasOneSQLDerivationTests.swift */,
56419D0624A5405B004967E1 /* AssociationHasOneThroughSQLTests.swift */,
56419D2D24A5405E004967E1 /* AssociationParallelDecodableRecordTests.swift */,
56419D5024A54060004967E1 /* AssociationParallelRowScopesTests.swift */,
@@ -1480,7 +1477,7 @@
56419E5D24A54062004967E1 /* DatabaseAggregateTests.swift in Sources */,
56419E0324A54062004967E1 /* SchedulingWatchdogTests.swift in Sources */,
56419E7D24A54063004967E1 /* DropWhileCursorTests.swift in Sources */,
56419EBD24A54063004967E1 /* AssociationHasOneThroughSQLDerivationTests.swift in Sources */,
56419EBD24A54063004967E1 /* AssociationHasOneSQLDerivationTests.swift in Sources */,
56071DE52BD3DDB5000802B6 /* SingletonUserDefaultsTest.swift in Sources */,
56419E8F24A54063004967E1 /* AssociationHasManySQLTests.swift in Sources */,
5641A1A424A540D6004967E1 /* Support.swift in Sources */,
@@ -1732,7 +1729,7 @@
56419E5E24A54062004967E1 /* DatabaseAggregateTests.swift in Sources */,
56419E0424A54062004967E1 /* SchedulingWatchdogTests.swift in Sources */,
56419E7E24A54063004967E1 /* DropWhileCursorTests.swift in Sources */,
56419EBE24A54063004967E1 /* AssociationHasOneThroughSQLDerivationTests.swift in Sources */,
56419EBE24A54063004967E1 /* AssociationHasOneSQLDerivationTests.swift in Sources */,
56071DE62BD3DDB5000802B6 /* SingletonUserDefaultsTest.swift in Sources */,
56419E9024A54063004967E1 /* AssociationHasManySQLTests.swift in Sources */,
5641A1A524A540D6004967E1 /* Support.swift in Sources */,
@@ -505,7 +505,6 @@
56DFC3B12C84797400DFE5DC /* AsyncSemaphore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56DFC3AF2C84797400DFE5DC /* AsyncSemaphore.swift */; };
56F61DF6283D4AB100AF9884 /* getThreadsCount.c in Sources */ = {isa = PBXBuildFile; fileRef = 56F61DF4283D4AB100AF9884 /* getThreadsCount.c */; };
56F61DF7283D4AB100AF9884 /* getThreadsCount.c in Sources */ = {isa = PBXBuildFile; fileRef = 56F61DF4283D4AB100AF9884 /* getThreadsCount.c */; };
5B33E6E34F941B4C839A714F /* BuildFile in Frameworks */ = {isa = PBXBuildFile; };
E158370AAEED49ECD53CE24A /* Pods_GRDBTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67377FE4CDAD675809F93AD4 /* Pods_GRDBTests.framework */; };
F2B3C4250D67969FF3948955 /* Pods_GRDBTestsEncrypted.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7D5C7999E7D9CE7145687F5D /* Pods_GRDBTestsEncrypted.framework */; };
/* End PBXBuildFile section */
@@ -513,215 +512,215 @@
/* Begin PBXFileReference section */
04298D834C818285823558AB /* Pods-GRDBTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GRDBTests.release.xcconfig"; path = "Target Support Files/Pods-GRDBTests/Pods-GRDBTests.release.xcconfig"; sourceTree = "<group>"; };
47C5D1B9AFFE795AA1D6EA5D /* Pods-GRDBTestsEncrypted.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GRDBTestsEncrypted.release.xcconfig"; path = "Target Support Files/Pods-GRDBTestsEncrypted/Pods-GRDBTestsEncrypted.release.xcconfig"; sourceTree = "<group>"; };
56071DE12BD3DDA5000802B6 /* SingletonUserDefaultsTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SingletonUserDefaultsTest.swift; sourceTree = "<group>"; };
561F38DF2AC891890051EEE9 /* JSONExpressionsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JSONExpressionsTests.swift; sourceTree = "<group>"; };
561F38E02AC891890051EEE9 /* JSONColumnTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JSONColumnTests.swift; sourceTree = "<group>"; };
561F38FD2AC9CE870051EEE9 /* DatabaseDataEncodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseDataEncodingStrategyTests.swift; sourceTree = "<group>"; };
561F38FE2AC9CE870051EEE9 /* DatabaseDataDecodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseDataDecodingStrategyTests.swift; sourceTree = "<group>"; };
5623B6212AED3A2200436239 /* DatabaseQueueInMemoryCopyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueInMemoryCopyTests.swift; sourceTree = "<group>"; };
5623B6222AED3A2200436239 /* DatabaseQueueTemporaryCopyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueTemporaryCopyTests.swift; sourceTree = "<group>"; };
56071DE12BD3DDA5000802B6 /* SingletonUserDefaultsTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SingletonUserDefaultsTest.swift; path = Record/SingletonUserDefaultsTest.swift; sourceTree = "<group>"; };
561F38DF2AC891890051EEE9 /* JSONExpressionsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = JSONExpressionsTests.swift; path = JSON/JSONExpressionsTests.swift; sourceTree = "<group>"; };
561F38E02AC891890051EEE9 /* JSONColumnTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = JSONColumnTests.swift; path = JSON/JSONColumnTests.swift; sourceTree = "<group>"; };
561F38FD2AC9CE870051EEE9 /* DatabaseDataEncodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseDataEncodingStrategyTests.swift; path = Record/PersistableRecord/DatabaseDataEncodingStrategyTests.swift; sourceTree = "<group>"; };
561F38FE2AC9CE870051EEE9 /* DatabaseDataDecodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseDataDecodingStrategyTests.swift; path = Record/FetchableRecord/DatabaseDataDecodingStrategyTests.swift; sourceTree = "<group>"; };
5623B6212AED3A2200436239 /* DatabaseQueueInMemoryCopyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseQueueInMemoryCopyTests.swift; path = Core/DatabaseQueue/DatabaseQueueInMemoryCopyTests.swift; sourceTree = "<group>"; };
5623B6222AED3A2200436239 /* DatabaseQueueTemporaryCopyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseQueueTemporaryCopyTests.swift; path = Core/DatabaseQueue/DatabaseQueueTemporaryCopyTests.swift; sourceTree = "<group>"; };
563EA3E72C7B3A78001BE0D4 /* Mutex.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Mutex.swift; sourceTree = "<group>"; };
56419EFD24A54093004967E1 /* FetchRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FetchRequestTests.swift; sourceTree = "<group>"; };
56419EFE24A54093004967E1 /* DatabasePoolBackupTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabasePoolBackupTests.swift; sourceTree = "<group>"; };
56419EFF24A54093004967E1 /* TableRecordDeleteTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableRecordDeleteTests.swift; sourceTree = "<group>"; };
56419F0024A54093004967E1 /* AssociationBelongsToSQLDerivationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationBelongsToSQLDerivationTests.swift; sourceTree = "<group>"; };
56419F0124A54093004967E1 /* MutablePersistableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MutablePersistableRecordTests.swift; sourceTree = "<group>"; };
56419F0224A54093004967E1 /* MutablePersistableRecordEncodableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MutablePersistableRecordEncodableTests.swift; sourceTree = "<group>"; };
56419F0324A54093004967E1 /* OrderedDictionaryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OrderedDictionaryTests.swift; sourceTree = "<group>"; };
56419F0424A54093004967E1 /* DatabaseRegionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseRegionTests.swift; sourceTree = "<group>"; };
56419F0524A54093004967E1 /* DatabaseRegionObservationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseRegionObservationTests.swift; sourceTree = "<group>"; };
56419F0624A54093004967E1 /* TableRecordUpdateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableRecordUpdateTests.swift; sourceTree = "<group>"; };
56419F0724A54093004967E1 /* Record+QueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Record+QueryInterfaceRequestTests.swift"; sourceTree = "<group>"; };
56419F0824A54093004967E1 /* NumericOverflowTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NumericOverflowTests.swift; sourceTree = "<group>"; };
56419F0924A54093004967E1 /* AssociationChainSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationChainSQLTests.swift; sourceTree = "<group>"; };
56419F0A24A54093004967E1 /* AssociationBelongsToRowScopeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationBelongsToRowScopeTests.swift; sourceTree = "<group>"; };
56419F0B24A54093004967E1 /* AssociationHasOneSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasOneSQLTests.swift; sourceTree = "<group>"; };
56419F0C24A54093004967E1 /* RecordMinimalPrimaryKeyRowIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordMinimalPrimaryKeyRowIDTests.swift; sourceTree = "<group>"; };
56419F0D24A54093004967E1 /* DatabaseSavepointTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseSavepointTests.swift; sourceTree = "<group>"; };
56419F0E24A54093004967E1 /* RecordPrimaryKeyMultipleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordPrimaryKeyMultipleTests.swift; sourceTree = "<group>"; };
56419F0F24A54093004967E1 /* FTS4TableBuilderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS4TableBuilderTests.swift; sourceTree = "<group>"; };
56419F1024A54093004967E1 /* DatabasePoolCollationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabasePoolCollationTests.swift; sourceTree = "<group>"; };
56419F1124A54093004967E1 /* FoundationDateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationDateTests.swift; sourceTree = "<group>"; };
56419F1224A54093004967E1 /* RecordWithColumnNameManglingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordWithColumnNameManglingTests.swift; sourceTree = "<group>"; };
56419F1324A54093004967E1 /* DatabaseQueueBackupTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueBackupTests.swift; sourceTree = "<group>"; };
56419F1424A54094004967E1 /* StatementArgumentsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StatementArgumentsTests.swift; sourceTree = "<group>"; };
56419F1524A54094004967E1 /* DatabaseAbortedTransactionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseAbortedTransactionTests.swift; sourceTree = "<group>"; };
56419F1624A54094004967E1 /* DatabaseValueConvertibleEncodableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseValueConvertibleEncodableTests.swift; sourceTree = "<group>"; };
56419F1724A54094004967E1 /* QueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = QueryInterfaceRequestTests.swift; sourceTree = "<group>"; };
56419F1824A54094004967E1 /* FTS5TokenizerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS5TokenizerTests.swift; sourceTree = "<group>"; };
56419F1924A54094004967E1 /* StatementArguments+FoundationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "StatementArguments+FoundationTests.swift"; sourceTree = "<group>"; };
56419F1A24A54094004967E1 /* PersistableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PersistableRecordTests.swift; sourceTree = "<group>"; };
56419F1B24A54094004967E1 /* ValueObservationReadonlyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationReadonlyTests.swift; sourceTree = "<group>"; };
56419F1C24A54094004967E1 /* SQLExpressionLiteralTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SQLExpressionLiteralTests.swift; sourceTree = "<group>"; };
56419F1D24A54094004967E1 /* DatabaseSuspensionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseSuspensionTests.swift; sourceTree = "<group>"; };
56419F1E24A54094004967E1 /* AssociationPrefetchingRowTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationPrefetchingRowTests.swift; sourceTree = "<group>"; };
56419F1F24A54094004967E1 /* DatabaseValueConversionErrorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseValueConversionErrorTests.swift; sourceTree = "<group>"; };
56419F2024A54094004967E1 /* AssociationHasOneThroughSQLDerivationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasOneThroughSQLDerivationTests.swift; sourceTree = "<group>"; };
56419F2124A54094004967E1 /* RecordEditedTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordEditedTests.swift; sourceTree = "<group>"; };
56419F2224A54095004967E1 /* AssociationPrefetchingFetchableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationPrefetchingFetchableRecordTests.swift; sourceTree = "<group>"; };
56419F2324A54095004967E1 /* DatabaseCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseCursorTests.swift; sourceTree = "<group>"; };
56419F2424A54095004967E1 /* UtilsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UtilsTests.swift; sourceTree = "<group>"; };
56419F2524A54095004967E1 /* FoundationDateComponentsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationDateComponentsTests.swift; sourceTree = "<group>"; };
56419F2624A54095004967E1 /* FoundationNSNumberTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationNSNumberTests.swift; sourceTree = "<group>"; };
56419F2724A54095004967E1 /* PrefixCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PrefixCursorTests.swift; sourceTree = "<group>"; };
56419F2824A54095004967E1 /* DatabaseDateEncodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseDateEncodingStrategyTests.swift; sourceTree = "<group>"; };
56419F2924A54095004967E1 /* UpdateStatementTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UpdateStatementTests.swift; sourceTree = "<group>"; };
56419F2A24A54095004967E1 /* ValueObservationFetchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationFetchTests.swift; sourceTree = "<group>"; };
56419F2B24A54095004967E1 /* ValueObservationPrintTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationPrintTests.swift; sourceTree = "<group>"; };
56419F2C24A54095004967E1 /* ValueObservationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationTests.swift; sourceTree = "<group>"; };
56419F2D24A54095004967E1 /* RecordPrimaryKeySingleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordPrimaryKeySingleTests.swift; sourceTree = "<group>"; };
56419F2E24A54095004967E1 /* DatabaseValueConvertibleDecodableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseValueConvertibleDecodableTests.swift; sourceTree = "<group>"; };
56419F2F24A54096004967E1 /* ValueObservationRecorder.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationRecorder.swift; sourceTree = "<group>"; };
56419F3124A54096004967E1 /* MutablePersistableRecordPersistenceConflictPolicyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MutablePersistableRecordPersistenceConflictPolicyTests.swift; sourceTree = "<group>"; };
56419F3224A54096004967E1 /* DatabaseQueueSchemaCacheTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueSchemaCacheTests.swift; sourceTree = "<group>"; };
56419F3324A54096004967E1 /* RowFromDictionaryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RowFromDictionaryTests.swift; sourceTree = "<group>"; };
56419F3424A54096004967E1 /* DatabaseQueueReleaseMemoryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueReleaseMemoryTests.swift; sourceTree = "<group>"; };
56419F3524A54096004967E1 /* VirtualTableModuleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = VirtualTableModuleTests.swift; sourceTree = "<group>"; };
56419F3624A54096004967E1 /* SQLLiteralTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SQLLiteralTests.swift; sourceTree = "<group>"; };
56419F3724A54096004967E1 /* AssociationBelongsToSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationBelongsToSQLTests.swift; sourceTree = "<group>"; };
56419F3824A54096004967E1 /* InflectionsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = InflectionsTests.swift; sourceTree = "<group>"; };
56419F3924A54096004967E1 /* FTS5RecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS5RecordTests.swift; sourceTree = "<group>"; };
56419F3A24A54096004967E1 /* FTS5TableBuilderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS5TableBuilderTests.swift; sourceTree = "<group>"; };
56419F3B24A54096004967E1 /* FTS3TokenizerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS3TokenizerTests.swift; sourceTree = "<group>"; };
56419F3C24A54096004967E1 /* PoolTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PoolTests.swift; sourceTree = "<group>"; };
56419F3D24A54096004967E1 /* DatabaseValueConversionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseValueConversionTests.swift; sourceTree = "<group>"; };
56419F3E24A54097004967E1 /* FoundationNSStringTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationNSStringTests.swift; sourceTree = "<group>"; };
56419F3F24A54097004967E1 /* AssociationHasManyThroughRowScopeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasManyThroughRowScopeTests.swift; sourceTree = "<group>"; };
56419F4024A54097004967E1 /* RecordUniqueIndexTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordUniqueIndexTests.swift; sourceTree = "<group>"; };
56419F4124A54097004967E1 /* FTS3PatternTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS3PatternTests.swift; sourceTree = "<group>"; };
56419F4224A54097004967E1 /* FTS3RecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS3RecordTests.swift; sourceTree = "<group>"; };
56419F4324A54097004967E1 /* DatabaseWriterTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseWriterTests.swift; sourceTree = "<group>"; };
56419F4424A54097004967E1 /* AssociationPrefetchingSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationPrefetchingSQLTests.swift; sourceTree = "<group>"; };
56419F4524A54097004967E1 /* MutablePersistableRecordChangesTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MutablePersistableRecordChangesTests.swift; sourceTree = "<group>"; };
56419F4624A54097004967E1 /* AssociationHasManyThroughSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasManyThroughSQLTests.swift; sourceTree = "<group>"; };
56419F4724A54097004967E1 /* ValueObservationRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationRecordTests.swift; sourceTree = "<group>"; };
56419F4824A54097004967E1 /* RecordInitializersTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordInitializersTests.swift; sourceTree = "<group>"; };
56419F4924A54097004967E1 /* AssociationChainRowScopesTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationChainRowScopesTests.swift; sourceTree = "<group>"; };
56419F4A24A54097004967E1 /* DropWhileCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DropWhileCursorTests.swift; sourceTree = "<group>"; };
56419F4B24A54097004967E1 /* AssociationHasOneThroughFetchableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasOneThroughFetchableRecordTests.swift; sourceTree = "<group>"; };
56419F4C24A54097004967E1 /* FetchableRecord+QueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "FetchableRecord+QueryInterfaceRequestTests.swift"; sourceTree = "<group>"; };
56419F4D24A54098004967E1 /* RowFetchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RowFetchTests.swift; sourceTree = "<group>"; };
56419F4E24A54098004967E1 /* InflectionsTests.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = InflectionsTests.json; sourceTree = "<group>"; };
56419F4F24A54098004967E1 /* ValueObservationMapTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationMapTests.swift; sourceTree = "<group>"; };
56419F5024A54098004967E1 /* AssociationRowScopeSearchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationRowScopeSearchTests.swift; sourceTree = "<group>"; };
56419F5124A54098004967E1 /* RecordPersistenceConflictPolicy.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordPersistenceConflictPolicy.swift; sourceTree = "<group>"; };
56419F5224A54098004967E1 /* FoundationNSNullTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationNSNullTests.swift; sourceTree = "<group>"; };
56419F5324A54098004967E1 /* RawRepresentable+DatabaseValueConvertibleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "RawRepresentable+DatabaseValueConvertibleTests.swift"; sourceTree = "<group>"; };
56419F5424A54098004967E1 /* CompilationProtocolTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CompilationProtocolTests.swift; sourceTree = "<group>"; };
56419F5524A54098004967E1 /* DropFirstCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DropFirstCursorTests.swift; sourceTree = "<group>"; };
56419F5624A54098004967E1 /* QueryInterfacePromiseTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = QueryInterfacePromiseTests.swift; sourceTree = "<group>"; };
56419F5724A54098004967E1 /* ValueObservationQueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationQueryInterfaceRequestTests.swift; sourceTree = "<group>"; };
56419F5824A54098004967E1 /* DatabaseErrorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseErrorTests.swift; sourceTree = "<group>"; };
56419F5924A54098004967E1 /* ResultCodeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResultCodeTests.swift; sourceTree = "<group>"; };
56419F5A24A54098004967E1 /* AssociationAggregateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationAggregateTests.swift; sourceTree = "<group>"; };
56419F5B24A54098004967E1 /* SelectStatementTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SelectStatementTests.swift; sourceTree = "<group>"; };
56419F5C24A54099004967E1 /* DatabaseReaderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseReaderTests.swift; sourceTree = "<group>"; };
56419F5D24A54099004967E1 /* DatabasePoolFunctionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabasePoolFunctionTests.swift; sourceTree = "<group>"; };
56419F5E24A54099004967E1 /* EncryptionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EncryptionTests.swift; sourceTree = "<group>"; };
56419F5F24A54099004967E1 /* TableDefinitionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableDefinitionTests.swift; sourceTree = "<group>"; };
56419F6024A54099004967E1 /* DatabaseLogErrorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseLogErrorTests.swift; sourceTree = "<group>"; };
56419F6124A54099004967E1 /* RecordMinimalPrimaryKeySingleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordMinimalPrimaryKeySingleTests.swift; sourceTree = "<group>"; };
56419F6224A54099004967E1 /* AssociationHasOneThroughDecodableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasOneThroughDecodableRecordTests.swift; sourceTree = "<group>"; };
56419F6324A54099004967E1 /* ValueObservationCountTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationCountTests.swift; sourceTree = "<group>"; };
56419F6424A54099004967E1 /* DatabaseValueConvertibleEscapingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseValueConvertibleEscapingTests.swift; sourceTree = "<group>"; };
56419F6524A54099004967E1 /* ColumnExpressionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ColumnExpressionTests.swift; sourceTree = "<group>"; };
56419F6624A54099004967E1 /* DatabaseValueConvertibleSubclassTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseValueConvertibleSubclassTests.swift; sourceTree = "<group>"; };
56419F6724A54099004967E1 /* DatabasePoolConcurrencyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabasePoolConcurrencyTests.swift; sourceTree = "<group>"; };
56419F6824A54099004967E1 /* RowAdapterTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RowAdapterTests.swift; sourceTree = "<group>"; };
56419F6924A54099004967E1 /* SQLRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SQLRequestTests.swift; sourceTree = "<group>"; };
56419F6A24A54099004967E1 /* AssociationHasManyOrderingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasManyOrderingTests.swift; sourceTree = "<group>"; };
56419F6B24A5409A004967E1 /* CGFloatTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CGFloatTests.swift; sourceTree = "<group>"; };
56419F6C24A5409A004967E1 /* AssociationHasManySQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasManySQLTests.swift; sourceTree = "<group>"; };
56419F6D24A5409A004967E1 /* JoinSupportTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JoinSupportTests.swift; sourceTree = "<group>"; };
56419F6E24A5409A004967E1 /* RowTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RowTestCase.swift; sourceTree = "<group>"; };
56419F6F24A5409A004967E1 /* PrimaryKeyInfoTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PrimaryKeyInfoTests.swift; sourceTree = "<group>"; };
56419F7024A5409A004967E1 /* DatabaseConfigurationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseConfigurationTests.swift; sourceTree = "<group>"; };
56419F7124A5409A004967E1 /* AssociationHasOneThroughRowScopeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasOneThroughRowScopeTests.swift; sourceTree = "<group>"; };
56419F7224A5409A004967E1 /* ForeignKeyInfoTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ForeignKeyInfoTests.swift; sourceTree = "<group>"; };
56419F7324A5409A004967E1 /* DatabaseTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseTests.swift; sourceTree = "<group>"; };
56419F7424A5409A004967E1 /* DatabasePoolTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabasePoolTests.swift; sourceTree = "<group>"; };
56419F7524A5409A004967E1 /* FTS5CustomTokenizerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS5CustomTokenizerTests.swift; sourceTree = "<group>"; };
56419F7624A5409A004967E1 /* PrefixWhileCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PrefixWhileCursorTests.swift; sourceTree = "<group>"; };
56419F7724A5409A004967E1 /* DatabaseMigratorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseMigratorTests.swift; sourceTree = "<group>"; };
56419F7824A5409A004967E1 /* AssociationHasManyRowScopeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasManyRowScopeTests.swift; sourceTree = "<group>"; };
56419F7924A5409B004967E1 /* ValueObservationRecorderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationRecorderTests.swift; sourceTree = "<group>"; };
56419F7A24A5409B004967E1 /* TransactionObserverTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TransactionObserverTests.swift; sourceTree = "<group>"; };
56419F7B24A5409B004967E1 /* MapCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MapCursorTests.swift; sourceTree = "<group>"; };
56419F7C24A5409B004967E1 /* FetchableRecordDecodableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FetchableRecordDecodableTests.swift; sourceTree = "<group>"; };
56419F7D24A5409B004967E1 /* FoundationNSUUIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationNSUUIDTests.swift; sourceTree = "<group>"; };
56419F7E24A5409B004967E1 /* DatabaseUUIDEncodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseUUIDEncodingStrategyTests.swift; sourceTree = "<group>"; };
56419F7F24A5409B004967E1 /* DatabaseQueueConcurrencyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueConcurrencyTests.swift; sourceTree = "<group>"; };
56419F8024A5409B004967E1 /* CompilationSubClassTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CompilationSubClassTests.swift; sourceTree = "<group>"; };
56419F8124A5409B004967E1 /* FoundationNSDecimalNumberTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationNSDecimalNumberTests.swift; sourceTree = "<group>"; };
56419F8224A5409B004967E1 /* AssociationHasOneThroughSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasOneThroughSQLTests.swift; sourceTree = "<group>"; };
56419F8324A5409B004967E1 /* FoundationUUIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationUUIDTests.swift; sourceTree = "<group>"; };
56419F8424A5409B004967E1 /* DatabaseQueueReadOnlyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueReadOnlyTests.swift; sourceTree = "<group>"; };
56419F8524A5409B004967E1 /* SchedulingWatchdogTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SchedulingWatchdogTests.swift; sourceTree = "<group>"; };
56419F8624A5409C004967E1 /* RecordPrimaryKeyHiddenRowIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordPrimaryKeyHiddenRowIDTests.swift; sourceTree = "<group>"; };
56419EFD24A54093004967E1 /* FetchRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FetchRequestTests.swift; path = Core/FetchRequestTests.swift; sourceTree = "<group>"; };
56419EFE24A54093004967E1 /* DatabasePoolBackupTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabasePoolBackupTests.swift; path = Core/DatabasePool/DatabasePoolBackupTests.swift; sourceTree = "<group>"; };
56419EFF24A54093004967E1 /* TableRecordDeleteTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TableRecordDeleteTests.swift; path = Record/TableRecord/TableRecordDeleteTests.swift; sourceTree = "<group>"; };
56419F0024A54093004967E1 /* AssociationBelongsToSQLDerivationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationBelongsToSQLDerivationTests.swift; path = QueryInterface/Association/AssociationBelongsToSQLDerivationTests.swift; sourceTree = "<group>"; };
56419F0124A54093004967E1 /* MutablePersistableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MutablePersistableRecordTests.swift; path = Record/PersistableRecord/MutablePersistableRecordTests.swift; sourceTree = "<group>"; };
56419F0224A54093004967E1 /* MutablePersistableRecordEncodableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MutablePersistableRecordEncodableTests.swift; path = Record/PersistableRecord/MutablePersistableRecordEncodableTests.swift; sourceTree = "<group>"; };
56419F0324A54093004967E1 /* OrderedDictionaryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = OrderedDictionaryTests.swift; path = Private/OrderedDictionaryTests.swift; sourceTree = "<group>"; };
56419F0424A54093004967E1 /* DatabaseRegionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseRegionTests.swift; path = Private/DatabaseRegionTests.swift; sourceTree = "<group>"; };
56419F0524A54093004967E1 /* DatabaseRegionObservationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseRegionObservationTests.swift; path = Core/DatabaseRegionObservationTests.swift; sourceTree = "<group>"; };
56419F0624A54093004967E1 /* TableRecordUpdateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TableRecordUpdateTests.swift; path = Record/TableRecord/TableRecordUpdateTests.swift; sourceTree = "<group>"; };
56419F0724A54093004967E1 /* Record+QueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "Record+QueryInterfaceRequestTests.swift"; path = "QueryInterface/Record+QueryInterfaceRequestTests.swift"; sourceTree = "<group>"; };
56419F0824A54093004967E1 /* NumericOverflowTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = NumericOverflowTests.swift; path = Core/NumericOverflowTests.swift; sourceTree = "<group>"; };
56419F0924A54093004967E1 /* AssociationChainSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationChainSQLTests.swift; path = QueryInterface/Association/AssociationChainSQLTests.swift; sourceTree = "<group>"; };
56419F0A24A54093004967E1 /* AssociationBelongsToRowScopeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationBelongsToRowScopeTests.swift; path = QueryInterface/Association/AssociationBelongsToRowScopeTests.swift; sourceTree = "<group>"; };
56419F0B24A54093004967E1 /* AssociationHasOneSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasOneSQLTests.swift; path = QueryInterface/Association/AssociationHasOneSQLTests.swift; sourceTree = "<group>"; };
56419F0C24A54093004967E1 /* RecordMinimalPrimaryKeyRowIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordMinimalPrimaryKeyRowIDTests.swift; path = Record/Record/RecordMinimalPrimaryKeyRowIDTests.swift; sourceTree = "<group>"; };
56419F0D24A54093004967E1 /* DatabaseSavepointTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseSavepointTests.swift; path = Core/DatabaseSavepointTests.swift; sourceTree = "<group>"; };
56419F0E24A54093004967E1 /* RecordPrimaryKeyMultipleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordPrimaryKeyMultipleTests.swift; path = Record/Record/RecordPrimaryKeyMultipleTests.swift; sourceTree = "<group>"; };
56419F0F24A54093004967E1 /* FTS4TableBuilderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS4TableBuilderTests.swift; path = FTS/FTS4TableBuilderTests.swift; sourceTree = "<group>"; };
56419F1024A54093004967E1 /* DatabasePoolCollationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabasePoolCollationTests.swift; path = Core/DatabasePool/DatabasePoolCollationTests.swift; sourceTree = "<group>"; };
56419F1124A54093004967E1 /* FoundationDateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationDateTests.swift; path = Support/Foundation/FoundationDateTests.swift; sourceTree = "<group>"; };
56419F1224A54093004967E1 /* RecordWithColumnNameManglingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordWithColumnNameManglingTests.swift; path = Record/Record/RecordWithColumnNameManglingTests.swift; sourceTree = "<group>"; };
56419F1324A54093004967E1 /* DatabaseQueueBackupTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseQueueBackupTests.swift; path = Core/DatabaseQueue/DatabaseQueueBackupTests.swift; sourceTree = "<group>"; };
56419F1424A54094004967E1 /* StatementArgumentsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = StatementArgumentsTests.swift; path = Core/Statement/StatementArgumentsTests.swift; sourceTree = "<group>"; };
56419F1524A54094004967E1 /* DatabaseAbortedTransactionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseAbortedTransactionTests.swift; path = Core/DatabaseAbortedTransactionTests.swift; sourceTree = "<group>"; };
56419F1624A54094004967E1 /* DatabaseValueConvertibleEncodableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseValueConvertibleEncodableTests.swift; path = Core/DatabaseValueConvertible/DatabaseValueConvertibleEncodableTests.swift; sourceTree = "<group>"; };
56419F1724A54094004967E1 /* QueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = QueryInterfaceRequestTests.swift; path = QueryInterface/QueryInterfaceRequestTests.swift; sourceTree = "<group>"; };
56419F1824A54094004967E1 /* FTS5TokenizerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS5TokenizerTests.swift; path = FTS/FTS5TokenizerTests.swift; sourceTree = "<group>"; };
56419F1924A54094004967E1 /* StatementArguments+FoundationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "StatementArguments+FoundationTests.swift"; path = "Support/Foundation/StatementArguments+FoundationTests.swift"; sourceTree = "<group>"; };
56419F1A24A54094004967E1 /* PersistableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PersistableRecordTests.swift; path = Record/PersistableRecord/PersistableRecordTests.swift; sourceTree = "<group>"; };
56419F1B24A54094004967E1 /* ValueObservationReadonlyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationReadonlyTests.swift; path = ValueObservation/ValueObservationReadonlyTests.swift; sourceTree = "<group>"; };
56419F1C24A54094004967E1 /* SQLExpressionLiteralTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SQLExpressionLiteralTests.swift; path = Private/SQLExpressionLiteralTests.swift; sourceTree = "<group>"; };
56419F1D24A54094004967E1 /* DatabaseSuspensionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseSuspensionTests.swift; path = Core/DatabaseSuspensionTests.swift; sourceTree = "<group>"; };
56419F1E24A54094004967E1 /* AssociationPrefetchingRowTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationPrefetchingRowTests.swift; path = QueryInterface/Association/AssociationPrefetchingRowTests.swift; sourceTree = "<group>"; };
56419F1F24A54094004967E1 /* DatabaseValueConversionErrorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseValueConversionErrorTests.swift; path = Core/DatabaseValueConversionErrorTests.swift; sourceTree = "<group>"; };
56419F2024A54094004967E1 /* AssociationHasOneThroughSQLDerivationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasOneThroughSQLDerivationTests.swift; path = QueryInterface/Association/AssociationHasOneThroughSQLDerivationTests.swift; sourceTree = "<group>"; };
56419F2124A54094004967E1 /* RecordEditedTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordEditedTests.swift; path = Record/Record/RecordEditedTests.swift; sourceTree = "<group>"; };
56419F2224A54095004967E1 /* AssociationPrefetchingFetchableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationPrefetchingFetchableRecordTests.swift; path = QueryInterface/Association/AssociationPrefetchingFetchableRecordTests.swift; sourceTree = "<group>"; };
56419F2324A54095004967E1 /* DatabaseCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseCursorTests.swift; path = Core/Cursor/DatabaseCursorTests.swift; sourceTree = "<group>"; };
56419F2424A54095004967E1 /* UtilsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = UtilsTests.swift; path = Private/UtilsTests.swift; sourceTree = "<group>"; };
56419F2524A54095004967E1 /* FoundationDateComponentsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationDateComponentsTests.swift; path = Support/Foundation/FoundationDateComponentsTests.swift; sourceTree = "<group>"; };
56419F2624A54095004967E1 /* FoundationNSNumberTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationNSNumberTests.swift; path = Support/Foundation/FoundationNSNumberTests.swift; sourceTree = "<group>"; };
56419F2724A54095004967E1 /* PrefixCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PrefixCursorTests.swift; path = Core/Cursor/PrefixCursorTests.swift; sourceTree = "<group>"; };
56419F2824A54095004967E1 /* DatabaseDateEncodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseDateEncodingStrategyTests.swift; path = Record/PersistableRecord/DatabaseDateEncodingStrategyTests.swift; sourceTree = "<group>"; };
56419F2924A54095004967E1 /* UpdateStatementTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = UpdateStatementTests.swift; path = Core/Statement/UpdateStatementTests.swift; sourceTree = "<group>"; };
56419F2A24A54095004967E1 /* ValueObservationFetchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationFetchTests.swift; path = ValueObservation/ValueObservationFetchTests.swift; sourceTree = "<group>"; };
56419F2B24A54095004967E1 /* ValueObservationPrintTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationPrintTests.swift; path = ValueObservation/ValueObservationPrintTests.swift; sourceTree = "<group>"; };
56419F2C24A54095004967E1 /* ValueObservationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationTests.swift; path = ValueObservation/ValueObservationTests.swift; sourceTree = "<group>"; };
56419F2D24A54095004967E1 /* RecordPrimaryKeySingleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordPrimaryKeySingleTests.swift; path = Record/Record/RecordPrimaryKeySingleTests.swift; sourceTree = "<group>"; };
56419F2E24A54095004967E1 /* DatabaseValueConvertibleDecodableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseValueConvertibleDecodableTests.swift; path = Core/DatabaseValueConvertible/DatabaseValueConvertibleDecodableTests.swift; sourceTree = "<group>"; };
56419F2F24A54096004967E1 /* ValueObservationRecorder.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationRecorder.swift; path = ValueObservation/ValueObservationRecorder.swift; sourceTree = "<group>"; };
56419F3124A54096004967E1 /* MutablePersistableRecordPersistenceConflictPolicyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MutablePersistableRecordPersistenceConflictPolicyTests.swift; path = Record/PersistableRecord/MutablePersistableRecordPersistenceConflictPolicyTests.swift; sourceTree = "<group>"; };
56419F3224A54096004967E1 /* DatabaseQueueSchemaCacheTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseQueueSchemaCacheTests.swift; path = Private/DatabaseQueueSchemaCacheTests.swift; sourceTree = "<group>"; };
56419F3324A54096004967E1 /* RowFromDictionaryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RowFromDictionaryTests.swift; path = Core/Row/RowFromDictionaryTests.swift; sourceTree = "<group>"; };
56419F3424A54096004967E1 /* DatabaseQueueReleaseMemoryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseQueueReleaseMemoryTests.swift; path = Private/DatabaseQueueReleaseMemoryTests.swift; sourceTree = "<group>"; };
56419F3524A54096004967E1 /* VirtualTableModuleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = VirtualTableModuleTests.swift; path = QueryInterface/VirtualTableModuleTests.swift; sourceTree = "<group>"; };
56419F3624A54096004967E1 /* SQLLiteralTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SQLLiteralTests.swift; path = Core/SQLLiteralTests.swift; sourceTree = "<group>"; };
56419F3724A54096004967E1 /* AssociationBelongsToSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationBelongsToSQLTests.swift; path = QueryInterface/Association/AssociationBelongsToSQLTests.swift; sourceTree = "<group>"; };
56419F3824A54096004967E1 /* InflectionsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = InflectionsTests.swift; path = Private/InflectionsTests.swift; sourceTree = "<group>"; };
56419F3924A54096004967E1 /* FTS5RecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS5RecordTests.swift; path = FTS/FTS5RecordTests.swift; sourceTree = "<group>"; };
56419F3A24A54096004967E1 /* FTS5TableBuilderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS5TableBuilderTests.swift; path = FTS/FTS5TableBuilderTests.swift; sourceTree = "<group>"; };
56419F3B24A54096004967E1 /* FTS3TokenizerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS3TokenizerTests.swift; path = FTS/FTS3TokenizerTests.swift; sourceTree = "<group>"; };
56419F3C24A54096004967E1 /* PoolTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PoolTests.swift; path = Private/PoolTests.swift; sourceTree = "<group>"; };
56419F3D24A54096004967E1 /* DatabaseValueConversionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseValueConversionTests.swift; path = Core/DatabaseValueConversionTests.swift; sourceTree = "<group>"; };
56419F3E24A54097004967E1 /* FoundationNSStringTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationNSStringTests.swift; path = Support/Foundation/FoundationNSStringTests.swift; sourceTree = "<group>"; };
56419F3F24A54097004967E1 /* AssociationHasManyThroughRowScopeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasManyThroughRowScopeTests.swift; path = QueryInterface/Association/AssociationHasManyThroughRowScopeTests.swift; sourceTree = "<group>"; };
56419F4024A54097004967E1 /* RecordUniqueIndexTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordUniqueIndexTests.swift; path = Private/RecordUniqueIndexTests.swift; sourceTree = "<group>"; };
56419F4124A54097004967E1 /* FTS3PatternTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS3PatternTests.swift; path = FTS/FTS3PatternTests.swift; sourceTree = "<group>"; };
56419F4224A54097004967E1 /* FTS3RecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS3RecordTests.swift; path = FTS/FTS3RecordTests.swift; sourceTree = "<group>"; };
56419F4324A54097004967E1 /* DatabaseWriterTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseWriterTests.swift; path = Core/DatabaseWriterTests.swift; sourceTree = "<group>"; };
56419F4424A54097004967E1 /* AssociationPrefetchingSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationPrefetchingSQLTests.swift; path = QueryInterface/Association/AssociationPrefetchingSQLTests.swift; sourceTree = "<group>"; };
56419F4524A54097004967E1 /* MutablePersistableRecordChangesTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MutablePersistableRecordChangesTests.swift; path = Record/PersistableRecord/MutablePersistableRecordChangesTests.swift; sourceTree = "<group>"; };
56419F4624A54097004967E1 /* AssociationHasManyThroughSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasManyThroughSQLTests.swift; path = QueryInterface/Association/AssociationHasManyThroughSQLTests.swift; sourceTree = "<group>"; };
56419F4724A54097004967E1 /* ValueObservationRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationRecordTests.swift; path = ValueObservation/ValueObservationRecordTests.swift; sourceTree = "<group>"; };
56419F4824A54097004967E1 /* RecordInitializersTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordInitializersTests.swift; path = Record/Record/RecordInitializersTests.swift; sourceTree = "<group>"; };
56419F4924A54097004967E1 /* AssociationChainRowScopesTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationChainRowScopesTests.swift; path = QueryInterface/Association/AssociationChainRowScopesTests.swift; sourceTree = "<group>"; };
56419F4A24A54097004967E1 /* DropWhileCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DropWhileCursorTests.swift; path = Core/Cursor/DropWhileCursorTests.swift; sourceTree = "<group>"; };
56419F4B24A54097004967E1 /* AssociationHasOneThroughFetchableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasOneThroughFetchableRecordTests.swift; path = QueryInterface/Association/AssociationHasOneThroughFetchableRecordTests.swift; sourceTree = "<group>"; };
56419F4C24A54097004967E1 /* FetchableRecord+QueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "FetchableRecord+QueryInterfaceRequestTests.swift"; path = "QueryInterface/FetchableRecord+QueryInterfaceRequestTests.swift"; sourceTree = "<group>"; };
56419F4D24A54098004967E1 /* RowFetchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RowFetchTests.swift; path = Core/Row/RowFetchTests.swift; sourceTree = "<group>"; };
56419F4E24A54098004967E1 /* InflectionsTests.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = InflectionsTests.json; path = Private/InflectionsTests.json; sourceTree = "<group>"; };
56419F4F24A54098004967E1 /* ValueObservationMapTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationMapTests.swift; path = ValueObservation/ValueObservationMapTests.swift; sourceTree = "<group>"; };
56419F5024A54098004967E1 /* AssociationRowScopeSearchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationRowScopeSearchTests.swift; path = QueryInterface/Association/AssociationRowScopeSearchTests.swift; sourceTree = "<group>"; };
56419F5124A54098004967E1 /* RecordPersistenceConflictPolicy.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordPersistenceConflictPolicy.swift; path = Record/Record/RecordPersistenceConflictPolicy.swift; sourceTree = "<group>"; };
56419F5224A54098004967E1 /* FoundationNSNullTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationNSNullTests.swift; path = Support/Foundation/FoundationNSNullTests.swift; sourceTree = "<group>"; };
56419F5324A54098004967E1 /* RawRepresentable+DatabaseValueConvertibleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "RawRepresentable+DatabaseValueConvertibleTests.swift"; path = "Core/DatabaseValueConvertible/RawRepresentable+DatabaseValueConvertibleTests.swift"; sourceTree = "<group>"; };
56419F5424A54098004967E1 /* CompilationProtocolTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = CompilationProtocolTests.swift; path = Compilation/CompilationProtocolTests.swift; sourceTree = "<group>"; };
56419F5524A54098004967E1 /* DropFirstCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DropFirstCursorTests.swift; path = Core/Cursor/DropFirstCursorTests.swift; sourceTree = "<group>"; };
56419F5624A54098004967E1 /* QueryInterfacePromiseTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = QueryInterfacePromiseTests.swift; path = QueryInterface/QueryInterfacePromiseTests.swift; sourceTree = "<group>"; };
56419F5724A54098004967E1 /* ValueObservationQueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationQueryInterfaceRequestTests.swift; path = ValueObservation/ValueObservationQueryInterfaceRequestTests.swift; sourceTree = "<group>"; };
56419F5824A54098004967E1 /* DatabaseErrorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseErrorTests.swift; path = Core/DatabaseErrorTests.swift; sourceTree = "<group>"; };
56419F5924A54098004967E1 /* ResultCodeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ResultCodeTests.swift; path = Core/ResultCodeTests.swift; sourceTree = "<group>"; };
56419F5A24A54098004967E1 /* AssociationAggregateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationAggregateTests.swift; path = QueryInterface/Association/AssociationAggregateTests.swift; sourceTree = "<group>"; };
56419F5B24A54098004967E1 /* SelectStatementTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SelectStatementTests.swift; path = Core/Statement/SelectStatementTests.swift; sourceTree = "<group>"; };
56419F5C24A54099004967E1 /* DatabaseReaderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseReaderTests.swift; path = Core/DatabaseReaderTests.swift; sourceTree = "<group>"; };
56419F5D24A54099004967E1 /* DatabasePoolFunctionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabasePoolFunctionTests.swift; path = Core/DatabasePool/DatabasePoolFunctionTests.swift; sourceTree = "<group>"; };
56419F5E24A54099004967E1 /* EncryptionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = EncryptionTests.swift; path = GRDBCipher/EncryptionTests.swift; sourceTree = "<group>"; };
56419F5F24A54099004967E1 /* TableDefinitionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TableDefinitionTests.swift; path = QueryInterface/TableDefinitionTests.swift; sourceTree = "<group>"; };
56419F6024A54099004967E1 /* DatabaseLogErrorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseLogErrorTests.swift; path = Core/DatabaseLogErrorTests.swift; sourceTree = "<group>"; };
56419F6124A54099004967E1 /* RecordMinimalPrimaryKeySingleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordMinimalPrimaryKeySingleTests.swift; path = Record/Record/RecordMinimalPrimaryKeySingleTests.swift; sourceTree = "<group>"; };
56419F6224A54099004967E1 /* AssociationHasOneThroughDecodableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasOneThroughDecodableRecordTests.swift; path = QueryInterface/Association/AssociationHasOneThroughDecodableRecordTests.swift; sourceTree = "<group>"; };
56419F6324A54099004967E1 /* ValueObservationCountTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationCountTests.swift; path = ValueObservation/ValueObservationCountTests.swift; sourceTree = "<group>"; };
56419F6424A54099004967E1 /* DatabaseValueConvertibleEscapingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseValueConvertibleEscapingTests.swift; path = Private/DatabaseValueConvertibleEscapingTests.swift; sourceTree = "<group>"; };
56419F6524A54099004967E1 /* ColumnExpressionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ColumnExpressionTests.swift; path = QueryInterface/ColumnExpressionTests.swift; sourceTree = "<group>"; };
56419F6624A54099004967E1 /* DatabaseValueConvertibleSubclassTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseValueConvertibleSubclassTests.swift; path = Core/DatabaseValueConvertible/DatabaseValueConvertibleSubclassTests.swift; sourceTree = "<group>"; };
56419F6724A54099004967E1 /* DatabasePoolConcurrencyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabasePoolConcurrencyTests.swift; path = Core/DatabasePool/DatabasePoolConcurrencyTests.swift; sourceTree = "<group>"; };
56419F6824A54099004967E1 /* RowAdapterTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RowAdapterTests.swift; path = Core/Row/RowAdapterTests.swift; sourceTree = "<group>"; };
56419F6924A54099004967E1 /* SQLRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SQLRequestTests.swift; path = Core/SQLRequestTests.swift; sourceTree = "<group>"; };
56419F6A24A54099004967E1 /* AssociationHasManyOrderingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasManyOrderingTests.swift; path = QueryInterface/Association/AssociationHasManyOrderingTests.swift; sourceTree = "<group>"; };
56419F6B24A5409A004967E1 /* CGFloatTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = CGFloatTests.swift; path = Support/CGFloatTests.swift; sourceTree = "<group>"; };
56419F6C24A5409A004967E1 /* AssociationHasManySQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasManySQLTests.swift; path = QueryInterface/Association/AssociationHasManySQLTests.swift; sourceTree = "<group>"; };
56419F6D24A5409A004967E1 /* JoinSupportTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = JoinSupportTests.swift; path = Record/JoinSupportTests.swift; sourceTree = "<group>"; };
56419F6E24A5409A004967E1 /* RowTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RowTestCase.swift; path = Core/Row/RowTestCase.swift; sourceTree = "<group>"; };
56419F6F24A5409A004967E1 /* PrimaryKeyInfoTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PrimaryKeyInfoTests.swift; path = Core/PrimaryKeyInfoTests.swift; sourceTree = "<group>"; };
56419F7024A5409A004967E1 /* DatabaseConfigurationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseConfigurationTests.swift; path = Core/DatabaseConfigurationTests.swift; sourceTree = "<group>"; };
56419F7124A5409A004967E1 /* AssociationHasOneThroughRowScopeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasOneThroughRowScopeTests.swift; path = QueryInterface/Association/AssociationHasOneThroughRowScopeTests.swift; sourceTree = "<group>"; };
56419F7224A5409A004967E1 /* ForeignKeyInfoTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ForeignKeyInfoTests.swift; path = Core/ForeignKeyInfoTests.swift; sourceTree = "<group>"; };
56419F7324A5409A004967E1 /* DatabaseTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseTests.swift; path = Core/DatabaseTests.swift; sourceTree = "<group>"; };
56419F7424A5409A004967E1 /* DatabasePoolTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabasePoolTests.swift; path = Core/DatabasePool/DatabasePoolTests.swift; sourceTree = "<group>"; };
56419F7524A5409A004967E1 /* FTS5CustomTokenizerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS5CustomTokenizerTests.swift; path = FTS/FTS5CustomTokenizerTests.swift; sourceTree = "<group>"; };
56419F7624A5409A004967E1 /* PrefixWhileCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PrefixWhileCursorTests.swift; path = Core/Cursor/PrefixWhileCursorTests.swift; sourceTree = "<group>"; };
56419F7724A5409A004967E1 /* DatabaseMigratorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseMigratorTests.swift; path = Migrations/DatabaseMigratorTests.swift; sourceTree = "<group>"; };
56419F7824A5409A004967E1 /* AssociationHasManyRowScopeTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasManyRowScopeTests.swift; path = QueryInterface/Association/AssociationHasManyRowScopeTests.swift; sourceTree = "<group>"; };
56419F7924A5409B004967E1 /* ValueObservationRecorderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationRecorderTests.swift; path = ValueObservation/ValueObservationRecorderTests.swift; sourceTree = "<group>"; };
56419F7A24A5409B004967E1 /* TransactionObserverTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TransactionObserverTests.swift; path = Core/TransactionObserver/TransactionObserverTests.swift; sourceTree = "<group>"; };
56419F7B24A5409B004967E1 /* MapCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MapCursorTests.swift; path = Core/Cursor/MapCursorTests.swift; sourceTree = "<group>"; };
56419F7C24A5409B004967E1 /* FetchableRecordDecodableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FetchableRecordDecodableTests.swift; path = Record/FetchableRecord/FetchableRecordDecodableTests.swift; sourceTree = "<group>"; };
56419F7D24A5409B004967E1 /* FoundationNSUUIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationNSUUIDTests.swift; path = Support/Foundation/FoundationNSUUIDTests.swift; sourceTree = "<group>"; };
56419F7E24A5409B004967E1 /* DatabaseUUIDEncodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseUUIDEncodingStrategyTests.swift; path = Record/PersistableRecord/DatabaseUUIDEncodingStrategyTests.swift; sourceTree = "<group>"; };
56419F7F24A5409B004967E1 /* DatabaseQueueConcurrencyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseQueueConcurrencyTests.swift; path = Core/DatabaseQueue/DatabaseQueueConcurrencyTests.swift; sourceTree = "<group>"; };
56419F8024A5409B004967E1 /* CompilationSubClassTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = CompilationSubClassTests.swift; path = Compilation/CompilationSubClassTests.swift; sourceTree = "<group>"; };
56419F8124A5409B004967E1 /* FoundationNSDecimalNumberTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationNSDecimalNumberTests.swift; path = Support/Foundation/FoundationNSDecimalNumberTests.swift; sourceTree = "<group>"; };
56419F8224A5409B004967E1 /* AssociationHasOneThroughSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasOneThroughSQLTests.swift; path = QueryInterface/Association/AssociationHasOneThroughSQLTests.swift; sourceTree = "<group>"; };
56419F8324A5409B004967E1 /* FoundationUUIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationUUIDTests.swift; path = Support/Foundation/FoundationUUIDTests.swift; sourceTree = "<group>"; };
56419F8424A5409B004967E1 /* DatabaseQueueReadOnlyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseQueueReadOnlyTests.swift; path = Core/DatabaseQueue/DatabaseQueueReadOnlyTests.swift; sourceTree = "<group>"; };
56419F8524A5409B004967E1 /* SchedulingWatchdogTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SchedulingWatchdogTests.swift; path = Core/SchedulingWatchdogTests.swift; sourceTree = "<group>"; };
56419F8624A5409C004967E1 /* RecordPrimaryKeyHiddenRowIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordPrimaryKeyHiddenRowIDTests.swift; path = Record/Record/RecordPrimaryKeyHiddenRowIDTests.swift; sourceTree = "<group>"; };
56419F8724A5409C004967E1 /* GRDBTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GRDBTestCase.swift; sourceTree = "<group>"; };
56419F8824A5409C004967E1 /* QueryInterfaceExpressionsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = QueryInterfaceExpressionsTests.swift; sourceTree = "<group>"; };
56419F8924A5409C004967E1 /* QueryInterfaceExtensibilityTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = QueryInterfaceExtensibilityTests.swift; sourceTree = "<group>"; };
56419F8A24A5409C004967E1 /* DatabaseAggregateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseAggregateTests.swift; sourceTree = "<group>"; };
56419F8B24A5409C004967E1 /* TransactionObserverSavepointsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TransactionObserverSavepointsTests.swift; sourceTree = "<group>"; };
56419F8824A5409C004967E1 /* QueryInterfaceExpressionsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = QueryInterfaceExpressionsTests.swift; path = QueryInterface/QueryInterfaceExpressionsTests.swift; sourceTree = "<group>"; };
56419F8924A5409C004967E1 /* QueryInterfaceExtensibilityTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = QueryInterfaceExtensibilityTests.swift; path = QueryInterface/QueryInterfaceExtensibilityTests.swift; sourceTree = "<group>"; };
56419F8A24A5409C004967E1 /* DatabaseAggregateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseAggregateTests.swift; path = Core/DatabaseAggregateTests.swift; sourceTree = "<group>"; };
56419F8B24A5409C004967E1 /* TransactionObserverSavepointsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TransactionObserverSavepointsTests.swift; path = Core/TransactionObserver/TransactionObserverSavepointsTests.swift; sourceTree = "<group>"; };
56419F8C24A5409C004967E1 /* FailureTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FailureTestCase.swift; sourceTree = "<group>"; };
56419F8D24A5409C004967E1 /* AssociationParallelSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationParallelSQLTests.swift; sourceTree = "<group>"; };
56419F8E24A5409C004967E1 /* RowFromDictionaryLiteralTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RowFromDictionaryLiteralTests.swift; sourceTree = "<group>"; };
56419F8F24A5409C004967E1 /* AssociationPrefetchingObservationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationPrefetchingObservationTests.swift; sourceTree = "<group>"; };
56419F9024A5409C004967E1 /* TableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableRecordTests.swift; sourceTree = "<group>"; };
56419F9124A5409C004967E1 /* FTS4RecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS4RecordTests.swift; sourceTree = "<group>"; };
56419F9224A5409C004967E1 /* ValueObservationRegionRecordingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationRegionRecordingTests.swift; sourceTree = "<group>"; };
56419F9324A5409D004967E1 /* ColumnInfoTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ColumnInfoTests.swift; sourceTree = "<group>"; };
56419F9424A5409D004967E1 /* FTS5WrapperTokenizerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS5WrapperTokenizerTests.swift; sourceTree = "<group>"; };
56419F9524A5409D004967E1 /* RecordPrimaryKeyNoneTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordPrimaryKeyNoneTests.swift; sourceTree = "<group>"; };
56419F9624A5409D004967E1 /* FetchableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FetchableRecordTests.swift; sourceTree = "<group>"; };
56419F9724A5409D004967E1 /* RowFromStatementTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RowFromStatementTests.swift; sourceTree = "<group>"; };
56419F9824A5409D004967E1 /* AssociationParallelRowScopesTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationParallelRowScopesTests.swift; sourceTree = "<group>"; };
56419F9924A5409D004967E1 /* DatabaseQueueTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueTests.swift; sourceTree = "<group>"; };
56419F9A24A5409D004967E1 /* AssociationPrefetchingCodableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationPrefetchingCodableRecordTests.swift; sourceTree = "<group>"; };
56419F9B24A5409D004967E1 /* DatabaseValueTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseValueTests.swift; sourceTree = "<group>"; };
56419F9C24A5409D004967E1 /* TableRecord+QueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "TableRecord+QueryInterfaceRequestTests.swift"; sourceTree = "<group>"; };
56419F9D24A5409D004967E1 /* DatabaseAfterNextTransactionCommitTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseAfterNextTransactionCommitTests.swift; sourceTree = "<group>"; };
56419F9E24A5409D004967E1 /* AssociationTableAliasTestsSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationTableAliasTestsSQLTests.swift; sourceTree = "<group>"; };
56419F9F24A5409E004967E1 /* FoundationNSDataTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationNSDataTests.swift; sourceTree = "<group>"; };
56419FA024A5409E004967E1 /* AssociationParallelDecodableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationParallelDecodableRecordTests.swift; sourceTree = "<group>"; };
56419FA124A5409E004967E1 /* Row+FoundationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Row+FoundationTests.swift"; sourceTree = "<group>"; };
56419FA324A5409E004967E1 /* ValueObservationDatabaseValueConvertibleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationDatabaseValueConvertibleTests.swift; sourceTree = "<group>"; };
56419FA424A5409E004967E1 /* ValueObservationRowTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValueObservationRowTests.swift; sourceTree = "<group>"; };
56419FA524A5409E004967E1 /* AnyCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AnyCursorTests.swift; sourceTree = "<group>"; };
56419FA624A5409E004967E1 /* StatementColumnConvertibleFetchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StatementColumnConvertibleFetchTests.swift; sourceTree = "<group>"; };
56419FA724A5409E004967E1 /* RowCopiedFromStatementTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RowCopiedFromStatementTests.swift; sourceTree = "<group>"; };
56419FA824A5409E004967E1 /* IndexInfoTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IndexInfoTests.swift; sourceTree = "<group>"; };
56419FA924A5409E004967E1 /* AssociationHasManyThroughOrderingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasManyThroughOrderingTests.swift; sourceTree = "<group>"; };
56419FAA24A5409E004967E1 /* FTS5PatternTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS5PatternTests.swift; sourceTree = "<group>"; };
56419FAB24A5409E004967E1 /* DatabaseTraceTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseTraceTests.swift; sourceTree = "<group>"; };
56419FAC24A5409E004967E1 /* DatabasePoolSchemaCacheTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabasePoolSchemaCacheTests.swift; sourceTree = "<group>"; };
56419FAD24A5409F004967E1 /* FilterCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FilterCursorTests.swift; sourceTree = "<group>"; };
56419FAE24A5409F004967E1 /* FlattenCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FlattenCursorTests.swift; sourceTree = "<group>"; };
56419FAF24A5409F004967E1 /* FTS3TableBuilderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FTS3TableBuilderTests.swift; sourceTree = "<group>"; };
56419FB024A5409F004967E1 /* RecordPrimaryKeySingleWithReplaceConflictResolutionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordPrimaryKeySingleWithReplaceConflictResolutionTests.swift; sourceTree = "<group>"; };
56419FB124A5409F004967E1 /* AssociationBelongsToFetchableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationBelongsToFetchableRecordTests.swift; sourceTree = "<group>"; };
56419FB224A5409F004967E1 /* FoundationNSDateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationNSDateTests.swift; sourceTree = "<group>"; };
56419FB324A5409F004967E1 /* DerivableRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DerivableRequestTests.swift; sourceTree = "<group>"; };
56419FB424A5409F004967E1 /* DatabaseSnapshotTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseSnapshotTests.swift; sourceTree = "<group>"; };
56419FB524A5409F004967E1 /* FoundationNSURLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationNSURLTests.swift; sourceTree = "<group>"; };
56419FB624A5409F004967E1 /* TruncateOptimizationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TruncateOptimizationTests.swift; sourceTree = "<group>"; };
56419FB724A5409F004967E1 /* DatabaseTimestampTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseTimestampTests.swift; sourceTree = "<group>"; };
56419FB824A5409F004967E1 /* FoundationURLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationURLTests.swift; sourceTree = "<group>"; };
56419FB924A5409F004967E1 /* RecordPrimaryKeyRowIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordPrimaryKeyRowIDTests.swift; sourceTree = "<group>"; };
56419FBA24A5409F004967E1 /* DatabasePoolReadOnlyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabasePoolReadOnlyTests.swift; sourceTree = "<group>"; };
56419FBB24A540A0004967E1 /* DatabaseCollationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseCollationTests.swift; sourceTree = "<group>"; };
56419FBC24A540A0004967E1 /* DatabaseValueConvertibleFetchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseValueConvertibleFetchTests.swift; sourceTree = "<group>"; };
56419FBD24A540A0004967E1 /* AssociationBelongsToDecodableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationBelongsToDecodableRecordTests.swift; sourceTree = "<group>"; };
56419FBE24A540A0004967E1 /* DatabaseDateDecodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseDateDecodingStrategyTests.swift; sourceTree = "<group>"; };
56419FBF24A540A0004967E1 /* CursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CursorTests.swift; sourceTree = "<group>"; };
56419FC024A540A0004967E1 /* DatabaseFunctionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseFunctionTests.swift; sourceTree = "<group>"; };
56419FC124A540A0004967E1 /* EnumeratedCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EnumeratedCursorTests.swift; sourceTree = "<group>"; };
56419FC224A540A0004967E1 /* RecordSubClassTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordSubClassTests.swift; sourceTree = "<group>"; };
56419FC324A540A0004967E1 /* DataMemoryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DataMemoryTests.swift; sourceTree = "<group>"; };
56419FC424A540A0004967E1 /* DatabaseQueueInMemoryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseQueueInMemoryTests.swift; sourceTree = "<group>"; };
56419FC524A540A1004967E1 /* FoundationDataTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationDataTests.swift; sourceTree = "<group>"; };
56419FC624A540A1004967E1 /* DatabasePoolReleaseMemoryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabasePoolReleaseMemoryTests.swift; sourceTree = "<group>"; };
56419FC724A540A1004967E1 /* AssociationHasOneSQLDerivationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationHasOneSQLDerivationTests.swift; sourceTree = "<group>"; };
56419F8D24A5409C004967E1 /* AssociationParallelSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationParallelSQLTests.swift; path = QueryInterface/Association/AssociationParallelSQLTests.swift; sourceTree = "<group>"; };
56419F8E24A5409C004967E1 /* RowFromDictionaryLiteralTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RowFromDictionaryLiteralTests.swift; path = Core/Row/RowFromDictionaryLiteralTests.swift; sourceTree = "<group>"; };
56419F8F24A5409C004967E1 /* AssociationPrefetchingObservationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationPrefetchingObservationTests.swift; path = QueryInterface/Association/AssociationPrefetchingObservationTests.swift; sourceTree = "<group>"; };
56419F9024A5409C004967E1 /* TableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TableRecordTests.swift; path = Record/TableRecord/TableRecordTests.swift; sourceTree = "<group>"; };
56419F9124A5409C004967E1 /* FTS4RecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS4RecordTests.swift; path = FTS/FTS4RecordTests.swift; sourceTree = "<group>"; };
56419F9224A5409C004967E1 /* ValueObservationRegionRecordingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationRegionRecordingTests.swift; path = ValueObservation/ValueObservationRegionRecordingTests.swift; sourceTree = "<group>"; };
56419F9324A5409D004967E1 /* ColumnInfoTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ColumnInfoTests.swift; path = Core/ColumnInfoTests.swift; sourceTree = "<group>"; };
56419F9424A5409D004967E1 /* FTS5WrapperTokenizerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS5WrapperTokenizerTests.swift; path = FTS/FTS5WrapperTokenizerTests.swift; sourceTree = "<group>"; };
56419F9524A5409D004967E1 /* RecordPrimaryKeyNoneTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordPrimaryKeyNoneTests.swift; path = Record/Record/RecordPrimaryKeyNoneTests.swift; sourceTree = "<group>"; };
56419F9624A5409D004967E1 /* FetchableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FetchableRecordTests.swift; path = Record/FetchableRecord/FetchableRecordTests.swift; sourceTree = "<group>"; };
56419F9724A5409D004967E1 /* RowFromStatementTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RowFromStatementTests.swift; path = Core/Row/RowFromStatementTests.swift; sourceTree = "<group>"; };
56419F9824A5409D004967E1 /* AssociationParallelRowScopesTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationParallelRowScopesTests.swift; path = QueryInterface/Association/AssociationParallelRowScopesTests.swift; sourceTree = "<group>"; };
56419F9924A5409D004967E1 /* DatabaseQueueTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseQueueTests.swift; path = Core/DatabaseQueue/DatabaseQueueTests.swift; sourceTree = "<group>"; };
56419F9A24A5409D004967E1 /* AssociationPrefetchingCodableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationPrefetchingCodableRecordTests.swift; path = QueryInterface/Association/AssociationPrefetchingCodableRecordTests.swift; sourceTree = "<group>"; };
56419F9B24A5409D004967E1 /* DatabaseValueTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseValueTests.swift; path = Core/DatabaseValueTests.swift; sourceTree = "<group>"; };
56419F9C24A5409D004967E1 /* TableRecord+QueryInterfaceRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "TableRecord+QueryInterfaceRequestTests.swift"; path = "QueryInterface/TableRecord+QueryInterfaceRequestTests.swift"; sourceTree = "<group>"; };
56419F9D24A5409D004967E1 /* DatabaseAfterNextTransactionCommitTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseAfterNextTransactionCommitTests.swift; path = Core/DatabaseAfterNextTransactionCommitTests.swift; sourceTree = "<group>"; };
56419F9E24A5409D004967E1 /* AssociationTableAliasTestsSQLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationTableAliasTestsSQLTests.swift; path = QueryInterface/Association/AssociationTableAliasTestsSQLTests.swift; sourceTree = "<group>"; };
56419F9F24A5409E004967E1 /* FoundationNSDataTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationNSDataTests.swift; path = Support/Foundation/FoundationNSDataTests.swift; sourceTree = "<group>"; };
56419FA024A5409E004967E1 /* AssociationParallelDecodableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationParallelDecodableRecordTests.swift; path = QueryInterface/Association/AssociationParallelDecodableRecordTests.swift; sourceTree = "<group>"; };
56419FA124A5409E004967E1 /* Row+FoundationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "Row+FoundationTests.swift"; path = "Support/Foundation/Row+FoundationTests.swift"; sourceTree = "<group>"; };
56419FA324A5409E004967E1 /* ValueObservationDatabaseValueConvertibleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationDatabaseValueConvertibleTests.swift; path = ValueObservation/ValueObservationDatabaseValueConvertibleTests.swift; sourceTree = "<group>"; };
56419FA424A5409E004967E1 /* ValueObservationRowTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ValueObservationRowTests.swift; path = ValueObservation/ValueObservationRowTests.swift; sourceTree = "<group>"; };
56419FA524A5409E004967E1 /* AnyCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AnyCursorTests.swift; path = Core/Cursor/AnyCursorTests.swift; sourceTree = "<group>"; };
56419FA624A5409E004967E1 /* StatementColumnConvertibleFetchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = StatementColumnConvertibleFetchTests.swift; path = Core/StatementColumnConvertibleFetchTests.swift; sourceTree = "<group>"; };
56419FA724A5409E004967E1 /* RowCopiedFromStatementTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RowCopiedFromStatementTests.swift; path = Core/Row/RowCopiedFromStatementTests.swift; sourceTree = "<group>"; };
56419FA824A5409E004967E1 /* IndexInfoTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = IndexInfoTests.swift; path = Core/IndexInfoTests.swift; sourceTree = "<group>"; };
56419FA924A5409E004967E1 /* AssociationHasManyThroughOrderingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasManyThroughOrderingTests.swift; path = QueryInterface/Association/AssociationHasManyThroughOrderingTests.swift; sourceTree = "<group>"; };
56419FAA24A5409E004967E1 /* FTS5PatternTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS5PatternTests.swift; path = FTS/FTS5PatternTests.swift; sourceTree = "<group>"; };
56419FAB24A5409E004967E1 /* DatabaseTraceTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseTraceTests.swift; path = Core/DatabaseTraceTests.swift; sourceTree = "<group>"; };
56419FAC24A5409E004967E1 /* DatabasePoolSchemaCacheTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabasePoolSchemaCacheTests.swift; path = Private/DatabasePoolSchemaCacheTests.swift; sourceTree = "<group>"; };
56419FAD24A5409F004967E1 /* FilterCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FilterCursorTests.swift; path = Core/Cursor/FilterCursorTests.swift; sourceTree = "<group>"; };
56419FAE24A5409F004967E1 /* FlattenCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FlattenCursorTests.swift; path = Core/Cursor/FlattenCursorTests.swift; sourceTree = "<group>"; };
56419FAF24A5409F004967E1 /* FTS3TableBuilderTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FTS3TableBuilderTests.swift; path = FTS/FTS3TableBuilderTests.swift; sourceTree = "<group>"; };
56419FB024A5409F004967E1 /* RecordPrimaryKeySingleWithReplaceConflictResolutionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordPrimaryKeySingleWithReplaceConflictResolutionTests.swift; path = Record/Record/RecordPrimaryKeySingleWithReplaceConflictResolutionTests.swift; sourceTree = "<group>"; };
56419FB124A5409F004967E1 /* AssociationBelongsToFetchableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationBelongsToFetchableRecordTests.swift; path = QueryInterface/Association/AssociationBelongsToFetchableRecordTests.swift; sourceTree = "<group>"; };
56419FB224A5409F004967E1 /* FoundationNSDateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationNSDateTests.swift; path = Support/Foundation/FoundationNSDateTests.swift; sourceTree = "<group>"; };
56419FB324A5409F004967E1 /* DerivableRequestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DerivableRequestTests.swift; path = QueryInterface/DerivableRequestTests.swift; sourceTree = "<group>"; };
56419FB424A5409F004967E1 /* DatabaseSnapshotTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseSnapshotTests.swift; path = Core/DatabaseSnapshotTests.swift; sourceTree = "<group>"; };
56419FB524A5409F004967E1 /* FoundationNSURLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationNSURLTests.swift; path = Support/Foundation/FoundationNSURLTests.swift; sourceTree = "<group>"; };
56419FB624A5409F004967E1 /* TruncateOptimizationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TruncateOptimizationTests.swift; path = Core/TransactionObserver/TruncateOptimizationTests.swift; sourceTree = "<group>"; };
56419FB724A5409F004967E1 /* DatabaseTimestampTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseTimestampTests.swift; path = Core/DatabaseValueConvertible/DatabaseTimestampTests.swift; sourceTree = "<group>"; };
56419FB824A5409F004967E1 /* FoundationURLTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationURLTests.swift; path = Support/Foundation/FoundationURLTests.swift; sourceTree = "<group>"; };
56419FB924A5409F004967E1 /* RecordPrimaryKeyRowIDTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordPrimaryKeyRowIDTests.swift; path = Record/Record/RecordPrimaryKeyRowIDTests.swift; sourceTree = "<group>"; };
56419FBA24A5409F004967E1 /* DatabasePoolReadOnlyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabasePoolReadOnlyTests.swift; path = Core/DatabasePool/DatabasePoolReadOnlyTests.swift; sourceTree = "<group>"; };
56419FBB24A540A0004967E1 /* DatabaseCollationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseCollationTests.swift; path = Core/DatabaseCollationTests.swift; sourceTree = "<group>"; };
56419FBC24A540A0004967E1 /* DatabaseValueConvertibleFetchTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseValueConvertibleFetchTests.swift; path = Core/DatabaseValueConvertible/DatabaseValueConvertibleFetchTests.swift; sourceTree = "<group>"; };
56419FBD24A540A0004967E1 /* AssociationBelongsToDecodableRecordTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationBelongsToDecodableRecordTests.swift; path = QueryInterface/Association/AssociationBelongsToDecodableRecordTests.swift; sourceTree = "<group>"; };
56419FBE24A540A0004967E1 /* DatabaseDateDecodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseDateDecodingStrategyTests.swift; path = Record/FetchableRecord/DatabaseDateDecodingStrategyTests.swift; sourceTree = "<group>"; };
56419FBF24A540A0004967E1 /* CursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = CursorTests.swift; path = Core/Cursor/CursorTests.swift; sourceTree = "<group>"; };
56419FC024A540A0004967E1 /* DatabaseFunctionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseFunctionTests.swift; path = Core/DatabaseFunctionTests.swift; sourceTree = "<group>"; };
56419FC124A540A0004967E1 /* EnumeratedCursorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = EnumeratedCursorTests.swift; path = Core/Cursor/EnumeratedCursorTests.swift; sourceTree = "<group>"; };
56419FC224A540A0004967E1 /* RecordSubClassTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordSubClassTests.swift; path = Record/Record/RecordSubClassTests.swift; sourceTree = "<group>"; };
56419FC324A540A0004967E1 /* DataMemoryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DataMemoryTests.swift; path = Private/DataMemoryTests.swift; sourceTree = "<group>"; };
56419FC424A540A0004967E1 /* DatabaseQueueInMemoryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseQueueInMemoryTests.swift; path = Core/DatabaseQueue/DatabaseQueueInMemoryTests.swift; sourceTree = "<group>"; };
56419FC524A540A1004967E1 /* FoundationDataTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationDataTests.swift; path = Support/Foundation/FoundationDataTests.swift; sourceTree = "<group>"; };
56419FC624A540A1004967E1 /* DatabasePoolReleaseMemoryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabasePoolReleaseMemoryTests.swift; path = Private/DatabasePoolReleaseMemoryTests.swift; sourceTree = "<group>"; };
56419FC724A540A1004967E1 /* AssociationHasOneSQLDerivationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationHasOneSQLDerivationTests.swift; path = QueryInterface/Association/AssociationHasOneSQLDerivationTests.swift; sourceTree = "<group>"; };
5641A15F24A540C7004967E1 /* Recorder.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Recorder.swift; sourceTree = "<group>"; };
5641A16024A540C7004967E1 /* RecordingError.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordingError.swift; sourceTree = "<group>"; };
5641A16224A540C7004967E1 /* Finished.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Finished.swift; sourceTree = "<group>"; };
@@ -742,31 +741,31 @@
564A1F6F226B89D6001F64F1 /* Betty.jpeg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = Betty.jpeg; sourceTree = "<group>"; };
564A2156226B8E18001F64F1 /* GRDBTestsEncrypted.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GRDBTestsEncrypted.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
564A2158226C8F24001F64F1 /* db.SQLCipher3 */ = {isa = PBXFileReference; lastKnownFileType = file; path = db.SQLCipher3; sourceTree = SOURCE_ROOT; };
565A27C827871FE500659A62 /* BackupTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BackupTestCase.swift; sourceTree = "<group>"; };
567B23192A29BFE100C61174 /* Issue1383.sqlite */ = {isa = PBXFileReference; lastKnownFileType = file; path = Issue1383.sqlite; sourceTree = "<group>"; };
567B5C0A2AD32A0000629622 /* SingletonRecordTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SingletonRecordTest.swift; sourceTree = "<group>"; };
567B5C0B2AD32A0000629622 /* SharedValueObservationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SharedValueObservationTests.swift; sourceTree = "<group>"; };
567B5C0C2AD32A0000629622 /* SQLExpressionIsConstantTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SQLExpressionIsConstantTests.swift; sourceTree = "<group>"; };
567B5C0D2AD32A0000629622 /* SQLIdentifyingColumnsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SQLIdentifyingColumnsTests.swift; sourceTree = "<group>"; };
567B5C0E2AD32A0000629622 /* TransactionDateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TransactionDateTests.swift; sourceTree = "<group>"; };
567B5C0F2AD32A0000629622 /* TableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableTests.swift; sourceTree = "<group>"; };
567B5C432AD32F5900629622 /* DatabaseDumpTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseDumpTests.swift; sourceTree = "<group>"; };
567B5C442AD32F5900629622 /* DatabaseReaderDumpTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseReaderDumpTests.swift; sourceTree = "<group>"; };
568515A72E66C2EC0082E9A1 /* RecordMappedOnMutableViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RecordMappedOnMutableViewTests.swift; sourceTree = "<group>"; };
568C3F812A5AB38300A2309D /* ForeignKeyDefinitionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ForeignKeyDefinitionTests.swift; sourceTree = "<group>"; };
568C3F842A5AB3A800A2309D /* AssociationPrefetchingRelationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssociationPrefetchingRelationTests.swift; sourceTree = "<group>"; };
568C3F852A5AB3A800A2309D /* DatabaseColumnEncodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseColumnEncodingStrategyTests.swift; sourceTree = "<group>"; };
568C3F862A5AB3A800A2309D /* FoundationDecimalTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FoundationDecimalTests.swift; sourceTree = "<group>"; };
568C3F872A5AB3A800A2309D /* CommonTableExpressionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CommonTableExpressionTests.swift; sourceTree = "<group>"; };
568C3F882A5AB3A800A2309D /* CaseInsensitiveIdentifierTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CaseInsensitiveIdentifierTests.swift; sourceTree = "<group>"; };
568C3F892A5AB3A800A2309D /* DatabaseSnapshotPoolTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DatabaseSnapshotPoolTests.swift; sourceTree = "<group>"; };
568C3F8A2A5AB3A800A2309D /* RecordMinimalNonOptionalPrimaryKeySingleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RecordMinimalNonOptionalPrimaryKeySingleTests.swift; sourceTree = "<group>"; };
565A27C827871FE500659A62 /* BackupTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = BackupTestCase.swift; path = Core/BackupTestCase.swift; sourceTree = "<group>"; };
567B23192A29BFE100C61174 /* Issue1383.sqlite */ = {isa = PBXFileReference; lastKnownFileType = file; name = Issue1383.sqlite; path = ValueObservation/Issue1383.sqlite; sourceTree = "<group>"; };
567B5C0A2AD32A0000629622 /* SingletonRecordTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SingletonRecordTest.swift; path = Record/SingletonRecordTest.swift; sourceTree = "<group>"; };
567B5C0B2AD32A0000629622 /* SharedValueObservationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SharedValueObservationTests.swift; path = ValueObservation/SharedValueObservationTests.swift; sourceTree = "<group>"; };
567B5C0C2AD32A0000629622 /* SQLExpressionIsConstantTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SQLExpressionIsConstantTests.swift; path = QueryInterface/SQLExpressionIsConstantTests.swift; sourceTree = "<group>"; };
567B5C0D2AD32A0000629622 /* SQLIdentifyingColumnsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SQLIdentifyingColumnsTests.swift; path = QueryInterface/SQLIdentifyingColumnsTests.swift; sourceTree = "<group>"; };
567B5C0E2AD32A0000629622 /* TransactionDateTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TransactionDateTests.swift; path = Core/TransactionDateTests.swift; sourceTree = "<group>"; };
567B5C0F2AD32A0000629622 /* TableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TableTests.swift; path = QueryInterface/TableTests.swift; sourceTree = "<group>"; };
567B5C432AD32F5900629622 /* DatabaseDumpTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseDumpTests.swift; path = Dump/DatabaseDumpTests.swift; sourceTree = "<group>"; };
567B5C442AD32F5900629622 /* DatabaseReaderDumpTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseReaderDumpTests.swift; path = Dump/DatabaseReaderDumpTests.swift; sourceTree = "<group>"; };
568515A72E66C2EC0082E9A1 /* RecordMappedOnMutableViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = RecordMappedOnMutableViewTests.swift; path = Record/PersistableRecord/RecordMappedOnMutableViewTests.swift; sourceTree = "<group>"; };
568C3F812A5AB38300A2309D /* ForeignKeyDefinitionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ForeignKeyDefinitionTests.swift; path = QueryInterface/ForeignKeyDefinitionTests.swift; sourceTree = "<group>"; };
568C3F842A5AB3A800A2309D /* AssociationPrefetchingRelationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AssociationPrefetchingRelationTests.swift; path = QueryInterface/Association/AssociationPrefetchingRelationTests.swift; sourceTree = "<group>"; };
568C3F852A5AB3A800A2309D /* DatabaseColumnEncodingStrategyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseColumnEncodingStrategyTests.swift; path = Record/PersistableRecord/DatabaseColumnEncodingStrategyTests.swift; sourceTree = "<group>"; };
568C3F862A5AB3A800A2309D /* FoundationDecimalTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FoundationDecimalTests.swift; path = Support/Foundation/FoundationDecimalTests.swift; sourceTree = "<group>"; };
568C3F872A5AB3A800A2309D /* CommonTableExpressionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = CommonTableExpressionTests.swift; path = QueryInterface/CommonTableExpressionTests.swift; sourceTree = "<group>"; };
568C3F882A5AB3A800A2309D /* CaseInsensitiveIdentifierTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = CaseInsensitiveIdentifierTests.swift; path = Private/CaseInsensitiveIdentifierTests.swift; sourceTree = "<group>"; };
568C3F892A5AB3A800A2309D /* DatabaseSnapshotPoolTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DatabaseSnapshotPoolTests.swift; path = Core/DatabaseSnapshotPoolTests.swift; sourceTree = "<group>"; };
568C3F8A2A5AB3A800A2309D /* RecordMinimalNonOptionalPrimaryKeySingleTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RecordMinimalNonOptionalPrimaryKeySingleTests.swift; path = Record/Record/RecordMinimalNonOptionalPrimaryKeySingleTests.swift; sourceTree = "<group>"; };
5691D97127257C930021D540 /* AvailableElements.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AvailableElements.swift; sourceTree = "<group>"; };
56BCA2682E6C296E00E4F08D /* DatabaseSchemaSourceTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DatabaseSchemaSourceTests.swift; sourceTree = "<group>"; };
56BCA2682E6C296E00E4F08D /* DatabaseSchemaSourceTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = DatabaseSchemaSourceTests.swift; path = Core/DatabaseSchemaSourceTests.swift; sourceTree = "<group>"; };
56DFC3AF2C84797400DFE5DC /* AsyncSemaphore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AsyncSemaphore.swift; sourceTree = "<group>"; };
56F61DF2283D4AB100AF9884 /* GRDBTests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "GRDBTests-Bridging-Header.h"; sourceTree = "<group>"; };
56F61DF4283D4AB100AF9884 /* getThreadsCount.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = getThreadsCount.c; sourceTree = "<group>"; };
56F61DF5283D4AB100AF9884 /* getThreadsCount.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = getThreadsCount.h; sourceTree = "<group>"; };
56F61DF4283D4AB100AF9884 /* getThreadsCount.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = getThreadsCount.c; path = Core/DatabasePool/getThreadsCount.c; sourceTree = "<group>"; };
56F61DF5283D4AB100AF9884 /* getThreadsCount.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = getThreadsCount.h; path = Core/DatabasePool/getThreadsCount.h; sourceTree = "<group>"; };
67377FE4CDAD675809F93AD4 /* Pods_GRDBTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_GRDBTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
6A4788C0F815F6C5E4EBDE12 /* Pods-GRDBTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GRDBTests.debug.xcconfig"; path = "Target Support Files/Pods-GRDBTests/Pods-GRDBTests.debug.xcconfig"; sourceTree = "<group>"; };
7D5C7999E7D9CE7145687F5D /* Pods_GRDBTestsEncrypted.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_GRDBTestsEncrypted.framework; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -778,7 +777,6 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
5B33E6E34F941B4C839A714F /* BuildFile in Frameworks */,
E158370AAEED49ECD53CE24A /* Pods_GRDBTests.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
@@ -803,7 +801,7 @@
5641A16924A540C7004967E1 /* PublisherExpectation.swift */,
);
name = CombineExpectations;
path = ../CombineExpectations;
path = GRDBCombineTests/CombineExpectations;
sourceTree = "<group>";
};
5641A16124A540C7004967E1 /* PublisherExpectations */ = {
@@ -830,8 +828,7 @@
5641A16E24A540C7004967E1 /* DatabaseRegionObservationPublisherTests.swift */,
5641A16F24A540C7004967E1 /* ValueObservationPublisherTests.swift */,
);
name = GRDBCombineTests;
path = ../GRDBCombineTests;
path = GRDBCombineTests;
sourceTree = "<group>";
};
564A1F12226B8750001F64F1 = {
@@ -12,24 +12,32 @@ class DatabaseConfigurationTests: GRDBTestCase {
connectionCountMutex.increment()
}
connectionCountMutex.store(0)
_ = try DatabaseQueue(configuration: configuration)
XCTAssertEqual(connectionCountMutex.load(), 1)
connectionCountMutex.store(0)
_ = try makeDatabaseQueue(configuration: configuration)
XCTAssertEqual(connectionCountMutex.load(), 2)
XCTAssertEqual(connectionCountMutex.load(), 1)
connectionCountMutex.store(0)
let pool = try makeDatabasePool(configuration: configuration)
XCTAssertEqual(connectionCountMutex.load(), 3)
XCTAssertEqual(connectionCountMutex.load(), 1) // writer
connectionCountMutex.store(0)
try pool.read { _ in }
XCTAssertEqual(connectionCountMutex.load(), 4)
XCTAssertEqual(connectionCountMutex.load(), 1) // 1st reader
connectionCountMutex.store(0)
try pool.makeSnapshot().read { _ in }
XCTAssertEqual(connectionCountMutex.load(), 5)
XCTAssertEqual(connectionCountMutex.load(), 1) // snapshot
#if SQLITE_ENABLE_SNAPSHOT && !SQLITE_DISABLE_SNAPSHOT
try pool.makeSnapshotPool().read { _ in }
XCTAssertEqual(connectionCountMutex.load(), 6)
connectionCountMutex.store(0)
let snapshotPool = try pool.makeSnapshotPool()
XCTAssertEqual(connectionCountMutex.load(), 1) // snapshot
try snapshotPool.read { _ in }
XCTAssertEqual(connectionCountMutex.load(), 2) // 1st reader
#endif
}
@@ -89,7 +89,20 @@ class DatabaseFunctionTests: GRDBTestCase {
XCTAssertEqual(try String.fetchOne(db, sql: "SELECT f()")!, "foo")
}
}
func testFunctionReturningStringWithNULCharacter() throws {
let dbQueue = try makeDatabaseQueue()
let fn = DatabaseFunction("f", argumentCount: 0) { dbValues in
// SQLite supports strings that contain a NUL character:
// https://sqlite.org/nulinstr.html
return "foo\u{0}bar"
}
try dbQueue.inDatabase { db in
db.add(function: fn)
XCTAssertEqual(try String.fetchOne(db, sql: "SELECT f()")!, "foo\u{0}bar")
}
}
func testFunctionReturningData() throws {
let dbQueue = try makeDatabaseQueue()
let fn = DatabaseFunction("f", argumentCount: 0) { dbValues in
@@ -167,7 +180,22 @@ class DatabaseFunctionTests: GRDBTestCase {
XCTAssertEqual(try String.fetchOne(db, sql: "SELECT f('foo')")!, "foo")
}
}
func testFunctionArgumentStringWithNULCharacter() throws {
let dbQueue = try makeDatabaseQueue()
let fn = DatabaseFunction("f", argumentCount: 1) { (dbValues: [DatabaseValue]) in
return String.fromDatabaseValue(dbValues[0])
}
try dbQueue.inDatabase { db in
db.add(function: fn)
// A NUL character can not be written in an SQL string literal:
// the string is passed as a statement argument.
XCTAssertEqual(
try String.fetchOne(db, sql: "SELECT f(?)", arguments: ["foo\u{0}bar"])!,
"foo\u{0}bar")
}
}
func testFunctionArgumentBlob() throws {
let dbQueue = try makeDatabaseQueue()
let fn = DatabaseFunction("f", argumentCount: 1) { (dbValues: [DatabaseValue]) in
@@ -4,8 +4,8 @@ import SQLCipher
#elseif GRDBFRAMEWORK // GRDB.xcodeproj or CocoaPods (standard subspec)
import SQLite3
#elseif GRDBCUSTOMSQLITE // GRDBCustom Framework
// #elseif SomeTrait
// import ...
#elseif SQLCipher
import SQLCipher
#else // Default SPM trait must be the default. It impossible to detect from Xcode.
import GRDBSQLite
#endif
Loaded 100 of 319 files, more files were not shown because too many files have changed in this diff. Show more