Gwendal Roué
9318693fe4
Attached Cache
2023-03-20 13:19:18 +01:00
Gwendal Roué
449c243a36
Rename persistentReaderConnections to dbConfiguration.persistentReadOnlyConnections
2023-03-18 11:08:56 +01:00
Gwendal Roué
063877d49c
Configuration.persistentReaderConnections
2023-03-17 13:52:29 +01:00
Gwendal Roué
0a544dc0d2
Cleanup relationships between SerializedDatabase, WALSnapshotTransaction, and DatabasePool
...
SerializedDatabase hides its allowsUnsafeTransactions property, and makes it thread-safe by protecting it inside its serialized dispatch queue.
WALSnapshotTransaction always notifies when the reader connection is no longer used, and reuses the "isInsideTransaction" wording.
2023-03-17 13:52:29 +01:00
Gwendal Roué
5d7fdeae5a
Fix compiler warnings in tests
2023-03-17 13:52:01 +01:00
Gwendal Roué
0f942c014c
Cleanup
2023-03-14 08:10:56 +01:00
Gwendal Roué
d5a41bd11b
Disable SQLITE_STATIC optimization when there are too many arguments
2023-03-13 19:33:52 +01:00
Gwendal Roué
1d5d1aea68
Upgrade performance tests dependencies
2023-03-11 12:10:25 +01:00
Gwendal Roué
6a24d835d3
Performance tests for various statement arguments strategies
2023-03-11 12:10:25 +01:00
Gwendal Roué
3382280cc3
Statement.execute(arguments:) uses temporary bindings
...
Inspired by @helje5 in https://hachyderm.io/@helge@mastodon.social/109978514220902036
Thank you!!
Now, onto cursors!
2023-03-11 12:10:25 +01:00
Gwendal Roué
60fa8a630f
Improve Statement.databaseRegion documentation
2023-03-11 12:08:17 +01:00
Gwendal Roué
9ba64c2426
Statement argument validation: fix wrong documentation and strenghten tests
2023-03-11 09:12:37 +01:00
Gwendal Roué
c824b42757
Restore busy timeout tests
...
In the context of #1339
2023-02-25 10:56:56 +01:00
Gwendal Roué
5ed44b94bc
More improvements to RecordTimestamps.md
2023-02-23 07:59:08 +01:00
Gwendal Roué
9f0bd4944b
Cleanup
2023-02-22 08:10:28 +01:00
Gwendal Roué
3fab2db88d
RecordTimestamps.md organization
2023-02-22 08:07:27 +01:00
Gwendal Roué
86bde428bf
Make TimestampedRecord a subprotocol of MutablePersistableRecord
2023-02-22 06:13:32 +01:00
Gwendal Roué
c5045dbe7a
TimestampedRecord.updateChangesWithTimestamp
2023-02-21 22:48:37 +01:00
Gwendal Roué
b0d73f3126
EncodableRecord.databaseChanges(modify:)
2023-02-21 22:48:37 +01:00
Gwendal Roué
9e2eb6c599
Enhance TimestampedRecord
...
In particular, `touch` performs an update on disk, just like the unix command.
2023-02-21 21:42:36 +01:00
Gwendal Roué
3bf73e9f66
TimestampedRecord demo
2023-02-21 08:51:03 +01:00
Gwendal Roué
38c9ec29f5
Enable FTS5 by default in CocoaPods
2023-02-19 18:25:16 +01:00
Gwendal Roué
e9afb04b1e
Test that transaction date is reset after a rollback error
2023-02-18 12:19:56 +01:00
Gwendal Roué
93928a791a
Tests for Transaction Date
2023-02-18 08:31:05 +01:00
Gwendal Roué
17906dc505
Table SQL interpolation
...
Addresses https://github.com/groue/GRDB.swift/issues/1332
2023-02-14 08:58:26 +01:00
Gwendal Roué
ac214e6760
SE-0345: if let shorthand for shadowing an existing optional variable
2023-01-30 08:00:47 +01:00
Gwendal Roué
d3c289a320
Availability checks cleanup
2023-01-22 12:37:40 +01:00
Gwendal Roué
c64e9f947b
Merge pull request #1320 from baekteun/refactor/availabilityMacOS
...
UPDATE :: OSX -> macOS in Availability Check
2023-01-22 12:16:20 +01:00
Gwendal Roué
7a790c1f23
Enhance test for StatementArguments initializer from [Any]
...
Also, this removes a Swift 5.8 warning.
2023-01-20 17:05:58 +01:00
Gwendal Roué
bc9190a1dc
Document expected deprecation warnings
...
This addresses #1321
2023-01-17 07:44:49 +01:00
baegteun
a9feac1339
♻️ :: OSX -> macOS in Availability Check
2023-01-17 13:58:37 +09:00
Gwendal Roué
fb547c1a15
Failing test for #1315
2023-01-15 13:27:04 +01:00
Gwendal Roué
38ce06d263
OrderedDictionary.description
2023-01-14 12:33:41 +01:00
Gwendal Roué
0dd17a9a16
Turn ValueObservationScheduler into a protocol
2022-12-29 12:38:06 +01:00
Gwendal Roué
05da03ab1a
Expose generated columns with availability checks
2022-12-10 11:32:23 +01:00
Gwendal Roué
2bde3e11bc
Tests for find(_🔑 ) and find(_🆔 )
2022-11-30 21:39:44 +01:00
Gwendal Roué
df3bd46346
Rename PersistenceError to RecordError
2022-11-30 19:11:07 +01:00
Gwendal Roué
7bd1992e61
Fix ergonomics issue with the definition of compound primary key
...
If the user would forget the PrimaryKeyDefinition, the primary was not defined:
try db.create(table: "membership") { t in
// WRONG: pk is unused
t.primaryKey { pk in
t.column("playerId", .integer)
t.column("teamId", .text)
}
}
The fix is to remove the PrimaryKeyDefinition:
try db.create(table: "membership") { t in
t.primaryKey {
t.column("playerId", .integer)
t.column("teamId", .text)
}
}
2022-11-27 14:09:25 +01:00
Gwendal Roué
f774aa7c07
Fix tests for named in-memory database
2022-11-27 12:46:59 +01:00
Gwendal Roué
f5ebf0de4d
Use primary key definitions with NOT NULL constraint by default
2022-11-27 12:35:47 +01:00
Gwendal Roué
cd16e921fe
Tests for primary key definition with NOT NULL constraint by default
2022-11-27 11:47:56 +01:00
Gwendal Roué
a0bfbafd9c
Add tests for MutablePersistableRecord on tables without explicit primary key
2022-11-26 16:27:27 +01:00
Gwendal Roué
392e9e447d
Shared in-memory databases
2022-11-23 18:32:57 +01:00
Gwendal Roué
0ba3dff901
Rewrite availability check for WAL snapshots
...
Also, enable WAL snapshots with SQLCipher, if SQLITE_ENABLE_SNAPSHOT is set.
2022-11-18 13:33:28 +01:00
Gwendal Roué
9b4d76ca37
Robustness: DatabaseSnapshotPool discards connections that have lost the snapshot
2022-11-18 08:53:39 +01:00
Gwendal Roué
9b663e3bcc
Pool can discard elements after use
2022-11-18 08:52:52 +01:00
Gwendal Roué
847386860f
Fix test compilation on Xcode 14
...
Grrr
2022-11-17 22:48:13 +01:00
Gwendal Roué
e4c5cc3451
Test that DatabaseSnapshotPool can be used from ValueObservation
2022-11-17 22:04:06 +01:00
Gwendal Roué
79d4db7827
More DatabaseSnapshotPool tests
2022-11-17 21:56:01 +01:00
Gwendal Roué
12d656d3a1
Let SQLite check if DatabaseSnapshotPool can be created
2022-11-17 20:01:17 +01:00