Gwendal Roué
437b800d8c
Add test for the SQLite file provided by @kustra
...
https://github.com/groue/GRDB.swift/issues/1383#issuecomment-1572897011
2023-06-02 08:34:14 +02:00
Gwendal Roué
17c3f82f50
Remove weird Xcode error regarding the Scripts "project"
2023-04-10 11:31:19 +02:00
Gwendal Roué
e66dfacab8
WALSnapshotTransaction
2023-03-17 13:52:29 +01:00
Gwendal Roué
93928a791a
Tests for Transaction Date
2023-02-18 08:31:05 +01:00
Gwendal Roué
f649d9e19e
Transaction Date
2023-02-18 08:31:05 +01:00
Gwendal Roué
2dce8d533e
Project organization
2022-11-18 13:33:28 +01:00
Gwendal Roué
b8bc8273a9
Turn snapshot tokens into a proper reader: DatabaseSnapshotPool
2022-11-14 18:22:13 +01:00
Gwendal Roué
a71eb3d662
Introduce WALSnapshotToken
2022-11-13 18:28:54 +01:00
Gwendal Roué
1c7b618a89
Parallelizable tests
2022-09-09 09:33:57 +02:00
Gwendal Roué
4c10899a3c
Single Cross-Platform Target
2022-08-27 13:43:44 +02:00
Gwendal Roué
3e4b04d4d1
Test the "Single-Row Tables" guide
2022-08-25 19:05:27 +02:00
Gwendal Roué
8f562d3e11
NEW: Upsert
2022-08-21 21:22:34 +02:00
Gwendal Roué
a702fe6bc9
BREAKING: persistence callbacks, and support for RETURNING
...
- Replace performInsert, performUpdate, etc with callbacks: willInsert, aroundInsert, didInsert, etc.
- Always call didInsert, even with INSERT OR IGNORE
- Explicit conflict resolution in persistence methods
- Add ...AndFetch... methods
2022-08-21 21:22:34 +02:00
Gwendal Roué
a15f731042
BREAKING: remove Record.copy()
...
This will allow FetchableRecord.init(row:) to throw
2022-08-21 21:22:34 +02:00
Gwendal Roué
58293befc9
BREAKING: Optional is a database value like others
2022-08-21 21:22:34 +02:00
Gwendal Roué
fe225fe452
BREAKING: Remove deprecated methods
2022-08-21 19:21:57 +02:00
Gwendal Roué
86de843bda
Swift 5.7 required: Xcode 14 updates
2022-08-21 19:21:57 +02:00
Gwendal Roué
38c0d68db7
WALSnapshot
...
SQLITE_ENABLE_SNAPSHOT is available from Xcode 14 :-)
2022-06-24 16:48:38 +02:00
Gwendal Roué
5e5b44aa7f
Fix Swiftlint build phase
2022-06-11 14:59:02 +02:00
Gwendal Roué
00d1a80b31
Failing tests for number of threads created by DatabasePool
2022-05-24 19:31:09 +02:00
Gwendal Roué
6236b8a068
Move Headers build phase before Compile Sources
...
This prevents a build error when running tests with Xcode 13.3:
error: Cycle inside GRDBiOS; building could produce unreliable results. This usually can be resolved by moving the target's Headers build phase before Compile Sources.
2022-03-17 18:50:11 +01:00
Gwendal Roué
6ab3fea8fb
Refactor ValueObservation
2022-03-17 18:44:30 +01:00
Gwendal Roué
37571525e6
Merge branch 'development' into dev/issue-1074-incremental_backup_api
2022-01-06 13:45:26 +01:00
Ben Yohay
4a3232199f
GRDB: quote PROJECT_DIR and SRCROOT environment variables.
...
Using those variables without quoting will yield unexpected results if
they contain spaces.
2021-12-29 14:40:56 +02:00
Michael Allman
a71639159b
Add DatabaseBackupProgress and update the documentation
2021-12-15 01:52:25 -05:00
Michael Allman
13e195db40
Revise incremental backup API to report progress via a throwing callback
...
function
2021-12-08 09:37:10 -08:00
Michael Allman
087ad10086
Add an API to track progress of and cancel backups in progress, for both
...
the DatabaseReader/DatabaseWriter API and Database API
2021-12-08 09:37:10 -08:00
Gwendal Roué
b4f30784f4
Support for SwiftLint installed via Homebrew on Apple Silicon
2021-10-31 15:32:26 +01:00
Gwendal Roué
a3a804fa82
Upgrade CombineExpectations
2021-10-24 12:37:28 +02:00
Gwendal Roué
9e0b1b3ded
SharedValueObservation
2021-10-23 17:23:48 +02:00
Gwendal Roué
03fe178439
Bump Xcode compatibility version of projects (Xcode 12+)
2021-10-11 17:13:26 +02:00
Gwendal Roué
33e2c379db
Make it clear that strategies apply to columns only
...
...and not to row scopes or prefetched records
2021-08-28 16:24:53 +02:00
Scott Berrevoets
4ab7f1cf3e
Add support for encoding as well
2021-08-12 20:12:10 -07:00
Gwendal Roué
620eb6f21c
Default DatabaseValueConvertible+Codable implementation uses the JSON format
2021-07-04 17:34:31 +02:00
Gwendal Roué
bdfd5ce277
Table: batch delete & update
...
Also, MutablePersistableRecord is no longer necessary for such operations. TableRecord is enough.
2021-06-21 18:08:27 +02:00
Gwendal Roué
9def48f4f6
Tests for Table
2021-06-19 17:31:40 +02:00
Gwendal Roué
d7971d76e7
Introduce Table
2021-06-19 14:30:04 +02:00
Gwendal Roué
12809f5891
Fix duplicate file warning
2021-04-17 13:22:27 +02:00
Gwendal Roué
ee2d6d8074
CaseInsensitiveIdentifier should help
2021-04-10 16:27:45 +02:00
Gwendal Roué
6958a10a08
Refactor the SwiftUI demo application
2021-04-05 15:28:45 +02:00
Gwendal Roué
55c0abef8b
Tests for id filtering of Identifiable types
2021-03-27 19:46:03 +01:00
Gwendal Roué
c4f9ddd688
Simplify handling of collated expressions
2021-03-27 16:34:37 +01:00
Gwendal Roué
051fdb37b6
Rename SQLLiteral to SQL
2021-03-21 13:33:49 +01:00
Gwendal Roué
d9083a7bf5
Support for Foundation.Decimal
2021-03-20 20:11:26 +01:00
Gwendal Roué
f49fab0cff
Merge SQLQuery into SQLRelation
2021-03-07 14:37:53 +01:00
Gwendal Roué
b7c57dc7f2
Attempt at clarifying the (complex) decoding api
...
The difficulty is due to fast decoding of StatementColumnConvertible, and non-copied Data, from raw SQLite statement.
We want it to be inlinable, and possible in nested rows.
Added missing tests for nested rows
2021-02-25 20:45:12 +01:00
Gwendal Roué
cb2405a8b9
RowDecodingError
2021-02-21 14:21:04 +01:00
Gwendal Roué
7dd36ecc0f
Tests for SQLRelation children
2021-02-19 07:36:33 +01:00
Gwendal Roué
920417beb3
Replace protocols with enums
2021-02-14 18:28:15 +01:00
Gwendal Roué
ae6f5dd0f5
Extract ForeignKey
2021-02-09 18:14:35 +01:00