Gwendal Roué
c5d02eac32
Merge branch 'development'
2025-09-23 20:14:27 +02:00
Gwendal Roué
d1bfce829b
v7.7.0
2025-09-23 19:30:13 +02:00
Gwendal Roué
edd292bcbd
CHANGELOG
2025-09-23 17:44:05 +02:00
Gwendal Roué
a0e101e683
Merge pull request #1810 from groue/dev/persistable-views
...
Persistable Database Views
2025-09-23 17:38:30 +02:00
Gwendal Roué
9ef5e2c8eb
Simplify error messages
2025-09-23 17:12:27 +02:00
Gwendal Roué
f5dc68fc6f
Fix typos
2025-09-23 17:12:27 +02:00
Gwendal Roué
b210ec7428
View Records guide
2025-09-23 17:12:27 +02:00
Gwendal Roué
a7e3acf409
Remove TODO warnings
2025-09-23 17:12:27 +02:00
Gwendal Roué
ca27f75760
Test the stable order of views with a primary key
2025-09-23 17:12:27 +02:00
Gwendal Roué
99ecf76a77
Support primary key when testing the existence of an association to a view
2025-09-23 17:12:27 +02:00
Gwendal Roué
f4991273c2
DatabaseSchemaSource tests
2025-09-23 17:12:27 +02:00
Gwendal Roué
1b98a964d7
Documentation
2025-09-23 17:12:27 +02:00
Gwendal Roué
1095d21abd
Default implementation for schema source chaining.
...
When GRDB eventually adds methods to the DatabaseSchemaSource protocol, our chained schema source will implement chaining on those new methods.
When users write their own custom chaining schema source, the compiler will not tell them that they have to chain the new methods when they upgrade GRDB. The built-in (and correct) implementation of chaining helps avoiding this scenario.
2025-09-23 17:12:27 +02:00
Gwendal Roué
eb2378a741
DatabaseSchemaSource documentation
2025-09-23 17:12:27 +02:00
Gwendal Roué
37dde39557
Public Database.schemaSource and withSchemaSource(_:execute:)
2025-09-23 17:12:27 +02:00
Gwendal Roué
5786391dc9
RecordMappedOnMutableViewTests
2025-09-23 17:12:27 +02:00
Gwendal Roué
e1abafaae3
Ignore schema source during migrations
2025-09-23 17:12:27 +02:00
Gwendal Roué
93d0baeade
The stable order for views is provided by the schemaSource, if any
2025-09-23 17:12:27 +02:00
Gwendal Roué
26ebd7e147
Update outdated comments
2025-09-23 17:12:27 +02:00
Gwendal Roué
75e99861af
Update TableRecordUpdateTests with record types based on database views
2025-09-23 17:12:27 +02:00
Gwendal Roué
2e433a3cb2
Update TableRecordDeleteTests with record types based on database views
2025-09-23 17:12:27 +02:00
Gwendal Roué
9518d74fa6
Improve error message
2025-09-23 17:12:27 +02:00
Gwendal Roué
c7bbebc80f
Change the way we count changes in order to support INSTEAD OF triggers
...
Database.changesCount calls sqlite3_changes(), whose documentation says:
> https://sqlite.org/c3ref/changes.html
> Changes to a view that are intercepted by INSTEAD OF triggers are not counted.
Since we want to support INSTEAD OF triggers well, so that record types can be based on views, we switch to sqlite3_total_changes().
2025-09-23 17:12:27 +02:00
Gwendal Roué
38f5226e95
Database.table(_:hasUniqueKey:) now accept views
2025-09-23 17:12:27 +02:00
Gwendal Roué
2b19803644
DatabaseSchemaSource tests
2025-09-23 17:12:27 +02:00
Gwendal Roué
d7d61add23
DatabaseSchemaSource customizes the primary key of database views
2025-09-23 17:12:27 +02:00
Gwendal Roué
d040588849
Database.fetchPrimitivePrimaryKey(forTable:)
...
This method is necessary for the customization of schema introspection: it must be possible to fallback on the primitive SQLite schema introspection when needed.
2025-09-23 17:12:27 +02:00
Gwendal Roué
30313623eb
Make DatabaseSchemaID and DatabaseObjectID public
...
This is also a big cleanup opportunity.
We need public schema identifiers in order to support the customization of schema introspection.
2025-09-23 17:12:27 +02:00
alephao
aab2664431
fix: DispatchQueueExecutor sendable conformance on Linux
2025-09-18 08:27:14 +02:00
Gwendal Roué
f3acfecc16
DatabaseCollation no longer uses a deprecated String initializer
2025-09-13 12:21:36 +02:00
Gwendal Roué
aa2cdb7ec3
Merge branch 'master' into development
2025-09-10 20:53:15 +02:00
Gwendal Roué
d90ba851fe
Merge pull request #1803 from groue/dependabot/github_actions/actions/checkout-5
...
Bump actions/checkout from 4 to 5
2025-09-10 20:52:19 +02:00
Gwendal Roué
7eea8ccb91
Merge pull request #1813 from groue/dev/SendableMetaType
...
Support for Xcode 26
2025-09-10 18:05:39 +02:00
Gwendal Roué
6a25b3538e
DocC for GRDBSendableMetatype
2025-09-10 07:41:42 +02:00
Gwendal Roué
7ec88b76e0
Start an immediate observation
...
In the iOS 26 simulator the demo app would show a flash of missing content.
2025-09-10 07:12:53 +02:00
Gwendal Roué
1a3842e4bc
Combine and concurrency: lol
2025-09-10 07:12:53 +02:00
Gwendal Roué
32ed290a1b
EncodableRecord is GRDBSendableMetatype
...
This allows us to apply the encoding strategies for Data, Date, UUID when we know we need it, i.e. when we know the primary key, and this happens when we access the database - in a nonisolated fashion.
2025-09-10 07:12:53 +02:00
Gwendal Roué
f88c7202cd
TableRecord is GRDBSendableMetatype
...
This is required because the value of databaseSelection is not required to be Sendable. This forces TableRecord.relationForAll to postpone the definition of the selection until we access the database - in a nonisolated fashion.
2025-09-10 07:12:53 +02:00
Gwendal Roué
79ce0ff5f3
Avoid a compiler warning
2025-09-10 07:12:53 +02:00
Gwendal Roué
f435715f75
ValueReducer is SendableMetatype
...
ValueReducer does not support isolated conformances: it must be able to reduce observed values when needed. This can happen in a nonisolated fashion.
2025-09-10 07:12:52 +02:00
Gwendal Roué
cf1702630f
DatabaseAggregate is SendableMetatype
...
DatabaseAggregate does not support isolated conformances: it must be able to aggregate values whenever a database access is performed. This can happen in a nonisolated fashion.
2025-09-10 07:12:52 +02:00
Gwendal Roué
fd7adf7fb3
SendableMetatype for compiler >= 6.2
2025-09-10 07:12:52 +02:00
Gwendal Roué
be0f0c6f25
Fix a compiler error
...
The error was:
> use of ‘@import’ in framework header is discouraged, including this header requires -fmodules
This commit applies the fix recommended at https://developer.apple.com/documentation/xcode/identifying-and-addressing-framework-module-issues
2025-09-10 07:12:52 +02:00
Gwendal Roué
cd84db3873
Xcode 26 upgrade
2025-09-10 07:12:52 +02:00
Gwendal Roué
4cfa692ddd
Fix race condition regarding Task cancellation
...
This complements #1797 by making sure read-only transactions complete correctly, even if the task is cancelled.
2025-09-10 07:12:11 +02:00
Gwendal Roué
8dfbbb50f6
TODO
2025-09-10 06:51:14 +02:00
Gwendal Roué
3f69614405
DatabaseFunction with raw xFunc
...
No use right now, but I was really bugged that we could not use raw sqlite3_result_xxx methods from custom functions.
2025-09-02 08:09:16 +02:00
Gwendal Roué
b4f3a83755
Remove SwiftLint warning
...
If we don't have warnings about explicit nil initialization, then we have a warning about the name of a disabled rule which is now deprecated. In all cases, we have a warning.
So let's just write 2025 Swift, ignore that rule, and call it a day.
2025-09-02 08:07:16 +02:00
Gwendal Roué
7cd2a4563c
Merge pull request #1807 from emmanuel-ferdman/development
...
Update `GRDB7MigrationGuide.md` reference
2025-08-31 13:52:09 +02:00
Emmanuel Ferdman
2698c55654
Update GRDB7MigrationGuide.md reference
...
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com >
2025-08-30 09:58:59 -07:00
Gwendal Roué
37065fb503
Regression test for #1797
2025-08-19 08:05:07 +02:00
Gwendal Roué
3801ab9ac6
Fix Base image link
2025-08-19 08:04:41 +02:00
Gwendal Roué
26abd8ad79
Merge branch 'dev/sponsor-base'
2025-08-18 17:52:58 +02:00
Gwendal Roué
827ab62bb6
Add link to our beloved sponsor Base
2025-08-18 17:39:03 +02:00
dependabot[bot]
fdeb88a6bd
Bump actions/checkout from 4 to 5
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-08-18 09:08:53 +00:00
Gwendal Roué
8ba1bc9a96
Merge branch 'development'
2025-07-23 13:27:07 +02:00
Gwendal Roué
c4e39285a0
v7.6.1
2025-07-23 13:27:01 +02:00
Gwendal Roué
1622b72b62
Merge pull request #1797 from groue/dev/cancellation-fix
...
Fix race condition regarding Task cancellation
2025-07-23 13:24:52 +02:00
Gwendal Roué
215128390d
Fix race condition: prevent cancellation from cancelling other database accesses after database accesses has completed
...
Before this change, cancelling a database access could cancel *another* database access 😱
2025-07-23 12:01:58 +02:00
Gwendal Roué
c5283a0bd9
Warn against the incompatibility between custom SQLite builds and SPM
...
Addresses https://github.com/groue/GRDB.swift/issues/1709#issuecomment-3100503200
2025-07-22 07:47:41 +02:00
Gwendal Roué
fb68849bfb
Merge branch 'development'
2025-07-20 18:11:22 +02:00
Gwendal Roué
c2bddde88a
v7.6.0
2025-07-20 17:21:28 +02:00
Gwendal Roué
b4a21d63b2
Merge pull request #1796 from groue/dev/public-RowDecodingError
...
Throwing row accessors
2025-07-20 17:13:49 +02:00
Gwendal Roué
6ca38eda3b
Give TableAliasBase a location in DocC
2025-07-20 14:38:15 +02:00
Gwendal Roué
d76922fe1a
Document throwing accessors for records and record collections
2025-07-20 14:38:15 +02:00
Gwendal Roué
a46f3b69e9
Document throwing row accessors
2025-07-20 14:38:15 +02:00
Gwendal Roué
b572982e34
Document RowDecodingError
2025-07-20 13:11:42 +02:00
Gwendal Roué
5a8b025ee8
TODO: test throwing row accessors of record collections and sets
2025-07-20 13:00:12 +02:00
Gwendal Roué
9a1914a813
Test throwing record row accessors
2025-07-20 13:00:12 +02:00
Gwendal Roué
4a92263c5e
Test throwing column row accessors
2025-07-20 13:00:12 +02:00
Gwendal Roué
f72d0cecb2
Document throwing row accessors
2025-07-20 13:00:12 +02:00
Gwendal Roué
24e0f5ddeb
Make throwing row accessors public
2025-07-20 13:00:12 +02:00
Gwendal Roué
2b1b56ea47
Make RowDecodingError public
2025-07-20 13:00:12 +02:00
Gwendal Roué
ad704c58e5
Hide implementation of RowDecodingError
...
Turn the enum into a struct so that it can be made public without exposing internal details
2025-07-20 13:00:12 +02:00
Gwendal Roué
3f928bcf9c
Merge pull request #1794 from groue/dev/actor-access
...
Access task locals from asynchronous database accesses
2025-07-19 17:15:25 +02:00
Gwendal Roué
c91c183354
Async database accesses are no longer escaping and no longer need to capture self
2025-07-19 16:42:17 +02:00
Gwendal Roué
c666393e63
AppDatabase can be a struct, so let it be a struct
2025-07-19 16:42:17 +02:00
Gwendal Roué
d242421862
Async methods accept a non-escaping closure
2025-07-19 16:42:17 +02:00
Gwendal Roué
7a1e65b142
Remove late cancellation checks
...
I'm slowly changing my mind about this.
2025-07-19 15:27:08 +02:00
Gwendal Roué
fb4578a7d6
Delete unused code
2025-07-19 15:26:46 +02:00
Gwendal Roué
6069e6d683
DatabasePool.barrierWriteWithoutTransaction can access task locals
2025-07-19 15:26:44 +02:00
Gwendal Roué
a703da9b27
Async version of Pool.barrier { ... }
2025-07-19 14:25:50 +02:00
Gwendal Roué
684266b7b8
DispatchQueueActor supports barriers in concurrent DispatchQueue
2025-07-19 14:25:50 +02:00
Gwendal Roué
b24fb76610
Failing test for task locals with DatabaseWriter ( #1793 )
2025-07-19 14:25:50 +02:00
Gwendal Roué
cbbd0cb945
Add asserts about expected ends of transaction
2025-07-19 14:25:50 +02:00
Gwendal Roué
dd4227303a
DatabasePool unsafeRead can access task locals
2025-07-19 14:25:50 +02:00
Gwendal Roué
69b786dc9e
Allow COMMIT from a cancelled read-only access.
2025-07-19 14:25:50 +02:00
Gwendal Roué
9dd8b2cef7
Add failing test for task locals access from unsafeRead ( #1793 )
2025-07-19 14:25:50 +02:00
Gwendal Roué
c5ac6cdaa6
DatabaseSnapshotPool reads can access task locals
2025-07-19 14:25:50 +02:00
Gwendal Roué
e154a652dc
Don't check for reentrancy from async Pool.read
...
One can't call an async function from a database access anywau
2025-07-19 14:25:50 +02:00
Gwendal Roué
41d4f23a83
DatabasePool reads can access task locals
2025-07-19 14:25:50 +02:00
Gwendal Roué
27b7400979
Async version of Pool.get()
2025-07-19 14:25:50 +02:00
Gwendal Roué
e6847886db
Extract DispatchQueueActor
...
We'll probably need it in order to access pool elements with support for task locals
2025-07-19 14:25:50 +02:00
Gwendal Roué
c064515247
DatabaseQueue and DatabaseSnapshot reads can access task locals
2025-07-19 14:25:50 +02:00
Gwendal Roué
96236a3d44
Turn Database.cancel into a sendable closure
2025-07-19 14:25:50 +02:00
Gwendal Roué
01cd49b4ec
Failing test for task locals ( #1793 )
2025-07-19 14:25:50 +02:00
Gwendal Roué
9db14cb893
Merge pull request #1776 from Jason-Abbott/development
...
Add custom build instruction for hardened runtime
2025-06-11 09:22:36 +02:00
Jason Abbott
b26f60eae0
Add custom build instruction for hardened runtime
2025-06-10 18:45:29 -06:00
Gwendal Roué
79a41dcbbb
Merge pull request #1773 from Jason-Abbott/development
2025-06-01 10:24:09 +02:00
Jason Abbott
c7d50486ad
Merge branch 'groue:development' into development
2025-05-30 12:05:03 -06:00
Jason Abbott
93292d88f4
Make DatabasePreUpdateEvent.Kind Sendable, matching DatabaseEvent.Kind, and also duplicate comments from DatabaseEvent.Kind while here
2025-05-30 12:02:23 -06:00
Gwendal Roué
be22e0a2d0
Merge pull request #1768 from groue/dev/throwing-closures
...
All closures that accept DatabaseComponents can throw
2025-05-12 20:58:47 +02:00
Gwendal Roué
d1a2cb0948
All closures that accept DatabaseComponents can throw
2025-05-12 20:33:18 +02:00
Gwendal Roué
a5a1be26b4
Merge branch 'development'
2025-05-11 14:25:02 +02:00
Gwendal Roué
b84d1eaeef
v7.5.0
2025-05-11 14:23:56 +02:00
Gwendal Roué
e7a35dde06
Extend Usage section
2025-05-11 14:23:04 +02:00
Gwendal Roué
c2e6c86934
Warn against the independent observation of each element in a list.
2025-05-11 13:32:50 +02:00
Gwendal Roué
7c2cbfe814
Merge pull request #1759 from groue/dev/expression-builder
...
Build request with closures
2025-05-11 13:28:01 +02:00
Gwendal Roué
034b241e71
Rename ColumnsProvider to DatabaseComponents
2025-05-11 13:10:19 +02:00
Gwendal Roué
814146c40d
DocC
2025-05-11 11:56:21 +02:00
Gwendal Roué
fedcdef65e
Fix typo
2025-05-11 11:21:48 +02:00
Gwendal Roué
2316fb3831
Prefer key paths when possible
2025-05-11 11:12:19 +02:00
Gwendal Roué
98e2812089
Convenience api for updating a single column
2025-05-11 10:58:09 +02:00
Gwendal Roué
8f6f1aa264
TODO
2025-05-11 10:57:28 +02:00
Gwendal Roué
96d04716c2
Update more documentation with the closure syntax
2025-05-11 10:57:20 +02:00
Gwendal Roué
004968517e
Update more documentation with the closure syntax
2025-05-10 17:43:22 +02:00
Gwendal Roué
f635aea2f2
Update more documentation with the closure syntax
2025-05-10 16:38:02 +02:00
Gwendal Roué
5c9b772e65
Test CommonTableExpression aliases on Swift 6.1
2025-05-10 16:37:44 +02:00
Gwendal Roué
d6ff3b14d4
DocC
2025-05-10 15:34:10 +02:00
Gwendal Roué
fac0c22ecb
Documentation for generic TableAlias
2025-05-10 14:52:48 +02:00
Gwendal Roué
5461caff04
Tests for generic TableAlias
2025-05-10 14:52:48 +02:00
Gwendal Roué
6cc3116ff4
TableAlias is generic
2025-05-10 14:52:48 +02:00
Gwendal Roué
55edcff97f
Extract TableAlias
2025-05-10 09:40:16 +02:00
Gwendal Roué
430141344d
Update more documentation with the closure syntax
2025-05-10 09:36:14 +02:00
Gwendal Roué
0567f69e66
Update AssociationBasics.md with the closure syntax
2025-05-10 09:36:14 +02:00
Gwendal Roué
be2fb76d77
DocC
2025-05-10 09:36:14 +02:00
Gwendal Roué
503fb09270
Test that aggregate can be expressed with key-paths in Swift 6.1
2025-05-10 09:36:14 +02:00
Gwendal Roué
ec6042e9c7
Update Tour.playground with closure syntax
2025-05-10 09:36:14 +02:00
Gwendal Roué
190ccda727
Rename deleteAndFetchStatement(_:select:) for consistency
2025-05-10 09:36:14 +02:00
Gwendal Roué
af1adff71d
More closure syntax for requests in README
2025-05-10 09:36:14 +02:00
Gwendal Roué
43e103d5f8
Recommend GRDB7 for CocoaPods
2025-05-10 09:36:14 +02:00
Gwendal Roué
7b2e9d838a
Swift 6.1 compiler: test key-path requests.
2025-05-10 09:36:14 +02:00
Gwendal Roué
6b0faede2a
Use closure syntax for insertAndFetch
2025-05-10 09:36:14 +02:00
Gwendal Roué
ed402d5de6
Use closure syntax for batch updates
2025-05-10 09:36:14 +02:00
Gwendal Roué
db5c4cc458
Use closure syntax for requests in README
2025-05-10 09:36:14 +02:00
Gwendal Roué
352f77f225
Stop recommending String enums for Columns.
...
We now recommend:
enum Columns {
static let id = Column("id")
static let title = Column("title")
static let latitude = Column("latitude")
static let longitude = Column("longitude")
}
Instead of the previous recommendation:
enum Columns: String, ColumnExpression {
case id, title, latitude, longitude
}
This is because SE-0438 does not support Metatype Keypaths for enums. A request like `Place.order(\.title)` does not compile with a String enum.
2025-05-10 09:36:14 +02:00
Gwendal Roué
ed98ac30e0
DocC
2025-05-10 09:36:14 +02:00
Gwendal Roué
35fa28ab90
QueryInterfaceRequest.select(_:as:) with ColumnsProvider
2025-05-10 09:36:14 +02:00
Gwendal Roué
a89bd88340
Prefer key paths over closures, except in tests
...
Don't use key paths in tests because they are Swift 6.1+ only
2025-05-10 09:36:14 +02:00
Gwendal Roué
b01f6da3cf
Remove TODO
2025-05-10 09:36:14 +02:00
Gwendal Roué
e7fdd65072
deleteAndFetchStatement(_,selection:) with ColumnsProvider
2025-05-10 09:36:14 +02:00
Gwendal Roué
ff15f30a3b
select(_, as:) with ColumnsProvider
2025-05-10 09:36:14 +02:00
Gwendal Roué
f69ca1a573
Build aggregates from ColumnsProvider
2025-05-10 09:36:14 +02:00
Gwendal Roué
e8b143e2ee
Demo app uses ColumnsProvider
2025-05-10 09:36:14 +02:00
Gwendal Roué
5e9b965bee
Test requests built from ColumnsProvider
2025-05-10 09:36:13 +02:00
Gwendal Roué
ce238b6643
Build requests from ColumnsProvider
2025-05-10 09:36:13 +02:00
Gwendal Roué
787393db18
Fix Swiftlint warning
2025-05-10 09:36:13 +02:00
Gwendal Roué
8774497f31
Modernize QueryInterfaceRequestTests with an inner Columns type
...
so that we can use the new SQLExpressionBuilder
2025-05-10 09:36:13 +02:00
Gwendal Roué
94e90e7e6c
Columns and ColumnsProvider associated types of TableRecord
2025-05-10 09:36:13 +02:00
Gwendal Roué
9064717b8a
Merge pull request #1764 from groue/dev/fts-pattern-initializers
...
Make it possible to create a raw FTS5Pattern without any database connection
2025-05-08 13:07:27 +02:00
Gwendal Roué
00f462292b
Documentation
2025-05-08 12:50:19 +02:00
Gwendal Roué
5a0622e5b8
Tests for FTS5Pattern.init(rawPattern:allowedColumns:)
2025-05-08 12:48:24 +02:00
Gwendal Roué
596db46407
Make FTS5Pattern.init(rawPattern:allowedColumns:) public
...
Fix #1763
2025-05-08 12:47:21 +02:00
Gwendal Roué
0aaa2a4f37
Adjust wording about Linux
2025-04-26 17:31:40 +02:00
Gwendal Roué
04e73c26c4
v7.4.1
2025-03-28 08:17:58 +01:00
Gwendal Roué
a71c1d6e80
Removed unnecessary TODO warning
2025-03-28 08:15:54 +01:00
Gwendal Roué
52b7b7bd26
Merge branch 'development'
2025-03-22 14:57:59 +01:00
Gwendal Roué
9a9d2e9993
v7.4.0
2025-03-22 14:16:44 +01:00
Gwendal Roué
1ce8e38bea
Merge pull request #1747 from groue/dev/issue-1746
...
Transaction observers are not impacted by Task Cancellation
2025-03-22 13:43:07 +01:00
Gwendal Roué
67b34dc57c
TransactionObserver can access the database, even if the transaction was completed in a cancelled task.
...
Fix https://github.com/groue/GRDB.swift/discussions/1746
2025-03-22 12:13:42 +01:00
Gwendal Roué
515bd78d28
Failing test for https://github.com/groue/GRDB.swift/discussions/1746
2025-03-22 12:12:12 +01:00
Gwendal Roué
f2aa6b386f
Improve the documentation for table recreation
2025-03-15 12:06:31 +01:00
Gwendal Roué
71e09a38d4
Document that migrations that rename foreign key columns should use immediate foreign key checks
...
Fix #1740
2025-03-15 12:06:14 +01:00
Gwendal Roué
d800a79d5d
Merge pull request #1745 from groue/dev/multi-argument-max
...
Add the MIN and MAX multi-argument SQL functions to the query interface
2025-03-15 11:32:20 +01:00
Gwendal Roué
4065ff58e8
Add the min and max multi-argument functions
2025-03-15 10:02:24 +01:00
Gwendal Roué
18eab53f74
Document aggregate functions
2025-03-15 09:51:32 +01:00
Gwendal Roué
6eba24d169
Merge branch 'development'
2025-02-23 19:53:59 +01:00
Gwendal Roué
bd3ac9ef75
v7.3.0
2025-02-23 18:44:22 +01:00
Gwendal Roué
392137c357
XCTestExpectation is Sendable starting Xcode 16.3 beta
2025-02-23 18:43:45 +01:00
Gwendal Roué
b48a56ae03
Revert "Merge pull request #1732 from groue/dev/sending-closures"
...
This reverts commit bbd1eab402 , reversing
changes made to 9b09c5342e .
2025-02-23 18:43:45 +01:00
Gwendal Roué
bbd1eab402
Merge pull request #1732 from groue/dev/sending-closures
...
Async database accesses no longer require Sendable closures.
2025-02-23 15:33:54 +01:00
Gwendal Roué
53c9d12d29
Async database access no longer require Sendable closures.
2025-02-23 15:16:36 +01:00
Gwendal Roué
9b09c5342e
Merge pull request #1731 from groue/dev/virtual-table-options
...
Support for temporary virtual tables
2025-02-23 13:59:48 +01:00
Gwendal Roué
aed22fe0bc
Support for temporary virtual tables.
2025-02-23 13:45:46 +01:00
Gwendal Roué
eec220b652
Merge pull request #1730 from groue/dev/issue-1728
...
Undeprecate Date coding strategies based on DateFormatter
2025-02-23 11:13:02 +01:00
Gwendal Roué
79a782038e
Undeprecate Date coding strategies based on DateFormatter
...
https://github.com/swiftlang/swift/issues/78635#issuecomment-2676324549
> DateFormatter is indeed thread safe and its conformance to Sendable is correct
2025-02-23 11:12:24 +01:00
Gwendal Roué
618e72d153
Merge pull request #1729 from groue/dev/issue-1728
...
Deprecate Date coding strategies based on DateFormatter
2025-02-22 14:29:08 +01:00
Gwendal Roué
824100990f
Deprecate Date coding strategies based on DateFormatter
...
Fix #1728
2025-02-22 13:45:42 +01:00
Gwendal Roué
c7205b172f
Merge branch 'development'
2025-02-12 08:49:02 +01:00
Gwendal Roué
49d14e6b66
v7.2.0
2025-02-12 08:48:52 +01:00
Gwendal Roué
54ed7ec611
Merge pull request #1719 from groue/dev/selectID
...
Select ids with selectID()
2025-02-12 08:46:40 +01:00
Gwendal Roué
68e17351ff
CI: iPhone 15 Pro simulator is no longer available
2025-02-12 08:31:34 +01:00
Gwendal Roué
494e697e94
Warn against selectID() when the ID type is an optional.
2025-02-12 08:25:27 +01:00
Gwendal Roué
87b236dfe0
selectID
...
This reverts 7ffc332327
At the time, selectID was replaced with selectPrimaryKey(as:) because:
> Since Optional is a database value like others, selectID would be a request of optionals for records with an optional ID type:
>
> struct Player: Identifiable, MutablePersistableRecord {
> var id: Int64?
> }
>
> Player.selectID() // QueryInterface<Int64?>
>
> This is not good, because primary keys are not null. And those requests would fetch impractical types such as [Int64?], Set<Int64?>, Int64??.
This problem is reintroduced, but we now recommend against optional ids in https://swiftpackageindex.com/groue/grdb.swift/documentation/grdb/recordrecommendedpractices . And record with optional ids can use selectPrimaryKey(as:).
2025-02-11 20:47:49 +01:00
Gwendal Roué
ea6d8e0123
Merge branch 'development'
2025-02-05 15:34:18 +01:00
Gwendal Roué
073209f1dc
v7.1.0
2025-02-05 15:34:09 +01:00
Gwendal Roué
430530f5f1
CHANGELOG
2025-02-05 14:08:28 +01:00
Gwendal Roué
a716915280
Merge pull request #1717 from groue/dev/RxGRDB
...
Allow RxGRDB to compile without warning
2025-02-05 13:58:25 +01:00
Gwendal Roué
ef36727d9a
🎵 Whatever Lola wants, Lola gets
...
Address https://github.com/RxSwiftCommunity/RxGRDB/issues/72
Based on https://github.com/swiftlang/swift-evolution/blob/main/proposals/0337-support-incremental-migration-to-concurrency-checking.md#preconcurrency-attribute-on-nominal-declarations
See also https://www.massicotte.org/preconcurrency#working-with-swift-5
"Whatever Lola wants, Lola gets" because the Swift language is a blind and cruel mistress.
2025-02-05 13:38:19 +01:00
Gwendal Roué
78b2796f46
CHANGELOG
2025-02-05 08:00:29 +01:00
Gwendal Roué
3535a42c53
Merge pull request #1716 from groue/dev/issue-1715
...
Fix: DatabaseQueue restores its read/write abilities when an async read-only database access is cancelled.
2025-02-04 20:51:58 +01:00
Gwendal Roué
5a4d9b5cb9
Let PRAGMA QUERY_ONLY statements run from a cancelled database access
...
Fix #1715
2025-02-04 19:35:39 +01:00
Gwendal Roué
a64b09d121
Failing test for #1715
2025-02-04 19:35:39 +01:00
Gwendal Roué
287c4be82d
Merge pull request #1713 from groue/dev/sqliteLibVersionNumber
...
Expose `sqlite3_libversion_number` as `Database.sqliteLibVersionNumber`
2025-02-01 12:59:42 +01:00
Gwendal Roué
32c9ba24ba
Replace sqlite3_libversion_number() with Database.sqliteLibVersionNumber
...
and remove SQLite imports that are no longer necessary.
2025-02-01 12:19:11 +01:00
Gwendal Roué
0401d449bb
Database.sqliteLibVersionNumber
2025-02-01 12:01:41 +01:00
Gwendal Roué
4de97e6903
Merge branch 'development'
2025-01-26 16:30:56 +01:00
Gwendal Roué
676636bae4
7.0.0
2025-01-26 16:30:06 +01:00
Gwendal Roué
8e7cbf098f
Fix Realm integration
2025-01-26 16:29:51 +01:00
Gwendal Roué
7250d759fe
Fix generatePerformanceReport.rb script
2025-01-26 16:29:51 +01:00
Gwendal Roué
fe7b9955b1
Upgrade performance tests dependencies
2025-01-26 16:29:51 +01:00
Gwendal Roué
6df8e2bd34
Fix casing of swiftpackageindex.com urls
2025-01-26 15:31:12 +01:00
Gwendal Roué
81cd33b71c
CHANGELOG
2025-01-26 15:26:01 +01:00
Gwendal Roué
2e2c0eaec1
Merge pull request #1699 from groue/dev/jsonb
...
Support for JSONB expressions
2025-01-26 15:22:25 +01:00
Gwendal Roué
ed17710694
Add tests of JSON_GROUP_ARRAY output, from both JSON and JSONB input
2025-01-26 14:44:27 +01:00
Gwendal Roué
0f68d8b684
JSON_VALID options
2025-01-26 14:21:35 +01:00
Gwendal Roué
367f8f7e37
Add missing imports for C SQLite functions
2025-01-26 14:21:35 +01:00
Gwendal Roué
831e79ee82
JSONB functions and tests
2025-01-26 14:21:35 +01:00
Gwendal Roué
8b3f9c0936
Prefer JSONB when building JSON
2025-01-26 14:21:35 +01:00
Gwendal Roué
950db13d46
Declare JSONB functions behavior
2025-01-26 14:21:35 +01:00
Gwendal Roué
0e664cf22e
Not only pluralization can be a problem
2025-01-23 08:10:36 +01:00
Gwendal Roué
1e5602ca9d
Merge pull request #1703 from groue/dev/inflections-fixes
...
Fix pluralization of Bias, Focus, Gas, and Lens
2025-01-22 21:29:31 +01:00
Gwendal Roué
8147811ab4
Mention Bias, Focus, Gas, and Lens in the GRDB 7 Migration Guide
2025-01-22 21:02:09 +01:00
Gwendal Roué
4c9b0eb90e
Fix failing tests for inflections
2025-01-22 20:41:55 +01:00
Gwendal Roué
b63d75da21
Failing tests for inflections
...
- bias/biases
- focus/focuses
- gas/gases
- lens/lenses
2025-01-22 20:41:39 +01:00
Gwendal Roué
5a3db29e21
Remove link to X account
2025-01-21 13:14:03 +01:00
Gwendal Roué
fa0985eb01
Documentation: add @retroactive to Tagged extensions
2025-01-21 08:03:46 +01:00
Gwendal Roué
495e76bb1a
Fix performance tests for SQLite.swift
2025-01-20 08:51:01 +01:00
Gwendal Roué
bbf39353b5
Merge branch 'development'
2025-01-19 18:20:47 +01:00
Gwendal Roué
442b8b0589
7.0.0-beta.7
2025-01-19 17:30:17 +01:00
Gwendal Roué
2c85bc2cfc
CHANGELOG
2025-01-19 16:57:34 +01:00
Gwendal Roué
3f56bc8199
Merge pull request #1700 from groue/dev/all-columns-excluding
...
Select all columns from a table, but a few ones
2025-01-19 16:50:48 +01:00
Gwendal Roué
37ea21eb96
Test AllColumnsExcluding and Table
2025-01-19 16:26:59 +01:00
Gwendal Roué
96c9eb5699
Enhance documentation of generated columns
2025-01-19 16:26:59 +01:00
Gwendal Roué
33103bb373
AllColumnsExcluding tests
2025-01-19 16:26:59 +01:00
Gwendal Roué
6b23181337
Use .allColumns and .rowID instead of AllColumns() and Column.rowID
2025-01-19 16:26:59 +01:00
Gwendal Roué
c5366f4a01
AllColumnsExcluding documentation
2025-01-19 16:26:59 +01:00
Gwendal Roué
a642ac51aa
AllColumnsExcluding
2025-01-19 16:26:59 +01:00
Gwendal Roué
d03208b33a
Remove unused code
2025-01-19 16:26:59 +01:00
Gwendal Roué
a4132a00db
Clarify code that aims at fixing #1357
2025-01-19 16:26:59 +01:00
Gwendal Roué
61c7fdf81b
Github CI: use tvOS 18.1
2025-01-19 16:26:29 +01:00
Gwendal Roué
ec40855466
Merge pull request #1697 from kevinlg/fix-typo-in-docs
...
Fix typo in Readme.md
2025-01-09 07:23:43 +01:00
Kevin LE GOFF
1cca3686f5
Fix typo in Readme.md
2025-01-09 00:01:48 +02:00
Gwendal Roué
1e354ba79c
Delete the rationale for Sendable records
...
... because the reality is that I just don't know how to relax this requirement.
See:
- https://www.youtube.com/watch?v=JmrnE7HUaDE
- https://forums.swift.org/t/swiftserverconf-feedback-on-leveraging-structured-concurrency-in-your-applications/75176
2025-01-02 17:07:55 +01:00
Gwendal Roué
0ea5471b56
Merge pull request #1696 from groue/dev/sqlite-3.47.2
...
Bump custom SQLite to 3.47.2
2025-01-02 12:57:50 +01:00
Gwendal Roué
b2e808b9e4
Bump custom SQLite to 3.47.2
2025-01-02 12:28:14 +01:00
Gwendal Roué
ac0c085a4a
Merge pull request #1695 from JasonnnW3000/master
...
Update LICENSE, fix copyright license year
2025-01-01 12:25:30 +01:00
JasonnnW3000
9f9f0d37dd
Update LICENSE, fix license year
...
Signed-off-by: JasonnnW3000 <sufssl04@gmail.com >
2024-12-31 23:58:47 -05:00
Gwendal Roué
898e7b6abe
Merge pull request #1662 from compnerd/c
...
Core: import `ucrt` on Windows for `strcmp`
2024-11-13 16:11:39 +01:00
Gwendal Roué
0fb599812f
Merge pull request #1661 from compnerd/extensions
...
Foundation: elide extensions on Windows to match Linux
2024-11-13 16:11:10 +01:00
Saleem Abdulrasool
77a4d17940
Core: import ucrt on Windows for strcmp
...
This uses the deprecated `strcmp` interface on Windows, which requires
the C library to be imported. Add the missing import to allow building
on Windows.
2024-11-12 11:12:27 -08:00
Saleem Abdulrasool
c865a847fd
Foundation: elide extensions on Windows to match Linux
...
Similar to Linux, elide some extensions on Windows. This is required to
build this module on Windows.
2024-11-12 11:10:07 -08:00
Gwendal Roué
832bc1aa74
Merge pull request #1660 from nylki/patch-1
...
docs: fixes typos "FST"->"FTS"
2024-11-11 11:50:35 +01:00
Tom Brewe
910ca2d0ce
docs: fixes typos "FST"->"FTS"
2024-11-01 20:16:44 +01:00
Gwendal Roué
3ecb5c5455
Remove compiler warning in demo app
2024-10-22 08:18:38 +02:00
Gwendal Roué
84d25dfc9d
Merge branch 'development'
2024-10-13 18:54:36 +02:00
Gwendal Roué
5664c5a829
7.0.0-beta.6
2024-10-13 18:54:10 +02:00
Gwendal Roué
334a63aa4a
Update links to database schema documentation
2024-10-13 17:58:57 +02:00
Gwendal Roué
7e506f6488
Merge pull request #1654 from groue/dev/SQLite-3.46.1
...
Bump custom SQLite builds to 3.46.1
2024-10-13 17:52:53 +02:00
Gwendal Roué
5341f139e5
Update the Swift badge
2024-10-13 13:55:18 +02:00
Gwendal Roué
917b7ecc90
Bump custom SQLite to 3.46.1
2024-10-13 12:50:56 +02:00
Gwendal Roué
c396fc20be
Merge branch 'development'
2024-10-13 12:18:03 +02:00
Gwendal Roué
73083c4f1b
7.0.0-beta.5
2024-10-13 12:17:37 +02:00
Gwendal Roué
2c12f0a5e6
Merge pull request #1652 from groue/dev/schema-doc
...
Enhance the database schema documentation
2024-10-13 11:33:25 +02:00
Gwendal Roué
c97f633022
More documentation of database schema methods
2024-10-13 11:28:14 +02:00
Gwendal Roué
4315030af5
More tests for object existence checks
2024-10-13 11:12:27 +02:00
Gwendal Roué
13b6c9d36b
Split database schema documentation into several files, and restore the overview of database schema features
...
Fixes #1623
2024-10-13 10:54:13 +02:00
Gwendal Roué
8aaeb253d2
Merge pull request #1653 from Jnosh/schema-changes-readonly
...
Fix DatabaseMigrator.hasSchemaChanges failing for readonly connections
2024-10-13 10:49:53 +02:00
Janosch Hildebrand
a741fb38f0
Fix DatabaseMigrator.hasSchemaChanges failing for readonly connections
2024-10-12 18:36:15 +02:00
Gwendal Roué
2c49a69f43
Raise a fatal error when the users filters a database view by primary key
...
Fixes #1648
2024-10-12 15:41:36 +02:00
Gwendal Roué
d6b50b2c54
Merge branch 'development'
2024-10-12 14:04:05 +02:00
Gwendal Roué
ad983f7971
7.0.0-beta.4
2024-10-12 14:03:56 +02:00
Gwendal Roué
7cd075bbdc
Merge pull request #1651 from groue/dev/hasSchemaChanges
...
Allow applications to handle DatabaseMigrator schema changes.
2024-10-12 14:01:01 +02:00
Gwendal Roué
0aa8498620
DatabaseMigrator.hasSchemaChanges
2024-10-12 12:40:36 +02:00
Gwendal Roué
bccf312af6
Merge branch 'development'
2024-10-06 18:49:34 +02:00
Gwendal Roué
5b4a86b5f7
7.0.0-beta.3
2024-10-06 18:42:03 +02:00
Gwendal Roué
68d12916e6
Fix Swiftlint warning
2024-10-06 18:36:43 +02:00
Gwendal Roué
6a4f454464
Merge pull request #1649 from bok-/master
...
Add `DatabaseValueConvertible` tip for JSON columns
2024-10-06 18:30:23 +02:00
Gwendal Roué
a9fa2871aa
Document the requirements
2024-10-06 18:19:11 +02:00
Rob Amos
8c5396898a
Add DatabaseValueConvertible tip
2024-10-06 23:18:13 +11:00
Gwendal Roué
dd14710c86
Fix typo
2024-10-06 13:55:29 +02:00
Gwendal Roué
97c0c72702
Merge pull request #1645 from philmitchell/coalesce
...
Add coalesce free function and Row method
2024-10-06 13:55:02 +02:00
Gwendal Roué
a17d72e04c
Make the top-level coalesce function work with collections of size zero and one.
2024-10-06 12:53:22 +02:00
Gwendal Roué
761b00f9bc
Test Row.coalesce with collections of size zero and one.
2024-10-06 12:45:38 +02:00
Gwendal Roué
ac3278a38b
Test top-level function coalesce like other top-level functions
2024-10-06 12:42:33 +02:00
Gwendal Roué
06c3ab0d16
Test Row.coalesce on all variants of Row
2024-10-06 12:42:10 +02:00
Gwendal Roué
f38619ada8
Restore alphabetical order of SQL functions
2024-10-06 12:42:10 +02:00
Gwendal Roué
8cac458efc
Use "real" column names in examples.
...
Also, remove "essential".
2024-10-06 12:42:10 +02:00
Gwendal Roué
a13c1bec29
Add coalesce in DocC
2024-10-06 12:19:49 +02:00
Gwendal Roué
c6781f46d2
Prefer Collection over Array
...
This allows the user to call those methods with an Array, or any other collection at hand (including lazy ones)
This change makes `return coalesce(columns.lazy.map { $0.name })` iterate lazily. Before this commit, `map` was returning a non-lazy Array.
2024-10-06 12:19:49 +02:00
Gwendal Roué
fd04831586
Merge pull request #1644 from tayloraswift/enable-linux-build
...
use #if directives to conditionally `@preconcurrency import `the `Dispatch` module to enable building the package on linux
2024-10-06 11:45:59 +02:00
Phil Mitchell
d7754fa79c
Add coalesce free function and Row method
2024-09-30 13:10:59 +10:00
Dianna
5f2185a118
use #if directives to conditionally @preconcurrency import the Dispatch module to enable building the package on linux
2024-09-29 21:44:34 +00:00
Gwendal Roué
dc03b8a29e
Update links to GRDB7 documentation
2024-09-29 20:29:51 +02:00
Gwendal Roué
a0c1de55c4
Enhance PlayerListModelTests
2024-09-29 17:10:05 +02:00
Gwendal Roué
d1f5a37520
Enhance the demo app tests
...
Based on https://forums.swift.org/t/testing-closure-based-asynchronous-apis/73705/36
2024-09-29 15:46:18 +02:00
Gwendal Roué
ed5f8c11ab
7.0.0-beta.2
2024-09-29 15:17:41 +02:00
Gwendal Roué
afda0d1e7c
Merge pull request #1643 from finestructure/patch-1
...
Update .spi.yml
2024-09-29 15:12:38 +02:00
Sven A. Schmidt
18c7f51a4e
Update .spi.yml
2024-09-29 15:10:03 +02:00
Gwendal Roué
a6b15684c3
Improve migration notes for ValueObservation
2024-09-29 13:27:07 +02:00
Gwendal Roué
9bdde6bc6f
More links in GRDBDemo README
2024-09-29 13:04:36 +02:00
Gwendal Roué
db9ef1bb27
Emphasize Swift concurrency recommendations in the migration guide
2024-09-29 12:12:57 +02:00
Gwendal Roué
2958020c69
De-emphasize the Record class in the migration guide
2024-09-29 12:10:26 +02:00
Gwendal Roué
895436a2a1
Mention companion libraries in the GRDB 7 migration guide
2024-09-29 12:07:34 +02:00
Gwendal Roué
47a7ddf08a
Merge branch 'development'
2024-09-29 10:24:10 +02:00
Gwendal Roué
ecd4658a88
Update the release process
2024-09-29 10:23:39 +02:00
Gwendal Roué
ec031dcf4f
v7.0.0-beta
2024-09-29 10:19:57 +02:00
Gwendal Roué
006252cf14
Swift 6 version in podsepc
2024-09-29 10:19:45 +02:00
Gwendal Roué
5a9b592c38
Merge pull request #1642 from groue/GRDB7
...
GRDB 7
2024-09-29 09:27:13 +02:00
Gwendal Roué
e0eca340e4
Demo app cleanup
2024-09-29 08:36:56 +02:00
Gwendal Roué
4132d02d14
Merge pull request #1641 from groue/dev/GRDB7-Swift-6-language-mode
...
GRDB7: Enable the Swift 6 language mode
2024-09-29 08:06:28 +02:00
Gwendal Roué
625c52913b
Remove the documentation paragraph about the Xcode bug with CSQLite
...
It is not informative enough. Maybe Xcode has fixed the bug. And maybe #1600 helps.
2024-09-29 07:19:52 +02:00
Gwendal Roué
c8ec149224
CHANGELOG
2024-09-29 07:16:01 +02:00
Gwendal Roué
9302925081
Fix Swiftlint warnings
2024-09-28 18:02:05 +02:00
Gwendal Roué
030121e45f
Swift 6 language mode on GRDB targets
2024-09-28 17:59:45 +02:00
Gwendal Roué
47fa6ef77a
Extract GRDBTests.xcconfig
2024-09-28 17:59:45 +02:00
Gwendal Roué
f675489243
CHANGELOG
2024-09-28 17:48:14 +02:00
Gwendal Roué
bb712a612e
Rewrite the "Choosing between Synchronous and Asynchronous Database Accesses" section
2024-09-28 17:45:59 +02:00
Gwendal Roué
3c586cb2fc
Update link to the migration guide
2024-09-28 17:16:13 +02:00
Gwendal Roué
d68e55c184
Cleanup demo app, and add tests for the view model
2024-09-28 15:54:23 +02:00
Gwendal Roué
073682c4f0
Remove the experimental flag on stabilized apis
2024-09-28 14:41:12 +02:00
Gwendal Roué
88500570a8
TODO
2024-09-28 14:35:41 +02:00
Gwendal Roué
dc2070981d
Merge pull request #1639 from groue/dev/GRDB7-sendable-async-sequence
...
GRDB 7: ValueObservation async sequence is Sendable
2024-09-28 14:29:28 +02:00
Gwendal Roué
6b2ccebad3
AsyncValueObservation is Sendable
...
A Sendable async sequences plays well with apple/swift-async-algorithms
2024-09-28 13:36:40 +02:00
Gwendal Roué
c404e2d012
Merge pull request #1640 from groue/dev/GRDB7-hide-record-class
...
GRDB 7: Stop mentioning the Record base class in the documentation
2024-09-28 13:36:11 +02:00
Gwendal Roué
20818ee819
Remove the Record class from the documentation
2024-09-28 13:35:11 +02:00
Gwendal Roué
1cd78064c9
Merge pull request #1638 from groue/dev/GRDB7-migration-guide
...
GRDB 7: Migration Guide
2024-09-28 11:18:06 +02:00
Gwendal Roué
ebdd1f1fdf
Fix SPM CI tests
2024-09-28 09:50:34 +02:00
Gwendal Roué
b389547713
Code dump for Swift6Migration test app
2024-09-27 18:02:59 +02:00
Gwendal Roué
d003601d15
TODO
2024-09-27 18:00:07 +02:00
Gwendal Roué
8dbce53ec5
SwiftConcurrency.md
2024-09-27 17:34:32 +02:00
Gwendal Roué
9b6a3b9ec6
SwiftConcurrency.md
...
ChatGPT remarks:
# Overview Section:
The phrase "GRDB optimally schedules those database access closures, in the best interest of the application" is vague and could benefit from more detail on how the scheduling optimizes for concurrency.
# Concurrency Warnings in Swift 6:
"We will address these issues, and provide general guidance in the following sections." This sentence suggests that detailed solutions will be discussed, but it is unclear how each error is related to the following section titles. A more specific reference to which section will cover what would help orient the reader.
# Non-Sendable Record Types Section:
The FAQ format is useful, but it could overwhelm the reader. Breaking up the FAQ into subsections with more concise answers or reordering it based on common issues could improve readability.
# Shorthand Closure Notation Section:
The explanation of why shorthand notation leads to warnings is somewhat technical. It may be helpful to clarify what "may introduce data races" means in practical terms for less experienced developers.
# Choosing Between Synchronous and Asynchronous Database Access:
The section recommends using asynchronous access but leaves open-ended guidance like "this may slow down other tasks". Adding a more concrete explanation of how to balance performance between synchronous and asynchronous approaches would benefit developers.
# General Clarification on Sendable:
Throughout the document, Sendable is mentioned frequently, but less-experienced developers might not fully understand why it matters. A short section or footnote on what Sendable is and why it’s important in Swift 6 concurrency might help provide context for readers unfamiliar with the concept.
2024-09-26 13:27:13 +02:00
Gwendal Roué
cb001cbaa3
SwiftConcurrency.md
2024-09-26 09:43:19 +02:00
Gwendal Roué
521d7847a4
More GRDB 7 migration and Swift concurrency documentation
2024-09-25 20:05:57 +02:00
Gwendal Roué
bc98fdb359
SwiftConcurrency.md
2024-09-24 08:58:07 +02:00
Gwendal Roué
ebe313c3b1
GRDB7MigrationGuide.md
2024-09-23 18:43:33 +02:00
Gwendal Roué
e7e5956698
SwiftConcurrency.md
2024-09-23 18:42:45 +02:00
Gwendal Roué
5d44fc7e52
TODO
2024-09-23 18:42:08 +02:00
Gwendal Roué
aa7c528ef3
Swift Concurrency Guide: GlobalActorIsolatedTypesUsability
2024-09-22 13:50:10 +02:00
Gwendal Roué
7f1a3fd813
Swift Concurrency Guide WIP
2024-09-22 13:50:10 +02:00
Gwendal Roué
48cb4cfb16
GRDB 7 migration guide
2024-09-22 13:50:10 +02:00
Gwendal Roué
2800530b12
Improve documentation of PersistenceContainer subscript getter
2024-09-22 12:51:40 +02:00
Gwendal Roué
ef2251e57c
Test access to SQLite C functions
2024-09-22 12:51:23 +02:00
Gwendal Roué
f7d85b00d1
Fixits
2024-09-22 12:50:58 +02:00
Gwendal Roué
972aa33f68
Avoid optionals in JSON Data to String conversions
2024-09-22 10:10:01 +02:00
Gwendal Roué
89aa353974
StrictConcurrency: databaseDecodingUserInfo and databaseEncodingUserInfo must be declared as a computed property
2024-09-22 10:10:01 +02:00
Gwendal Roué
cc0b401f0a
StrictConcurrency: FetchableRecord.databaseDecodingUserInfo must be declared as a computed property
2024-09-22 10:10:01 +02:00
Gwendal Roué
1be676280f
TODO
2024-09-22 10:10:01 +02:00
Gwendal Roué
938ad7a086
Prefer Data over NSData
2024-09-22 09:29:59 +02:00
Gwendal Roué
0af8415a22
GRDBDemo cleanup
2024-09-22 00:19:05 +02:00
Gwendal Roué
4463374ff3
Merge pull request #1636 from groue/dev/GRDB7-demo
...
GRDB 7: New demo app
2024-09-21 23:58:13 +02:00
Gwendal Roué
be3bce9acc
Fix GRDBTests target
2024-09-21 23:15:01 +02:00
Gwendal Roué
d985314267
Replace the demo apps
2024-09-21 22:04:29 +02:00
Gwendal Roué
9ca2f6e6cc
New manual install test app
2024-09-21 22:04:01 +02:00
Gwendal Roué
6c83b1c52b
README
2024-09-21 21:29:54 +02:00
Gwendal Roué
22d43b67ba
New demo app
2024-09-21 21:18:47 +02:00
Gwendal Roué
e4e3da3a8e
TODO
2024-09-21 17:22:33 +02:00
Gwendal Roué
173f363bdc
TableRecord.databaseSelection should be declared as a computed property
2024-09-21 17:21:59 +02:00
Gwendal Roué
c149d11703
Merge pull request #1635 from groue/dev/GRDB7-any-database
...
GRDB 7: prefer any DatabaseReader and DatabaseWriter
2024-09-21 17:14:49 +02:00
Gwendal Roué
900180dafd
[BREAKING] Prefer any DatabaseReader and DatabaseWriter
2024-09-21 16:50:03 +02:00
Gwendal Roué
23842d8a97
Merge pull request #1634 from groue/dev/GRDB7-bump-requirements
...
GRDB 7: Bump requirements (again)
2024-09-21 15:19:48 +02:00
Gwendal Roué
46e15616a7
[BREAKING] macOS 10.15+
2024-09-21 14:28:24 +02:00
Gwendal Roué
e4a4735494
[BREAKING] tvOS 13+
2024-09-21 13:57:35 +02:00
Gwendal Roué
8c40592955
[BREAKING] iOS 13+
2024-09-21 13:57:23 +02:00
Gwendal Roué
f794d98e49
Merge pull request #1633 from groue/dev/GRDB7-ValueObservation-async-sequence
...
GRDB 7: MainActor ValueObservation scheduling
2024-09-21 13:12:08 +02:00
Gwendal Roué
1649636695
TODO
2024-09-21 12:31:38 +02:00
Gwendal Roué
58a2e04736
Mark ValueObservation starting methods as @preconcurrency
...
I guess the compiler will learn to stop emitting warnings eventually.
https://mjtsai.com/blog/2024/09/20/unwanted-swift-concurrency-checking/
2024-09-21 12:30:38 +02:00
Gwendal Roué
bdb7d84086
[BREAKING] ValueObservation MainActor scheduling
...
Breaking because before iOS 13, macOS 10.15, tvOS 13, there is no longer any default scheduler
2024-09-21 12:30:38 +02:00
Gwendal Roué
e1a384009a
[BREAKING] Async sequences built from ValueObservation schedule values and errors on the cooperative thread pool by default.
2024-09-21 12:19:39 +02:00
Gwendal Roué
dd28d9734b
Fix GlobalActorIsolatedTypesUsability
2024-09-21 12:15:47 +02:00
Gwendal Roué
e7a95cf0f7
Enable GlobalActorIsolatedTypesUsability
2024-09-21 10:39:44 +02:00
Gwendal Roué
7707bbd1e9
Fix Swiftlint warning
2024-09-21 10:39:36 +02:00
Gwendal Roué
2845570929
Fix DocC warnings
2024-09-15 14:27:19 +02:00
Gwendal Roué
9e9bee8d3a
TODO
2024-09-15 14:01:19 +02:00
Gwendal Roué
e307e9c1da
Improve CaseInsensitiveIdentifier documentation
2024-09-15 12:19:19 +02:00
Gwendal Roué
157dbefdc3
TODO
2024-09-15 12:18:56 +02:00
Gwendal Roué
d11f5099b4
Record is not Sendable
2024-09-15 12:18:02 +02:00
Gwendal Roué
3728628e5f
Association is Sendable
2024-09-15 12:10:13 +02:00
Gwendal Roué
29f8aa38fb
Fix compiler warnings in ValueObservation observers
2024-09-15 12:10:10 +02:00
Gwendal Roué
d489178d04
Improve ValueObservation tests debuggability
2024-09-15 11:33:25 +02:00
Gwendal Roué
473b06eac5
Fix compiler warnings about SQLQualifiedRelation
2024-09-15 11:32:06 +02:00
Gwendal Roué
e68a2075fa
Fix compiler warnings when building the request for an association
2024-09-15 11:25:23 +02:00
Gwendal Roué
630daaf48a
Fix compiler warnings about StatementArgumentsSink for literal arguments
2024-09-15 11:17:01 +02:00
Gwendal Roué
461db6c4ac
Feed database promises with Sendable values
2024-09-15 11:12:39 +02:00
Gwendal Roué
d3e62dc5c9
Fix compiler warnings about default Inflections
2024-09-14 17:24:47 +02:00
Gwendal Roué
01308c6044
Fix compiler warnings about NSCache concurrency
2024-09-14 17:24:30 +02:00
Gwendal Roué
b079136cd5
Fix compiler warnings about ISO8601DateFormatter concurrency
2024-09-14 17:24:16 +02:00
Gwendal Roué
9501d1f936
Fix compiler warnings about SchedulingWatchdog concurrency
2024-09-14 17:24:00 +02:00
Gwendal Roué
c2219075cf
TODO
2024-09-14 13:49:30 +02:00
Gwendal Roué
4f1587a307
Merge pull request #1618 from groue/dev/GRDB7-Sendable-database-access
...
GRDB 7: Sendable database accesses
2024-09-14 13:47:53 +02:00
Gwendal Roué
945f398c92
Fix Sendable warnings in tests
2024-09-08 18:00:37 +02:00
Gwendal Roué
4b5ec4f6ca
Enable InferSendableFromCaptures upcoming feature
2024-09-08 17:48:50 +02:00
Gwendal Roué
2f240fd764
[SENDING REGRET] Async database access methods return Sendable results
...
We can not tell the compiler that we can safely return `sending` results, because fetched values are in the same region as the `db` argument, according to SE-0414 (https://github.com/swiftlang/swift-evolution/blob/main/proposals/0414-region-based-isolation.md#rules-for-merging-isolation-regions ).
```
class NotSendable { init() { } }
func fetchNotSendable(_ db: Database) -> NotSendable { fatalError() }
func notOK<T>(_ make: (Database) -> sending T) { }
func ok<T>(_ make: () -> sending T) { }
func usage() {
ok { NotSendable() }
// Returning a task-isolated 'NotSendable' value as a 'sending' result
// risks causing data races.
notOK { db in fetchNotSendable(db) }
}
```
Various attempts at modifying all fetching methods so that they have a `sending` return value have failed.
2024-09-08 16:55:25 +02:00
Gwendal Roué
ec5b7d96e2
SharedValueObservation is Sendable
2024-09-08 16:17:51 +02:00
Gwendal Roué
5f384a4b22
ValueObservation is Sendable
2024-09-08 16:17:51 +02:00
Gwendal Roué
28faa97a37
Database.afterNextTransaction callbacks are Sendable
2024-09-08 16:17:45 +02:00
Gwendal Roué
5585e47c33
Database publishers require Sendable closures
2024-09-08 16:17:17 +02:00
Gwendal Roué
62d96ec544
[SENDING REGRET] Async database accesses require Sendable closures
...
We should be able to use sending closures instead, but DispatchQueue.async does not accept sending closures yet.
2024-09-08 16:16:40 +02:00
Gwendal Roué
e35fb79308
DatabaseRegionObservation callbacks are Sendable
2024-09-08 16:12:33 +02:00
Gwendal Roué
b3ac63b0cd
[SENDING REGRET] DatabaseMigrator.asyncMigrate requires a Sendable closure
...
We should be able to use a sending closure instead, but DispatchQueue.async does not accept sending closures yet.
2024-09-08 16:09:40 +02:00
Gwendal Roué
c122872734
[SENDING REGRET] SerializedDatabase.async requires a Sendable closure
...
We should be able to use a sending closure instead, but DispatchQueue.async does not accept sending closures yet.
2024-09-08 16:09:31 +02:00
Gwendal Roué
6371dc05d5
OnDemandFuture closure is Sendable
...
It can be called at any time, when the publisher is subscribed.
2024-09-08 16:09:19 +02:00
Gwendal Roué
55560ccd90
[SENDING REGRET] Pool async methods require Sendable closures
...
We should be able to use sending closures instead, but DispatchQueue.async does not accept sending closures yet.
2024-09-08 16:09:19 +02:00
Gwendal Roué
0b6ac870e2
[SENDING REGRET] ValueObservationScheduler requires Sendable closures
...
We should be able to use sending closures instead, but DispatchQueue.async does not accept sending closures yet.
2024-09-08 16:09:10 +02:00
Gwendal Roué
a7a9c75185
Place @escaping before @Sendable
2024-09-08 13:41:13 +02:00
Gwendal Roué
7084c95cbd
TODO
2024-09-08 13:39:38 +02:00
Gwendal Roué
ea4d208037
Rename ReadWriteBox to ReadWriteLock
2024-09-08 13:33:07 +02:00
Gwendal Roué
8409768676
TODO
2024-09-08 13:15:06 +02:00
Gwendal Roué
24576c944e
Merge pull request #1617 from groue/dev/GRDB7-collection-over-sequence
...
GRDB 7: Prefer Collection over Sequence for `filter(keys:)` and related APIs
2024-09-08 13:11:42 +02:00
Gwendal Roué
6a29d6c081
[BREAKING] Prefer Collection over Sequence for filter(keys:) and derived APIs
...
We were frequently turning those sequences into an Array in order to check their emptiness, and generally were not sure we'd iterate a sequence only once.
Also use `some Sequence` and `some Collection` whenever possible.
2024-09-08 12:52:27 +02:00
Gwendal Roué
110d9312db
Exclude products folder from GRDBTests target
...
Otherwise, we eventually have an error "multiple resources named 'PrivacyInfo.xcprivacy' in target 'GRDBTests'"
2024-09-08 11:41:05 +02:00
Gwendal Roué
0e6ffeb2d5
Merge branch 'master' into GRDB7
2024-09-08 11:37:48 +02:00
Gwendal Roué
2cf6c756e1
Merge branch 'development'
2024-09-07 14:20:48 +02:00
Gwendal Roué
d56223cba1
v6.29.3
2024-09-07 12:59:25 +02:00
Gwendal Roué
bc4fd8ff58
Merge pull request #1613 from groue/dev/fix-1612
...
Avoid SQLite misuse when releasing memory on a closed database connection
2024-09-07 12:56:16 +02:00
Gwendal Roué
9357198e1b
TODO
2024-09-05 18:42:11 +02:00
Gwendal Roué
cdb181d9ca
Don't invoke sqlite3_db_release_memory on closed database connections
2024-09-04 09:21:30 +02:00
Gwendal Roué
a02601ceae
Merge pull request #1610 from groue/dev/GRDB7-cancellable-database-access
...
GRDB 7: Async database accesses honor Task cancellation
2024-09-01 16:30:04 +02:00
Gwendal Roué
71f5554962
Test cancellation handling from AnyDatabaseReader and AnyDatabaseWriter
2024-09-01 15:35:37 +02:00
Gwendal Roué
5b4b8a9065
Async database accesses check for cancellation before returning
2024-09-01 15:35:37 +02:00
Gwendal Roué
cb1bd83777
Document that async methods can throw CancellationError
2024-09-01 15:35:37 +02:00
Gwendal Roué
d6b91eec85
[BREAKING] DatabaseReader async methods support Task cancellation
2024-09-01 15:35:37 +02:00
Gwendal Roué
fa54b74eba
[BREAKING] DatabaseWriter async methods support Task cancellation
2024-09-01 15:35:37 +02:00
Gwendal Roué
5ecf9f67fb
Vendor AsyncSemaphore
...
Semaphores allow tests to precisely schedule ordering of async jobs
2024-09-01 15:24:39 +02:00
Gwendal Roué
40140afb8c
SerializedDatabase support for async db access with support for Task cancellation
2024-09-01 15:24:39 +02:00
Gwendal Roué
b85121d456
Database support for cancellation
2024-08-31 12:24:19 +02:00
Gwendal Roué
e9d0d381f6
Fix concurrency warning with DispatchQueue.mainKey
2024-08-31 10:48:51 +02:00
Gwendal Roué
bdccd110a7
Merge pull request #1607 from groue/dev/GRDB7-Sendable
...
GRDB 7: Add missing Sendable conformances
2024-08-31 10:45:19 +02:00
Gwendal Roué
b1424d16d5
[BREAKING] PersistenceContainer is Sendable
2024-08-31 10:08:44 +02:00
Gwendal Roué
c08b1fa7d5
ValueObservationScheduler is Sendable
2024-08-31 09:58:15 +02:00
Gwendal Roué
849bba2820
Refactor ValueReducer for Swift concurrency
...
The fetching facet of a ValueReducer is Sendable.
2024-08-27 08:31:28 +02:00
Gwendal Roué
aac8720bc7
DatabaseRegionObservation is Sendable
2024-08-27 08:05:26 +02:00
Gwendal Roué
c56b52980a
DatabaseCancellable is Sendable
2024-08-27 08:05:26 +02:00
Gwendal Roué
4222854f8b
DatabaseRegionConvertible is Sendable
2024-08-27 08:05:26 +02:00
Gwendal Roué
47aa1f58a7
TODO
2024-08-26 08:36:46 +02:00
Gwendal Roué
cc5798cf1e
WALSnapshotTransaction is Sendable
2024-08-26 08:27:34 +02:00
Gwendal Roué
aff662c101
SQL is Sendable
2024-08-25 18:06:29 +02:00
Gwendal Roué
30569aba27
OrderedDictionary is conditionally Sendable
2024-08-25 18:06:29 +02:00
Gwendal Roué
56e2ab85b7
SQLAssociationCondition is Sendable
2024-08-25 18:06:29 +02:00
Gwendal Roué
0fdd910b08
⚠️ Make TableAlias Sendable even if it is not yet.
2024-08-25 18:06:29 +02:00
Gwendal Roué
1036371dff
DatabasePromise is Sendable
2024-08-25 18:06:29 +02:00
Gwendal Roué
b0c5725075
OnDemandFuture fulfill is Sendable
2024-08-25 17:34:54 +02:00
Gwendal Roué
b587afba0e
Pool is Sendable
2024-08-25 17:28:02 +02:00
Gwendal Roué
e93e4c5a31
ReadWriteBox is Sendable
2024-08-25 17:21:19 +02:00
Gwendal Roué
5333dbeff1
LogErrorFunction is Sendable
2024-08-25 16:26:38 +02:00
Gwendal Roué
7aff0b97c7
RowAdapter is Sendable
2024-08-25 16:26:38 +02:00
Gwendal Roué
961f6c4176
FilterCursor can't be made Sendable
2024-08-25 16:26:38 +02:00
Gwendal Roué
55cdb4e9a9
DatabaseMigrator is Sendable
2024-08-25 16:26:38 +02:00
Gwendal Roué
c1f59dfa2a
[BREAKING] DatabaseCollation is no longer Hashable
2024-08-25 15:42:06 +02:00
Gwendal Roué
eedd165e5b
DatabaseCollation is Identifiable
2024-08-25 15:42:06 +02:00
Gwendal Roué
405312f52e
DatabaseCollation is Sendable
2024-08-25 15:42:06 +02:00
Gwendal Roué
a5806a0020
[BREAKING] DatabaseFunction is no longer Hashable
2024-08-25 15:42:06 +02:00
Gwendal Roué
300e5fec6b
DatabaseFunction is Identifiable
2024-08-25 15:42:06 +02:00
Gwendal Roué
b752229c37
DatabaseFunction is Sendable
2024-08-25 15:42:06 +02:00
Gwendal Roué
876a0870ee
Coding strategies are Sendable
2024-08-25 15:14:43 +02:00
Gwendal Roué
8e860e671b
Configuration is Sendable
2024-08-25 15:07:53 +02:00
Gwendal Roué
0457a6262e
TransactionClock is Sendable
2024-08-25 14:56:40 +02:00
Gwendal Roué
ad74526f6a
BusyCallback and BusyMode are Sendable
2024-08-25 14:50:42 +02:00
Gwendal Roué
a7fe896272
Merge pull request #1606 from groue/dev/GRDB7-strategies
...
GRDB 7: coding strategies depend on the column
2024-08-25 14:47:05 +02:00
Gwendal Roué
7747211691
[BREAKING] databaseDateDecodingStrategy depends on the column
2024-08-25 14:06:57 +02:00
Gwendal Roué
95ca9f5bf3
[BREAKING] databaseDataDecodingStrategy depends on the column
2024-08-25 14:06:50 +02:00
Gwendal Roué
bcd6e03d7a
[BREAKING] databaseUUIDEncodingStrategy depends on the column
2024-08-25 14:06:44 +02:00
Gwendal Roué
7a8a9a9363
[BREAKING] databaseDateEncodingStrategy depends on the column
2024-08-25 14:06:35 +02:00
Gwendal Roué
1fe4df9438
[BREAKING] databaseDataEncodingStrategy depends on the column
2024-08-25 14:00:53 +02:00
Gwendal Roué
c4507c5a00
.editorconfig
2024-08-25 13:51:11 +02:00
Gwendal Roué
5025ecc314
Merge pull request #1605 from groue/dev/GRDB7-DatabaseCursor-primary-associated-type
...
GRDB 7: DatabaseCursor has a primary associated type
2024-08-25 13:40:41 +02:00
Gwendal Roué
b2286aaaab
DatabaseCursor has a primary associated type
2024-08-25 13:08:46 +02:00
Gwendal Roué
490b4e5bfe
Merge pull request #1604 from groue/dev/GRDB7-Mutex
...
GRDB 7: Move closer to SE-0433 Mutex
2024-08-25 12:59:08 +02:00
Gwendal Roué
e72a37d7d5
Rename LockedBox to Mutex
2024-08-25 12:40:28 +02:00
Gwendal Roué
5af0bc69e4
Merge pull request #1603 from groue/dev/GRDB7-remove-DatabaseFuture
...
GRDB 7: Remove DatabasePool.concurrentRead
2024-08-25 11:59:29 +02:00
Gwendal Roué
1de32c267b
[BREAKING] Remove DatabaseFuture and concurrentRead
...
That's one less DispatchSemaphore. We don't need this method anymore.
2024-08-25 11:07:05 +02:00
Gwendal Roué
1a0403af6d
Merge pull request #1602 from groue/dev/GRDB7-remove-default-transaction-kind
...
GRDB 7: Perform all writes with immediate transactions by default
2024-08-25 11:03:25 +02:00
Gwendal Roué
1c368ed18d
Skip flaky test with SQLCipher 3
2024-08-25 10:39:38 +02:00
Gwendal Roué
d96dc2d328
Aim at debugging failing CI test
2024-08-25 08:47:58 +02:00
Gwendal Roué
451a9eb493
[BREAKING] Remove Configuration.defaultTransactionKind
...
GRDB now defaults read-only transactions to DEFERRED, and write transactions to IMMEDIATE. See https://github.com/groue/GRDB.swift/issues/1483 for some context.
2024-08-25 08:22:07 +02:00
Gwendal Roué
ad10d881e8
Fix deprecation warning in Package.swift
2024-08-24 19:32:54 +02:00
Gwendal Roué
3245eb85b3
Merge pull request #1600 from groue/dev/GRDB7-stop-exporting-SQLite
...
GRDB 7: Rename the CSQLite module to GRDBSQLite, and stop exporting the C SQLite functions.
2024-08-24 19:31:41 +02:00
Gwendal Roué
9e1ff42249
[BREAKING] Rename CSQLite to GRDBSQLite
...
Fix #1528
2024-08-24 18:15:57 +02:00
Gwendal Roué
9cd1d849cc
[BREAKING] Stop exporting SQLite
2024-08-24 17:25:35 +02:00
Gwendal Roué
be708ee6f7
TODO
2024-08-24 17:21:20 +02:00
Gwendal Roué
867f824a69
Merge pull request #1599 from groue/dev/GRDB7-non-optional-fetch
...
GRDB 7: enhance ergonomics of record methods that insert/save/upsert and fetch
2024-08-24 17:20:48 +02:00
Gwendal Roué
cd4e853b74
[BREAKING] insertAndFetch, saveAndFetch, and updateAndFetch no longer return optionals.
...
Those optionals were just an annoyance. Now, nil results are replaced with `RecordError.recordNotFound`. Such an error is only expected with the IGNORE conflict policy.
2024-08-24 17:02:49 +02:00
Gwendal Roué
81cf93f02a
Bump iOS version on GitHub CI
2024-08-24 17:01:53 +02:00
Gwendal Roué
38e867c405
Bump minimum targets in Package.swift
2024-08-24 16:55:14 +02:00
Gwendal Roué
6157a40dad
Fix DocC warnings
2024-08-24 16:34:35 +02:00
Gwendal Roué
e2106167cc
GRDB7 TODO
2024-08-24 16:22:57 +02:00
Gwendal Roué
31be1782c5
Makefile: document TOOLCHAIN
2024-08-24 16:22:45 +02:00
Gwendal Roué
4ecc1ec80d
Merge pull request #1598 from groue/dev/GRDB7-requirements
...
GRDB 7: Bump requirements
2024-08-24 15:54:14 +02:00
Gwendal Roué
0240ab552c
Fix compiler warnings
2024-08-24 15:45:38 +02:00
Gwendal Roué
6895164a20
CI: use Xcode 16.1
2024-08-24 15:45:38 +02:00
Gwendal Roué
79cb862478
[BREAKING] watchOS 7+
...
Rationale: https://github.com/groue/GRDB.swift/issues/1472#issuecomment-1960696836
2024-08-24 15:45:38 +02:00
Gwendal Roué
509cbb9881
[BREAKING] tvOS 12+
2024-08-24 15:45:38 +02:00
Gwendal Roué
29eb04c39a
[BREAKING] iOS 12+
2024-08-24 15:45:38 +02:00
Gwendal Roué
8caf31296f
[BREAKING] Xcode 16+, Swift 6+
2024-08-24 15:43:09 +02:00
Gwendal Roué
f4b4035704
Fix Swiftlint warnings
2024-08-24 14:39:44 +02:00
Gwendal Roué
57a4587b5b
Merge branch 'development'
2024-08-24 14:30:20 +02:00
Gwendal Roué
ae837a3a44
v6.29.2
2024-08-24 11:46:45 +02:00
Gwendal Roué
c64bc11627
Remove ill-advised TODO
...
This would force users to force-unwrap their custom `ColumnType(rawValue: "WHATEVER")!`
2024-08-24 11:38:37 +02:00
Gwendal Roué
de96d5f6f0
Merge pull request #1595 from groue/dev/string_h
...
Enhance imports for strcmp
2024-08-24 11:33:39 +02:00
Gwendal Roué
d3d2a9c4f7
Stop testing error messages that depend on the SQLite version
2024-08-24 10:26:34 +02:00
Gwendal Roué
f10c74c374
Merge pull request #1593 from mingchen/development
...
README.md: Fix sample code
2024-08-22 09:13:28 +02:00
Gwendal Roué
fcfdab2f11
Import string_h for strcmp
...
Thanks to @karianneberg in https://github.com/groue/GRDB.swift/commit/344878cdb2e3af07f46954e3bc2b93541489bd82
2024-08-22 08:17:04 +02:00
Ming C.
f441341543
README.md: Fix sample code
2024-08-17 11:43:05 -07:00
Gwendal Roué
dd6b98ce04
Merge branch 'development'
2024-08-07 12:18:34 +02:00
Gwendal Roué
5b73581126
v6.29.1
2024-08-07 12:16:57 +02:00
Gwendal Roué
9a896650ff
Merge pull request #1589 from noremac/development
...
Fix compilation issue with Xcode 16 beta 5 due to a missing import.
2024-08-07 12:11:38 +02:00
Cameron Pulsford
344878cdb2
Fix compilation issue with Xcode 16 beta 5 due to a missing import.
2024-08-06 19:46:09 -04:00
Gwendal Roué
20ffddd572
Update TODO.md
2024-07-31 12:51:26 +02:00
Gwendal Roué
4ddb6b89ce
Merge pull request #1584 from SagarSDagdu/update-cocoapods-instructions
...
Update README to highlight deployment issue with CocoaPods
2024-07-30 17:34:26 +02:00
Sagar Dagdu and Gwendal Roué
9da1a83cca
Fix indentation for code blocks
...
Co-authored-by: Gwendal Roué <gr@pierlis.com >
2024-07-30 21:00:14 +05:30
Sagar Dagdu
8205f02672
Address code review comments
2024-07-30 20:54:24 +05:30
Sagar Dagdu
78377d5cc0
Update README to highlight deployment issue with CocoaPods
2024-07-30 20:21:26 +05:30
Gwendal Roué
04543755d8
Merge pull request #1579 from groue/dev/modernize-demo-apps
...
Modernise the demo apps
2024-07-21 11:25:36 +02:00
Gwendal Roué
cdc0131369
Modernize demo apps:
...
iOS 17+
GRDBQuery 0.9.0
#Preview macro
2024-07-20 14:38:14 +02:00
Gwendal Roué
1cd6c7cbff
Merge branch 'development'
2024-07-20 11:22:16 +02:00
Gwendal Roué
bbbe0d899d
v6.29.0
2024-07-20 11:17:13 +02:00
Gwendal Roué
9f16865ff1
Merge pull request #1575 from Jason-Abbott/development
...
Show trigger comments for expanded statement tracing
2024-07-17 18:21:56 +02:00
Jason Abbott
14d2b931a4
Also return untrimmed comments when tracing without visible values
2024-07-17 09:17:03 -06:00
Jason Abbott
802b4ca78a
Correct suffix/prefix test
2024-07-16 16:57:57 -06:00
Jason Abbott
1c60e5ef42
Show trigger comments for expanded statement tracing
2024-07-16 16:51:50 -06:00
Gwendal Roué
9f41e56c32
Merge pull request #1574 from sroebert/feature/single-value-container-decoding
...
Support for single value decoding
2024-07-13 17:07:15 +02:00
Steven Roebert and Gwendal Roué
0ae3f32f7f
Added compiler checks for Swift 6 specific code
...
Co-authored-by: Gwendal Roué <gr@pierlis.com >
2024-07-13 12:53:00 +02:00
Steven Roebert
c977cb8226
Implemented support for single value decoding in _RowDecoder
2024-07-13 11:48:02 +02:00
Gwendal Roué
78448cf8f4
Merge branch 'development'
2024-07-11 07:49:09 +02:00
Gwendal Roué
30de9853d6
v6.28.0
2024-07-11 07:48:54 +02:00
Gwendal Roué
7a1196263d
CHANGELOG
2024-07-11 07:46:32 +02:00
Gwendal Roué
3043d7dca5
DatabaseUUIDEncodingStrategy is Sendable
...
Fix #1567
2024-07-11 07:46:23 +02:00
Gwendal Roué
d2dd757d0c
CHANGELOG
2024-07-11 07:44:30 +02:00
Gwendal Roué
764ad4bf72
Merge pull request #1570 from groue/dev/single-value-encoding
...
Support single-value encoding
2024-07-11 07:42:41 +02:00
Gwendal Roué
e6d4223b14
EncodableRecord takes precedence over Encodable when a record is encoded with a SingleValueEncodingContainer.
2024-07-10 08:47:49 +02:00
Gwendal Roué
ba3c938eb9
Fix failing test for #1565
2024-07-09 13:42:52 +02:00
Gwendal Roué
5999227c01
Failing test for #1565
2024-07-09 13:31:54 +02:00
Gwendal Roué
78545f2c8c
Tests for #1541
2024-06-09 13:02:27 +02:00
Gwendal Roué
263a549c21
Test that a cancelled ValueObservation does not notify of changes that were enqueued before cancellation.
...
This is a test for #1550
2024-06-08 13:47:21 +02:00
Gwendal Roué
6689470457
Remove Double infinities from database dump tests
...
Some SQLite versions store or read +inf and -inf as 9.0e+999 and -9.0e+999, and this makes some tests fail.
Known failure: SQLCipher4, test_quote_value_formatting(), https://github.com/groue/GRDB.swift/actions/runs/9388768610/job/25854709627
I could not reproduce.
2024-06-06 07:50:02 +02:00
Gwendal Roué
bbbd6bba90
Add Set methods union, formUnion, intersection and formIntersection that accept a cursor.
2024-06-05 19:38:16 +02:00
Gwendal Roué
bb789e3dee
QueryInterfaceRequest.deleteAndFetchIds
2024-06-05 18:42:36 +02:00
Gwendal Roué
b312d4cf5a
Add missing DocC links to cast(_:as:)
2024-06-05 18:36:24 +02:00
Gwendal Roué
f335123c2b
Update link to SQLite RETURNING caveats
2024-06-05 18:23:56 +02:00
Gwendal Roué
34d87c0e85
Merge pull request #1544 from JoeParker/fix-cte-doc-example
...
Fix error in CTE association documentation
2024-06-02 12:09:59 +02:00
Joe Parker
0f2e993790
Update example snippet in CommonTableExpressions.md
2024-05-10 17:19:01 +01:00
Gwendal Roué
1831017d64
TODO
...
Related issue: https://github.com/groue/GRDB.swift/issues/1539
2024-05-01 13:38:14 +02:00
Gwendal Roué
4b934fda75
Fix link
2024-04-21 17:47:03 +02:00
Gwendal Roué
53c40fd80f
Fix Swiftlint warning
2024-04-21 17:45:58 +02:00
Gwendal Roué
639fa9168d
Merge branch 'development'
2024-04-21 16:00:34 +02:00
Gwendal Roué
1c5017a108
v6.27.0
2024-04-21 15:18:13 +02:00
Gwendal Roué
9ca1f6644c
CHANGELOG
2024-04-21 15:15:54 +02:00
Gwendal Roué
3f3cfa5381
Merge pull request #1534 from groue/dev/singleton-rewrite
...
Update the "Single-Row Tables" guide, with support for default values
2024-04-21 15:10:46 +02:00
Gwendal Roué
bde61b26ab
Rewrite SingleRowTables, accounting for nullable columns
...
This addresses https://github.com/groue/GRDB.swift/discussions/1526
2024-04-21 15:02:52 +02:00
Gwendal Roué
0a5bef4c0e
SingletonUserDefaultsTest
2024-04-21 14:56:47 +02:00
Gwendal Roué
218774d39a
CHANGELOG
2024-04-21 14:56:09 +02:00
Gwendal Roué
a0a9cfca65
Merge pull request #1535 from groue/dev/doc-ValueObservation-scheduling
...
Improve the documentation about the scheduling of ValueObservation fetches
2024-04-21 14:53:09 +02:00
Gwendal Roué
c8bb0a4799
Improve the documentation about the scheduling of ValueObservation fetches
2024-04-21 14:42:47 +02:00
Gwendal Roué
f1ff7f2a2a
Fix compiler warnings
2024-04-21 12:20:37 +02:00
Gwendal Roué
725cccccab
CHANGELOG
2024-04-21 12:16:41 +02:00
Gwendal Roué
1525075cce
Merge pull request #1533 from groue/dev/fix-1531
...
Fix a bug in Decodable support
2024-04-21 12:14:35 +02:00
Gwendal Roué
7110a1fab3
Fix failing tests for decodeNil()
...
Fix https://github.com/groue/GRDB.swift/issues/1531
2024-04-21 12:13:24 +02:00
Gwendal Roué
de382d30b8
Test decodeNil
...
Two failing tests related to https://github.com/groue/GRDB.swift/issues/1531
2024-04-21 12:13:24 +02:00
Gwendal Roué
3521030e13
Test _RowDecoder.KeyedContainer.allKeys, contains(_:), and support some nested keyed containers
2024-04-21 12:13:24 +02:00
Gwendal Roué
eeacf93772
Don't mention async sequences in the GRDBAsyncDemo introduction
...
Been there, done that: when one feeds a SwiftUI view from an async sequence, the view MUST display an initial empty state, until the Swift Concurrency runtime provides the initial value of the sequence. That's why the demo app uses a Combine publisher for feeding views with database value. This commit removes a misleading reference to async sequences.
Fix #1532
2024-04-20 12:40:38 +02:00
Gwendal Roué
000aaa8698
Add test that specifically addresses #1517
2024-03-29 13:21:12 +01:00
Gwendal Roué
77b85bed25
Merge branch 'development'
2024-03-23 14:06:22 +01:00
Gwendal Roué
bb8323b91d
v6.26.0
2024-03-23 14:06:05 +01:00
Gwendal Roué
d804b5ed9c
Bump performance dependencies
2024-03-23 14:06:05 +01:00
Gwendal Roué
2af60cb324
CHANGELOG
2024-03-23 11:46:44 +01:00
Gwendal Roué
0434567f30
Merge pull request #1515 from groue/dev/cast
...
Support for the CAST SQLite function
2024-03-23 11:42:56 +01:00
Gwendal Roué
155a16bef8
CHANGELOG
2024-03-23 10:52:28 +01:00
Gwendal Roué
2ad1f37d2b
Documentation for cast function
2024-03-23 10:48:20 +01:00
Gwendal Roué
32642d566b
Test cast function
2024-03-23 10:47:57 +01:00
Gwendal Roué
1f4d5ac61a
Fix test ambiguity
2024-03-23 10:47:49 +01:00
Gwendal Roué
87fdd9a66f
cast function
2024-03-23 10:47:19 +01:00
Gwendal Roué
79d82337b2
CAST expression
2024-03-23 10:47:13 +01:00
Gwendal Roué
fab4638fc9
Database.StorageClass
2024-03-23 10:46:52 +01:00
Gwendal Roué
a49fd85627
Regression tests for #1512
2024-03-21 14:25:12 +01:00
Gwendal Roué
ac8c4aea63
Report correct error when decoding NULL into Date or Data
...
Fixes #1512
2024-03-21 14:25:12 +01:00
Gwendal Roué
5413dcfeeb
Remove jsonErrorPosition unless GRDBCUSTOMSQLITE || GRDBCIPHER
...
For some reason, if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) has stopped being able to skip the test (WTF?)
2024-03-19 12:15:47 +01:00
Gwendal Roué
4e0ab25106
Fix flaky tests due to Recorder incorrect critical section
2024-03-17 22:40:38 +01:00
Gwendal Roué
c52db6095a
Stop testing test_CocoaPodsLint
...
Because it does no longer work due to https://github.com/CocoaPods/CocoaPods/issues/11839
2024-03-17 22:15:08 +01:00
Gwendal Roué
1464940eeb
Merge pull request #1511 from groue/dev/schema-dump
...
Database schema dump
2024-03-17 22:11:55 +01:00
Gwendal Roué
f274e464cd
CHANGELOG
2024-03-17 20:45:48 +01:00
Gwendal Roué
c3e7736534
Dump schema
2024-03-17 20:45:31 +01:00
Gwendal Roué
9b95dd5be1
Merge pull request #1510 from groue/dev/trivial-sendable-conformances
...
Add Sendable conformances and unavailabilities
2024-03-17 20:45:01 +01:00
Gwendal Roué
77da5f4a30
CHANGELOG
2024-03-17 19:18:30 +01:00
Gwendal Roué
43ced9b2f0
Trivial Sendable conformances
...
Either added, either made explicitly unavailable.
2024-03-17 18:25:04 +01:00
Gwendal Roué
4ffad63f1b
Fix Swift 5.10 warning on WALSnapshot
2024-03-17 17:55:25 +01:00
Gwendal Roué
62e7ea1ef2
CHANGELOG
2024-03-17 17:55:15 +01:00
Gwendal Roué
91492b849d
Merge pull request #1508 from groue/dev/issue-1500
...
Fix ValueObservation mishandling of database schema modification
2024-03-17 17:53:28 +01:00
Gwendal Roué
d54d0abc07
Fix WALSnapshotTransaction so that it clears its schema cache if needed
2024-03-17 16:13:35 +01:00
Gwendal Roué
3b096b38e7
Failing test for #1500
2024-03-17 16:13:35 +01:00
Gwendal Roué
9593297cf0
CHANGELOG
2024-03-17 14:54:07 +01:00
Gwendal Roué
8ac5591189
Merge pull request #1503 from simba909/master
...
Conform Database.ColumnType to Sendable
2024-03-17 14:51:44 +01:00
Simon Jarbrant
4232fa687d
Conform Database.ColumnType to Sendable
2024-03-08 14:28:36 +01:00
Gwendal Roué
bd9aea303d
Merge branch 'development'
2024-02-25 16:32:30 +01:00
Gwendal Roué
5abc737bf0
v6.25.0
2024-02-25 16:31:11 +01:00
Gwendal Roué
d4d14e3dd7
CHANGELOG
2024-02-25 16:28:06 +01:00
Gwendal Roué
660d2b1fe7
Merge pull request #1496 from danielepantaleone/development
...
Added privacy manifest file
2024-02-25 16:23:15 +01:00
Gwendal Roué
bb44f48414
Add the PrivacyInfo.xcprivacy file to the GRDB target
2024-02-25 15:08:53 +01:00
Gwendal Roué
bbe7d2f1ca
Remove PrivacyInfo.xcprivacy from podspec
...
This technique has CocoaPods overwrite the app and other pods's manifest file and is not correct.
Currently, there's no CocoaPods support for privacy manifest unless I'm mistaken: https://github.com/CocoaPods/CocoaPods/issues/11990
And we can't publish new GRDB version on CocoaPods anyway: https://github.com/CocoaPods/CocoaPods/issues/11839
2024-02-25 15:07:35 +01:00
Daniele Pantaleone
45e0de9960
Added privacy manifest to GRDBCustom project
2024-02-18 17:03:43 +01:00
Daniele Pantaleone
1920482158
Added privacy manifest file
2024-02-15 16:57:46 +01:00
Gwendal Roué
0437c0fed6
Merge pull request #1490 from danielinoa/patch-2
...
Update LICENSE to 2024
2024-02-07 08:53:45 +01:00
Daniel Inoa
d08d2f52fb
Update LICENSE
2024-02-06 18:30:52 -08:00
Gwendal Roué
d1ff0912f1
Fix release date
2024-01-21 12:27:30 +01:00
Gwendal Roué
e069e2732e
Merge branch 'development'
2024-01-21 11:14:33 +01:00
Gwendal Roué
c791e376e8
v6.24.2
2024-01-21 11:14:20 +01:00
Gwendal Roué
acf1eb935b
Merge pull request #1485 from groue/dev/immediate_transactions
...
Recommend IMMEDIATE transactions when a database is shared between multiple processes
2024-01-17 21:10:45 +01:00
Gwendal Roué
87c4b1cfa8
CHANGELOG
2024-01-17 20:06:38 +01:00
Gwendal Roué
d0fc34b199
Recommend IMMEDIATE transactions in the Sharing a Database guide
...
Fix #1483
2024-01-17 20:04:39 +01:00
Gwendal Roué
9cee1e218d
Tests for SQLITE_BUSY prevention with IMMEDIATE transactions
...
Those tests support the recommendation of IMMEDIATE transactions for shared databasesS.
See #1483
2024-01-17 19:39:40 +01:00
Gwendal Roué
f5d55cb1a1
TODO
2024-01-17 10:51:42 +01:00
Gwendal Roué
345a3dae28
CHANGELOG
2024-01-14 17:31:17 +01:00
Gwendal Roué
1239178bee
Improve diagnostic when an association to/from view are lacking an explicit ForeignKey
...
Related discussion: https://github.com/groue/GRDB.swift/discussions/1481
2024-01-14 17:31:17 +01:00
Gwendal Roué
e5a7c73dc9
Tests for associations to or from views
2024-01-14 14:33:17 +01:00
Gwendal Roué
11e914db12
Fix code signing issues with GRDBDemoiOS
2024-01-13 13:09:53 +01:00
Gwendal Roué
181ccd8d7d
Merge branch 'development'
2024-01-06 19:56:07 +01:00
Gwendal Roué
2800e9a81e
v6.24.1
2024-01-06 19:55:52 +01:00
Gwendal Roué
18d2d512f0
Merge pull request #1477 from groue/dev/dump-virtual-tables
...
Remove shadow tables from database dump
2024-01-06 19:52:33 +01:00
Gwendal Roué
c06552fbd4
Document that shadow tables are not recorded by dumpContent()
2024-01-06 18:36:58 +01:00
Gwendal Roué
a00a3f7c80
Fix failing test that dumpContent ignores shadow tables
2024-01-06 18:14:37 +01:00
Gwendal Roué
b9ac9b1ca8
Failing test that dumpContent ignores shadow tables
2024-01-06 18:12:45 +01:00
Gwendal Roué
07f1ddac04
Test that dumpContent ignores GRDB internal tables
2024-01-06 18:12:21 +01:00
Gwendal Roué
12829e5bfb
Merge branch 'development'
2024-01-06 14:53:16 +01:00
Gwendal Roué
09fa46a0d9
v6.24.0
2024-01-06 13:27:00 +01:00
Gwendal Roué
e359529503
When releasing, run the full test suite from a pristine repository
2024-01-06 13:27:00 +01:00
Gwendal Roué
ac8d1b77b9
Merge pull request #1466 from barnettben/1463-schema-names
...
Add schema name option to table introspection methods
2024-01-06 13:18:50 +01:00
Gwendal Roué
002c5ec2f1
Revert "Report test results from Github actions"
...
This reverts commit aadb887b34 .
2024-01-06 12:27:26 +01:00
Gwendal Roué
b42f618a01
Disable tests for attached schemas when databases are encrypted
2024-01-06 12:08:54 +01:00
Ben Barnett
27a4215424
Add schemaName parameter to foreign key checking functions
2023-12-08 18:22:49 +00:00
Ben Barnett
65167ec7da
Add schemaName parameter to table/view/triggerExists()
2023-12-08 18:22:49 +00:00
Ben Barnett
73489fc0e7
Add schemaName parameter to indexes(on:)
2023-12-08 18:22:49 +00:00
Ben Barnett
1aca8efa65
Add schemaName parameter to foreignKeys(on:)
2023-12-08 18:22:49 +00:00
Ben Barnett
a22bf83ae8
Split duplicate nested conditions into separate function
2023-12-07 18:32:34 +00:00
Ben Barnett
f00a974211
Add schemaName parameter to columns(in:)
2023-12-06 20:49:48 +00:00
Ben Barnett
ac475cc158
Add schemaName parameter to primaryKey(_:)
2023-12-06 20:32:17 +00:00
Gwendal Roué
eacbdf23af
Merge branch 'development'
2023-12-01 08:21:27 +01:00
Gwendal Roué
e31a80e3c4
v6.23.0
2023-12-01 08:06:55 +01:00
Gwendal Roué
e3cf966c81
Documentation organization
2023-12-01 08:02:32 +01:00
Gwendal Roué
eeb71039d4
Merge pull request #1462 from groue/dev/read-only
...
Temporary read-only access
2023-11-30 13:48:52 +01:00
Gwendal Roué
c5203f078d
Make Database.readOnly public
2023-11-30 07:56:21 +01:00
Gwendal Roué
e29c52d7e5
Update obsolete documentation of stopObservingDatabaseChangesUntilNextTransaction
2023-11-27 10:00:41 +01:00
Gwendal Roué
06ac26a213
Merge branch 'development'
2023-11-26 12:02:16 +01:00
Gwendal Roué
fae845a986
v6.22.0
2023-11-26 10:48:42 +01:00
Gwendal Roué
b671bb0faa
CHANGELOG
2023-11-26 10:37:27 +01:00
Gwendal Roué
93462cfd2c
Documentation
2023-11-26 10:33:00 +01:00
Gwendal Roué
54357e4fec
Merge pull request #1460 from groue/dev/notify-changes
...
Explicit change notifications
2023-11-26 08:34:23 +01:00
Gwendal Roué
d8760253ff
Add missing DocC reference
2023-11-25 17:10:40 +01:00
Gwendal Roué
dc281cee25
Cleanup tests for unspecified changes to a column
2023-11-25 17:01:11 +01:00
Gwendal Roué
a8ed98e414
Mention undetected changes in the Database Sharing Guide
2023-11-25 16:50:01 +01:00
Gwendal Roué
f1a8c5ac92
Wording
2023-11-25 16:49:37 +01:00
Gwendal Roué
079c0c7f26
The unit of change notification is the event kind, not the region
2023-11-25 16:44:18 +01:00
Gwendal Roué
bced461c4f
Fix failing test for DatabaseRegionObservation and Database.notifyChanges(in:)
2023-11-25 15:32:35 +01:00
Gwendal Roué
9d6e127822
Failing test for DatabaseRegionObservation and Database.notifyChanges(in:)
2023-11-25 15:32:35 +01:00
Gwendal Roué
dff7971cd7
Fix failing test for ValueObservation and Database.notifyChanges(in:)
2023-11-25 15:32:35 +01:00
Gwendal Roué
3df718c1a6
Failing test for ValueObservation and Database.notifyChanges(in:)
2023-11-25 15:32:35 +01:00
Gwendal Roué
3e52e265ce
Fix failing test for stopObservingDatabaseChangesUntilNextTransaction() from databaseDidChange()
2023-11-25 15:32:35 +01:00
Gwendal Roué
abf48eb86f
Failing test for stopObservingDatabaseChangesUntilNextTransaction() from databaseDidChange()
2023-11-25 15:32:35 +01:00
Gwendal Roué
56ad833ab7
New Dealing with Undetected Changes documentation chapter
2023-11-25 15:32:35 +01:00
Gwendal Roué
8afd986790
Fix failing tests for Database.notifyChanges(in:) and master tables
2023-11-25 15:32:35 +01:00
Gwendal Roué
918afbd33e
Fix failing tests for Database.notifyChanges(in:) and regular tables
2023-11-25 14:39:13 +01:00
Gwendal Roué
b5cb8fadf0
Failing tests for Database.notifyChanges(in:)
2023-11-25 14:39:13 +01:00
Gwendal Roué
1a16bdeac8
TransactionObserver.databaseDidChange()
2023-11-25 13:30:23 +01:00
Gwendal Roué
5e749eb50b
Document that changes performed by SQLite statements that are not compiled and executed by GRDB are not detected.
2023-11-24 14:10:57 +01:00
Gwendal Roué
836e7733da
Prepare TransactionObserverTests for unspecified change notifications
2023-11-24 13:40:02 +01:00
Gwendal Roué
8b19c3424c
Test async read after async write
2023-11-11 13:38:03 +01:00
Gwendal Roué
7eaf67fb6a
CHANGELOG
2023-11-02 15:04:45 +01:00
Gwendal Roué
753d7db65f
Merge pull request #1452 from groue/dev/SQLite-3.44.0
...
SQLite 3.44.0, FILTER and ORDER BY clauses in aggregate functions
2023-11-02 15:03:30 +01:00
Gwendal Roué
f0fe5ff017
TODO GRDB7
2023-11-02 14:08:15 +01:00
Gwendal Roué
225d7a8c2d
Fix test for SQLCipher
2023-11-02 14:03:52 +01:00
Gwendal Roué
46ad19d2e3
Documentation
2023-11-02 14:03:52 +01:00
Gwendal Roué
2603b6ea03
Support for ORDER BY and FILTER in aggregate functions
2023-11-02 14:03:52 +01:00
Gwendal Roué
f7156b9490
Custom SQLite 3.44.0
2023-11-02 14:03:52 +01:00
Gwendal Roué
f1f8e8438a
Merge branch 'development'
2023-10-29 10:00:25 +01:00
Gwendal Roué
6bd1e6b8fb
v6.21.0
2023-10-29 08:46:10 +01:00
Gwendal Roué
ae21996947
CHANGELOG
2023-10-29 08:43:30 +01:00
Gwendal Roué
8479c4c874
Merge pull request #1449 from groue/dev/temp-copies
...
Backport temporary copies from GRDBSnapshotTesting
2023-10-29 08:42:20 +01:00
Gwendal Roué
4c8fc93fec
Fix tests for encrypted databases
2023-10-29 07:34:23 +01:00
Gwendal Roué
38bb8d3505
Backport temporary copies from GRDBSnapshotTesting
2023-10-28 18:38:15 +02:00
Gwendal Roué
850542dd25
CHANGELOG
2023-10-28 18:37:38 +02:00
Gwendal Roué
aaad020b0b
Merge pull request #1448 from groue/dev/dump-views
...
Add support for stable ordering and dump of views.
2023-10-28 18:36:15 +02:00
Gwendal Roué
ba320a08e3
Make dumpTables able to print views
2023-10-28 15:46:31 +02:00
Gwendal Roué
42fd32731a
Make withStableOrder able to deal with views
2023-10-28 15:46:10 +02:00
Gwendal Roué
8fa434272e
Make all read closures explicit in the documentation
...
The short form dbQueue.read(fetch) can confuse the reader.
2023-10-22 07:59:08 +02:00
Gwendal Roué
fd2e552cfb
Merge branch 'development'
2023-10-15 11:20:12 +02:00
Gwendal Roué
13bf0686ef
v6.20.2
2023-10-15 11:10:02 +02:00
Gwendal Roué
1a9e306c78
Merge pull request #1442 from groue/dev/fix-macos-json-availability
...
Extend the macOS availability of JSON functions
2023-10-15 11:02:49 +02:00
Gwendal Roué
565335ea0d
Update documentation
2023-10-15 09:06:28 +02:00
Gwendal Roué
aabdffabc2
All JSON functions are available on macOS 10.15, but -> and ->>
...
Thank you @martindufort for the detailed report: https://gist.github.com/groue/046ebddb4a410304094c022d756081c8
2023-10-15 09:06:28 +02:00
Gwendal Roué
85792b8293
One availability per JSON function
2023-10-15 08:18:36 +02:00
Gwendal Roué
c4c13b6f53
Doc updates for GRDBSnapshotTesting
2023-10-14 11:22:48 +02:00
Gwendal Roué
d597fd56e9
v6.20.1
2023-10-13 07:42:44 +02:00
Gwendal Roué
94a7a59cc9
Remove debug print
2023-10-13 07:40:02 +02:00
Gwendal Roué
f6f93469fb
Merge branch 'development'
2023-10-13 07:18:32 +02:00
Gwendal Roué
120241b069
v6.20.0
2023-10-12 22:37:01 +02:00
Gwendal Roué
856d9cbe53
Merge pull request #1439 from groue/dev/dump
...
Dump requests
2023-10-12 22:34:20 +02:00
Gwendal Roué
a8331d7335
CHANGELOG
2023-10-12 09:17:50 +02:00
Gwendal Roué
dc1f9450c0
Expose DatabaseValue.init(sqliteStatement:index:)
...
This helps users implement custom dump formats
2023-10-12 09:17:50 +02:00
Gwendal Roué
7a7ee554c7
OrderedRequest.withStableOrder()
2023-10-12 09:17:50 +02:00
Gwendal Roué
aadb887b34
Report test results from Github actions
...
https://github.com/kishikawakatsumi/xcresulttool/discussions/630
2023-10-12 09:17:50 +02:00
Gwendal Roué
69ae4c4e96
Dump
2023-10-12 09:17:50 +02:00
Gwendal Roué
f4ac0ab119
Make it possible to observe the supplementary fetches
2023-10-08 20:41:05 +02:00
Gwendal Roué
8d4cc05021
Add missing tests for GRDB+SQLCipher
2023-10-08 20:20:07 +02:00
Gwendal Roué
16d6c92722
Add missing test file to GRDBCustom
2023-10-08 20:14:21 +02:00
Gwendal Roué
c7047c4b33
Trim SQL in DatabaseError descriptoin
2023-10-08 20:07:59 +02:00
Gwendal Roué
e22bf8fe0a
DocC organization
2023-10-08 20:05:22 +02:00
Gwendal Roué
e994fca2b5
Fix documentation typo
2023-10-07 11:36:31 +02:00
Gwendal Roué
c599f6423e
Fix link
2023-10-04 23:00:02 +02:00
Gwendal Roué
458b7211df
Merge branch 'development'
2023-10-04 22:06:37 +02:00
Gwendal Roué
703e3c2b68
v6.19.0
2023-10-04 22:06:27 +02:00
Gwendal Roué
0eb973b6db
Record types with an auto-incremented id should avoid the Identifiable protocol.
2023-10-04 22:02:18 +02:00
Gwendal Roué
cbcc057222
Merge pull request #1436 from groue/experimental/JSONColumn
...
JSON functions
2023-10-04 21:22:43 +02:00
Gwendal Roué
d64de2bbdb
CHANGELOG
2023-10-04 19:57:45 +02:00
Gwendal Roué
1f0b52a012
JSON documentation
2023-10-04 19:57:45 +02:00
Gwendal Roué
908f8b242a
Prepare documentation for JSON
2023-10-04 19:55:12 +02:00
Gwendal Roué
9faea276d8
JSON tests
2023-10-04 19:55:12 +02:00
Gwendal Roué
5a42d78e06
Data decoding and encoding strategies
...
Users must be able to store JSON data as text in the database.
2023-10-04 19:55:12 +02:00
Gwendal Roué
546e8aa77c
JSONColumn and SQLJSONExpressible
2023-10-04 19:55:12 +02:00
Gwendal Roué
ed01d40ba9
JSON functions
2023-10-04 19:55:12 +02:00
Gwendal Roué
97e6f88b31
Add new .jsonText column type
2023-10-04 19:55:12 +02:00
Gwendal Roué
718102f743
Create indexes on expressions
2023-10-02 07:49:59 +02:00
Gwendal Roué
8cc52983b7
Introduce SQLFunctionFlags
2023-10-01 15:39:47 +02:00
Gwendal Roué
b896923fd4
TODO GRDB7: remove painful optionals due to IGNORE
2023-10-01 15:37:27 +02:00
Gwendal Roué
4abcbdf452
CHANGELOG
2023-09-16 17:53:50 +02:00
Gwendal Roué
6706de0103
Workaround for https://github.com/CocoaPods/CocoaPods/issues/12012
2023-09-16 17:52:40 +02:00
Gwendal Roué
cc534fd19c
Merge pull request #1429 from JhonnyBillM/dev/1428-EXTEND-VALUE-CONVERTIBLE-JSON-FORMAT-CUSTOMIZATION
...
Extend `DatabaseValueConvertible` JSON parsing format customization
2023-09-16 17:51:12 +02:00
Gwendal Roué
65dd5f1da8
Merge pull request #1430 from groue/dependabot/github_actions/actions/checkout-4
...
Bump actions/checkout from 3 to 4
2023-09-16 15:25:52 +02:00
Gwendal Roué
76dbcfe700
Fix documentation wording
2023-09-16 14:14:30 +02:00
Gwendal Roué
7944979d56
Add new methods to DocC
2023-09-16 14:14:20 +02:00
Gwendal Roué
7f6ab59250
Markdown files are soft-wrapped
2023-09-16 14:10:17 +02:00
Gwendal Roué
746f65a979
JSON encoder is always user-provided
...
Now all created JSONEncoder or JSONDecoder are user-controlled.
2023-09-16 14:07:37 +02:00
Gwendal Roué
9188251780
Add missing import required by SPM
2023-09-16 14:03:38 +02:00
Gwendal Roué
1e995b659d
Hard-wrap documentation comments
2023-09-16 14:03:26 +02:00
dependabot[bot]
e560993b44
Bump actions/checkout from 3 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-11 06:25:17 +00:00
Jhonny Bill Mena
eec476b9ba
ADD - unit tests for custom JSON Encoder and Decoder in DatabaseValueConvertible
2023-09-10 23:54:50 -04:00
Jhonny Bill Mena
3f96a965b9
ADD - databaseJSONDecoder and databaseJSONEncoder methods
...
ADD - optional jsonEncoder parameter to DatabaseValueEncoder
ADD - docs around new JSON customization methods
2023-09-10 23:54:50 -04:00
Gwendal Roué
ce63f697ed
Merge branch 'development'
2023-09-01 12:36:14 +02:00
Gwendal Roué
92f5b2a9dd
v6.18.0
2023-09-01 11:39:48 +02:00
Gwendal Roué
5f103df04d
Update CONTRIBUTING.md for DocC
2023-08-31 09:45:37 +02:00
Gwendal Roué
7cbcbe12f0
Expose path on DatabaseReader
2023-08-31 09:42:13 +02:00
Gwendal Roué
c12fff16d3
CHANGELOG
2023-08-28 15:06:23 +01:00
Gwendal Roué
e40569844f
Merge branch 'development'
2023-08-26 10:41:10 +01:00
Gwendal Roué
3ac7598e9b
v6.17.0
2023-08-26 09:47:38 +01:00
Gwendal Roué
fd847d5a25
CHANGELOG
2023-08-26 09:41:39 +01:00
Gwendal Roué
6fec245d2f
Merge pull request #1421 from groue/dev/journalModeSetup
...
Make it possible to open a DatabaseQueue in the WAL mode
2023-08-26 09:40:18 +01:00
Gwendal Roué
9e5cb95e1f
Documentation for Configuration.journalMode
2023-08-25 10:11:41 +01:00
Gwendal Roué
13bc9ae56c
Tests for Configuration.journalMode
2023-08-25 09:10:43 +01:00
Gwendal Roué
e79b4e25db
Apply Configuration.journalMode
2023-08-25 09:10:33 +01:00
Gwendal Roué
f76093a0c7
Database.setUpWALMode()
2023-08-25 09:10:26 +01:00
Gwendal Roué
45b248b4ed
Configuration.journalMode
2023-08-25 09:10:26 +01:00
Gwendal Roué
97c04a7f26
Shorten line length
2023-07-29 11:42:02 +02:00
Gwendal Roué
9ff58c32e7
Use CChar instead of Int8 when we deal with C strings
2023-07-29 11:13:41 +02:00
Gwendal Roué
0b2b26fd11
A statement can delete even if it's not a DELETE statement (through triggers)
2023-07-29 11:08:55 +02:00
Gwendal Roué
6f18de6a94
Fix typo
2023-07-29 11:08:02 +02:00
Gwendal Roué
28c6ea96b4
Fix redundant_self_in_closure Swiftlint warning
2023-07-29 10:06:33 +02:00
Gwendal Roué
206bf209af
Fix unneeded_synthesized_initializer Swiftlint warning
2023-07-29 10:00:42 +02:00
Gwendal Roué
e83f3eb25e
Merge branch 'development'
2023-07-09 18:32:52 +02:00
Gwendal Roué
e16d4accb3
v6.16.0
2023-07-09 18:08:27 +02:00
Gwendal Roué
9ff4060b10
Merge pull request #1405 from groue/dev/belongsToColumn
...
Simplify the declaration of BelongsTo associations in the database schema
2023-07-09 17:30:57 +02:00
Gwendal Roué
4ac434c83c
CHANGELOG
2023-07-09 17:22:41 +02:00
Gwendal Roué
913168df2d
Upgrade tests with belongsTo
2023-07-09 17:22:38 +02:00
Gwendal Roué
f8c99f96bc
Upgrade playgrounds with belongsTo
2023-07-09 17:22:38 +02:00
Gwendal Roué
466ecd5ba5
Documentation
2023-07-09 17:22:38 +02:00
Gwendal Roué
7a0a354d22
Implement ForeignKeyDefinition
2023-07-09 17:22:38 +02:00
Gwendal Roué
349253e196
Failing tests for ForeignKeyDefinition
2023-07-09 17:16:08 +02:00
Gwendal Roué
dd85e699e2
Help handling of columns with no declared type
2023-07-09 17:16:08 +02:00
Gwendal Roué
c647840485
PrimaryKeyInfo exposes column types
2023-07-09 17:16:08 +02:00
Gwendal Roué
3375282252
Update outdated documentation about views
2023-07-09 17:13:22 +02:00
Gwendal Roué
82d3af48c3
CHANGELOG
2023-07-09 17:13:22 +02:00
Gwendal Roué
bebb751b3c
Create and drop view
2023-07-09 17:13:22 +02:00
Gwendal Roué
08fbd82ead
Rename StatementArgumentsSink.forRawSQL to literalValues
2023-07-09 17:13:22 +02:00
Gwendal Roué
89dd426403
CHANGELOG
2023-07-09 15:16:06 +02:00
Gwendal Roué
3206d04f0e
Merge pull request #1401 from kustra/dev/linux-compile-fixes
...
Linux compilation fixes
2023-07-09 15:12:41 +02:00
Gwendal Roué
ee0d3e43e0
iOS 17: Update date formatter tests so that it does not depend on the space before AM/PM
...
iOS 17 has changed that space
2023-07-09 14:37:45 +02:00
László Kustra
f113963d31
Remove obsolete SQLite trace logic, as min SQLite version is 3.19.3
2023-07-07 11:05:17 +02:00
Gwendal Roué
7d48703986
CHANGELOG
2023-07-02 15:43:50 +02:00
Gwendal Roué
f06e117d66
Merge pull request #1403 from groue/dev/ci-macOS13
...
GitHub CI: test Xcode 14.3.1, macOS 13
2023-07-02 15:43:29 +02:00
Gwendal Roué
5fca5fdabf
Force MACOSX_DEPLOYMENT_TARGET on SQLCipher CocoaPods tests
...
Workaround for https://github.com/CocoaPods/CocoaPods/issues/11839
2023-07-02 14:18:07 +02:00
Gwendal Roué
2bd080799f
Test universal xcframework
2023-07-02 14:18:07 +02:00
Gwendal Roué
1577825585
GitHub CI: test Xcode 14.3.1, macOS 13
2023-07-02 14:18:07 +02:00
Gwendal Roué
9b7ba606d8
Merge pull request #1402 from groue/dev/sqlite-3.42.0
...
Upgrade custom SQLite builds to 3.42.0
2023-07-02 14:17:18 +02:00
Gwendal Roué
c9d8ce57a7
Trigger CI on custom SQLite upgrade
2023-07-02 12:44:18 +02:00
Gwendal Roué
2bb904775f
CHANGELOG
2023-07-02 12:38:41 +02:00
Gwendal Roué
66826288d6
Upgrade custom SQLite builds to 3.42.0
2023-07-02 12:32:56 +02:00
Gwendal Roué
59c41c97af
Clarify the prevention of database access from TransactionObserver callbacks
2023-07-02 10:58:09 +02:00
László Kustra
47d8ef4358
Fix the Linux version of sqlite3_trace for SQLite 3.19.3
2023-06-29 16:23:36 +02:00
László Kustra
25b49cba01
Add autoreleasepool shim for Linux
2023-06-29 16:23:36 +02:00
László Kustra
788887a2b8
Remove selector-based NotificationCenter calls on Linux
2023-06-29 16:23:36 +02:00
László Kustra
4057e3be07
Use cross-platform ProcessInfo instance property
2023-06-29 16:23:36 +02:00
Gwendal Roué
284a4ee1ac
Merge branch 'development'
2023-06-17 12:59:06 +02:00
Gwendal Roué
b27e378cfa
v6.15.1
2023-06-17 12:04:26 +02:00
Gwendal Roué
459726f9af
Improve documentation of erase()
2023-06-15 14:17:48 +02:00
Gwendal Roué
4f00e405c3
CHANGELOG
2023-06-11 15:40:02 +02:00
Gwendal Roué
87f4d816e6
Merge pull request #1391 from groue/dev/issue-1390
...
Fix upsert in FTS5-synchronized tables
2023-06-11 15:36:52 +02:00
Gwendal Roué
ea7ebe1ff5
Fix failing test for #1390
2023-06-11 13:15:55 +02:00
Gwendal Roué
89899432ba
Failing test for #1390
2023-06-11 13:15:55 +02:00
Gwendal Roué
3a1c211746
Address #1389 by forcing the user to specify a tracked region
...
This is technically a breaking change, but nobody will notice it.
2023-06-08 12:17:27 +02:00
Gwendal Roué
c3664e2b16
Fix Xcode 15 DocC warnings
2023-06-06 08:15:02 +02:00
Gwendal Roué
ea1353bd6c
Remove invalid documentation link
2023-06-06 08:13:43 +02:00
Gwendal Roué
4a5d4d6e49
Fix Xcode 15 warnings
2023-06-06 08:06:06 +02:00
Gwendal Roué
c85abdba86
Fix typo
2023-06-02 16:13:51 +02:00
Gwendal Roué
57aa4c30bf
Merge branch 'development'
2023-06-02 16:07:14 +02:00
Gwendal Roué
67b7941129
v6.15.0
2023-06-02 15:39:29 +02:00
Gwendal Roué
db01b0063c
Fix a test that relied on observation of every single changes
2023-06-02 15:39:26 +02:00
Gwendal Roué
e1ddc8154f
Merge pull request #1382 from groue/dev/request-all
...
Add `DerivableRequest.all()`
2023-06-02 13:34:43 +02:00
Gwendal Roué
e637c156a2
CHANGELOG
2023-06-02 13:31:19 +02:00
Gwendal Roué
60ad8a809a
Tests for FilteredRequest.all() and none()
2023-06-02 13:31:02 +02:00
Gwendal Roué
84ac401886
Add FilteredRequest.all()
...
This method does nothing: it returns `self`. It exists in order to match `none()`.
2023-06-02 13:31:02 +02:00
Gwendal Roué
26b875f64c
Merge pull request #1384 from groue/dev/issue-1383
...
Allow ValueObservation to start from a truncated wal file
2023-06-02 13:29:27 +02:00
Gwendal Roué
fdc8abfdbe
CHANGELOG
2023-06-02 12:07:35 +02:00
Gwendal Roué
fc641092f7
Document how truncating wal checkpoints impact ValueObservation
2023-06-02 12:04:28 +02:00
Gwendal Roué
63d360053b
Fix typo and obsolete comments
2023-06-02 10:20:42 +02:00
Gwendal Roué
dc440d5a8f
Fix failing tests for non-empty wal files on DatabasePool creation
2023-06-02 09:44:18 +02:00
Gwendal Roué
5ab0d18055
Failing tests for non-empty wal files on DatabasePool creation
2023-06-02 09:35:51 +02:00
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é
b840babb55
Document the intent of #1383 regression tests
2023-06-01 20:15:05 +02:00
Gwendal Roué
725d4a3fba
When a wal snapshot can't be created, ValueConcurrentObserver fallbacks to plain reads
...
This commit fixes #1383
2023-06-01 20:00:04 +02:00
Gwendal Roué
4ab8ac8d3f
Failing test for #1383 (async version)
2023-06-01 19:53:34 +02:00
Gwendal Roué
73b279b5c1
Document methods that fail if the wal file is missing or truncated
2023-06-01 19:15:21 +02:00
Gwendal Roué
fa681fb8c6
Enhance error message when WALSnapshot initializer fails
2023-06-01 19:07:28 +02:00
Gwendal Roué
cedcfbe330
Mark opportunities for snapshot creation failure (including #1383 )
2023-06-01 17:26:04 +02:00
Gwendal Roué
abd3ba39b1
Explicit tests that a DatabasePool can read from a new instance, and from a truncated wal file
2023-06-01 17:20:25 +02:00
Gwendal Roué
d66d2118b5
Failing test for #1383
2023-06-01 17:05:06 +02:00
Gwendal Roué
0a92a99223
Merge branch 'development'
2023-05-25 18:29:47 +02:00
Gwendal Roué
19e5e62098
v6.14.0
2023-05-25 18:29:15 +02:00
Gwendal Roué
d948e37388
CHANGELOG
2023-05-25 18:25:04 +02:00
Gwendal Roué
60de81633e
Merge pull request #1379 from groue/dev/default-index-name
...
Create indexes with a default name
2023-05-25 18:24:06 +02:00
Gwendal Roué
c02139c045
Default name for newly created indexes
2023-05-25 09:03:09 +02:00
Gwendal Roué
93bd527984
Merge pull request #1376 from groue/dev/bitwise-operations
...
Bitwise operations
2023-05-23 14:03:01 +02:00
Gwendal Roué
157d02b55c
CHANGELOG
2023-05-23 08:21:35 +02:00
Gwendal Roué
82d28b3167
Bitwise assignment operators &= |= <<= >>=
2023-05-23 08:16:14 +02:00
Gwendal Roué
717c2836ec
Bitwise operators & | ~ << >>
2023-05-23 08:15:04 +02:00
Gwendal Roué
cf8fa0e5f8
Merge branch 'development'
2023-05-15 20:06:01 +02:00
Gwendal Roué
84ef0a92da
v6.13.0
2023-05-15 20:05:30 +02:00
Gwendal Roué
2ae000df43
CHANGELOG
2023-05-15 19:05:30 +02:00
Gwendal Roué
738a187f68
Merge pull request #1373 from groue/dev/issue-1371
...
Disallow string literals in check()
2023-05-15 18:57:29 +02:00
Gwendal Roué
4ff057ac3b
Deprecate table constraints built from SQLExpressible - prefer SQLSpecificExpressible instead
...
Fixes #1371
2023-05-15 12:45:33 +02:00
Gwendal Roué
0d49d7612f
Enhance wording
2023-05-01 12:16:48 +02:00
Gwendal Roué
342b81f65e
Update dark logo
2023-04-30 12:55:56 +02:00
Gwendal Roué
a651f34f67
Upgrade performance test dependencies
2023-04-30 12:20:21 +02:00
Gwendal Roué
5475dc98dc
Merge branch 'development'
2023-04-29 18:29:02 +02:00
Gwendal Roué
3692ba2293
v6.12.0
2023-04-29 17:37:22 +02:00
Gwendal Roué
266efa041c
Expose FetchableRecordDecoder
2023-04-29 17:15:54 +02:00
Gwendal Roué
ebb2f7346d
Cleanup FTS5 documentation
2023-04-29 16:50:15 +02:00
Gwendal Roué
f955e5fabc
Merge pull request #1364 from groue/issue1362-test
...
Fix ValueObservation deadlock
2023-04-29 16:34:58 +02:00
Gwendal Roué
65c803a110
Fix #1362
2023-04-29 13:24:46 +02:00
Gwendal Roué
8b1b3b0396
Fix tests that relied on observation of every single changes
2023-04-29 12:47:25 +02:00
Gwendal Roué
bf28d1bd85
Disable xcpretty on $CI
2023-04-29 12:47:15 +02:00
Gwendal Roué
45edf58f9e
Refactor ValueObservationRecorder matching test
2023-04-29 12:47:00 +02:00
Gwendal Roué
d07e8bd3a0
The scenario that leads to the #1362 deadlock
2023-04-18 18:22:47 +02:00
Matt Gallagher
7feaa748a4
Removed some unneeded configuration from the test.
2023-04-18 13:06:05 +10:00
Matt Gallagher
c159638498
A test demonstrating deadlock when observer count exceeds size of DatabasePool.
2023-04-18 12:48:06 +10:00
Gwendal Roué
5aa385094b
Merge branch 'development'
2023-04-17 20:20:50 +02:00
Gwendal Roué
1cd20176c6
v6.11.0
2023-04-17 20:20:30 +02:00
Gwendal Roué
06891e99e1
Prepare for release
2023-04-17 20:20:30 +02:00
Gwendal Roué
d5f38a6a24
Fix Swiftlint warning
2023-04-17 19:17:50 +02:00
Gwendal Roué
68d23a5f33
README layout
2023-04-17 08:36:32 +02:00
Gwendal Roué
75f92f6f14
Dark logo
2023-04-17 08:35:31 +02:00
Gwendal Roué
6c70ee6b77
Remove the Swift language versions
2023-04-16 16:51:33 +02:00
Gwendal Roué
c8ae3cb61c
Update usage sample code
2023-04-16 14:07:43 +02:00
Gwendal Roué
dd4d3e35f3
Concurrency Guide layout
2023-04-16 13:27:11 +02:00
Gwendal Roué
7b2619e757
Refactor README introduction
2023-04-16 13:25:24 +02:00
Gwendal Roué
a7b9a27c51
DocC home page layout
2023-04-16 13:09:31 +02:00
Gwendal Roué
fcfd6e9028
ValueConcurrentObserver releases its initial WAL transaction earlier
2023-04-15 11:59:19 +02:00
Gwendal Roué
9011f71247
Fix tests for unavailable wal snapshots
2023-04-15 09:50:46 +02:00
Gwendal Roué
069bce217d
Attempts at finding regression tests for #1362
2023-04-14 08:28:34 +02:00
Gwendal Roué
5a91340671
CHANGELOG
2023-04-13 08:02:41 +02:00
Gwendal Roué
ba2e3cb468
Merge pull request #1361 from groue/dev/issue-1360
...
DatabaseMigrator.eraseDatabaseOnSchemaChange ignores internal schema objects
2023-04-13 08:00:05 +02:00
Gwendal Roué
f633be4ba1
Fix test for #1360
2023-04-12 08:02:38 +02:00
Gwendal Roué
4074fcfcc7
Failing test for #1360
2023-04-12 08:00:19 +02:00
Gwendal Roué
18cdf4956e
Fix typos
2023-04-10 16:52:03 +02:00
Gwendal Roué
18e06a78a3
Merge branch 'development'
2023-04-10 15:06:33 +02:00
Gwendal Roué
065ca71876
v6.10.2
2023-04-10 14:16:41 +02:00
Gwendal Roué
859a1d6184
Enhance Recommended Practices for Designing Record Types
2023-04-10 14:11:39 +02:00
Gwendal Roué
f2ea4e91db
CHANGELOG
2023-04-10 11:32:12 +02:00
Gwendal Roué
1add9a9752
Fix incorrect test
2023-04-10 11:31:19 +02:00
Gwendal Roué
17c3f82f50
Remove weird Xcode error regarding the Scripts "project"
2023-04-10 11:31:19 +02:00
Gwendal Roué
52a3d6ba23
Move the "Recommended Practices for Designing Record Types" to DocC
2023-04-10 09:51:38 +02:00
Gwendal Roué
54007a9ce1
Refactor demo apps for enhanced configuration management
2023-04-09 11:40:40 +02:00
Gwendal Roué
77d8a46039
Remove obsolete TODOs
2023-04-08 12:30:55 +02:00
Gwendal Roué
f6e695a21d
More explicit any/some
2023-04-08 12:01:59 +02:00
Gwendal Roué
3184334535
Merge branch 'development'
2023-04-01 17:22:35 +02:00
Gwendal Roué
12e3923af1
v6.10.1
2023-04-01 16:01:43 +02:00
Gwendal Roué
b81e858ca0
Better fix for #1357
...
Previous fix would not correctly address #1357 when invalid double-quoted identifiers are interpreted as string literals (Configuration.acceptsDoubleQuotedStringLiterals = true, or SQLCipher 3)
2023-04-01 14:59:42 +02:00
Gwendal Roué
82f300e534
GitHub actions: Xcode 14.2
2023-04-01 14:30:57 +02:00
Gwendal Roué
9df1cfd110
CHANGELOG
2023-04-01 14:12:50 +02:00
Gwendal Roué
373fe467d6
Fix failing test for #1357
2023-04-01 14:09:50 +02:00
Gwendal Roué
81eb6b128f
Failing test for #1357
2023-04-01 14:09:50 +02:00
Gwendal Roué
c7ee12eff7
Remove deprecated swiftlint rule
2023-04-01 13:14:45 +02:00
Gwendal Roué
89330daa52
Use xcbeautify when available
2023-04-01 13:05:43 +02:00
Gwendal Roué
e408bd17d8
Fix Swiftlint warning
2023-04-01 13:04:52 +02:00
Gwendal Roué
99ddc5e13c
Makefile: add explicit macOS destinations
2023-04-01 12:56:44 +02:00
Gwendal Roué
4c0cc84c2d
Improve DatabaseEventPredicate usage with SQLITE_ENABLE_PREUPDATE_HOOK
2023-03-31 08:02:04 +02:00
Gwendal Roué
4762f8bb36
Fix spawnConcurrentRead documentation
2023-03-29 13:02:49 +02:00
Gwendal Roué
7e6f71912c
Enhance DatabaseQueue read-only transactions
2023-03-29 13:02:31 +02:00
Gwendal Roué
6b311941b1
Remove WWDCCompanion from the release process
2023-03-22 18:40:48 +01:00
Gwendal Roué
5facc24ebb
Fix compiler warnings for Swift 5.8
2023-03-22 18:40:37 +01:00
Gwendal Roué
018ae03f8e
Improve DatabaseEventPredicate usage
2023-03-22 08:30:21 +01:00
Gwendal Roué
52aef76b63
Fix Swiftlint warning
2023-03-22 08:25:37 +01:00
Gwendal Roué
2fa5ca767f
WALSnapshot is only available when the SQLite feature is
...
Since #1350 we no longer need to expose it and check for failures at runtime.
2023-03-20 15:05:17 +01:00
Gwendal Roué
a1b76f9e06
Fix typo
2023-03-20 09:21:50 +01:00
Gwendal Roué
2d19cab2b5
Merge branch 'development'
2023-03-20 07:53:38 +01:00
Gwendal Roué
a551fbf443
v6.10.0
2023-03-20 07:53:28 +01:00
Gwendal Roué
c6e220a531
Merge pull request #1350 from groue/dev/long-lived-read-only-transaction
...
DatabasePool won't close read-only connections if requested, and ValueObservation no longer opens a new database connection when it starts
2023-03-20 07:50:30 +01:00
Gwendal Roué and Rogerio de Paula Assis
600d1b84b6
Update GRDB/Core/SerializedDatabase.swift
...
Co-authored-by: Rogerio de Paula Assis <rog@anz.com >
2023-03-20 07:02:00 +01:00
Gwendal Roué
5629cfe6ff
Fix documentation
2023-03-19 13:56:56 +01:00
Gwendal Roué
5d9b9edfe1
Fix asyncWALSnapshotTransaction usage.
...
We must use its result asynchronously.
2023-03-19 12:39:48 +01:00
Gwendal Roué
449c243a36
Rename persistentReaderConnections to dbConfiguration.persistentReadOnlyConnections
2023-03-18 11:08:56 +01:00
Gwendal Roué
6ca4986bc2
CHANGELOG
2023-03-17 13:52:29 +01:00
Gwendal Roué
063877d49c
Configuration.persistentReaderConnections
2023-03-17 13:52:29 +01:00
Gwendal Roué
2f4d0c4588
CHANGELOG
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é
d64274474b
ValueObservation: stop creating a new connection on start
...
Since #1248 , ValueObservation on DatabasePool creates a new database connection when it starts. #1256 has revealed that opening a connection can take too much time, which unfortunate consequences: the first value is notified too late, and we block the main thread when the observation is started in the `.immediate` scheduling :-/
In this commit, ValueObservation on DatabasePool just uses one of the available readers, thus avoiding creating a new connection.
When WAL snapshots are available, a long-running read-only transaction is kept opened on this reader, until we can start observing the write transactions, compare database versions, and perform a fetch+notification if and only if the database was modified.
When WAL snapshots are not available (Xcode 14.0 and macOS, or specific SQLCipher or SQLite builds), a double notification of the initial value is always performed, since we can't prove that the database was not changed between the initial fetch and the write access.
2023-03-17 13:52:29 +01:00
Gwendal Roué
e66dfacab8
WALSnapshotTransaction
2023-03-17 13:52:29 +01:00
Gwendal Roué
0d4c6e592e
SerializedDatabase.allowsUnsafeTransactions
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é
378c6785ea
Clarification on the truncate optimization
2023-03-16 18:44:46 +01:00
Gwendal Roué
6d392f0a87
Use DatabaseError.connectionIsClosed() where appropriate
2023-03-16 13:44:08 +01:00
Gwendal Roué
7c81c37e1f
Move DatabaseRegionObservation documentation in an extension file
2023-03-15 16:51:46 +01:00
Gwendal Roué
3f876978a1
Move TransactionObserver documentation in an extension file
2023-03-15 16:51:46 +01:00
Gwendal Roué
a0ed1bfd33
Move ValueObservation documentation in an extension file
2023-03-15 16:51:46 +01:00
Gwendal Roué
be41d2dd03
Merge branch 'development'
2023-03-14 08:33:07 +01:00
Gwendal Roué
e6c3a8d07a
v6.9.2
2023-03-14 08:32:58 +01:00
Gwendal Roué
5e41ca7e4e
CHANGELOG
2023-03-14 08:12:38 +01:00
Gwendal Roué
0f942c014c
Cleanup
2023-03-14 08:10:56 +01:00
Gwendal Roué
40bebda712
Merge pull request #1349 from JonLz/fix-migrations-docs
...
Fix Migrations.md example so it compiles
2023-03-13 20:35:21 +01:00
Jon Lazar
37fd4c18b0
Update Migrations.md
...
Fix closure parameter syntax so that the example compiles.
2023-03-13 15:26:07 -04:00
Gwendal Roué
d5a41bd11b
Disable SQLITE_STATIC optimization when there are too many arguments
2023-03-13 19:33:52 +01:00
Gwendal Roué
c22fc202a9
Fix typo
2023-03-13 08:06:07 +01:00
Gwendal Roué
a0f14d816a
Merge branch 'development'
2023-03-12 18:18:06 +01:00
Gwendal Roué
ad33dfcfbf
v6.9.1
2023-03-12 18:17:48 +01:00
Gwendal Roué
840fa3b5da
RecordError DocC
2023-03-12 18:14:38 +01:00
Gwendal Roué
397a008237
More links to DocC reference
2023-03-12 18:01:24 +01:00
Gwendal Roué
f7559d4c76
Moved row adapters doc into DocC
2023-03-12 17:25:16 +01:00
Gwendal Roué
8cd71ac832
Fix TableRecord.databaseSelection sample code
2023-03-12 17:18:28 +01:00
Gwendal Roué
0ffd25bc74
Fix documentation typo
2023-03-12 16:33:10 +01:00
Gwendal Roué
ff7f9073fc
Add links to DocC reference
2023-03-12 16:32:54 +01:00
Gwendal Roué
93616775f6
Merge branch 'development'
2023-03-12 12:48:30 +01:00
Gwendal Roué
81751625e0
v6.9.0
2023-03-12 12:48:19 +01:00
Gwendal Roué
9798f9f9fa
Update Package.resolved for demo apps
2023-03-12 12:40:38 +01:00
Gwendal Roué
db165581ea
Merge pull request #1348 from groue/dev/argument-optimization
...
SQLite argument binding optimization
2023-03-12 11:56:57 +01:00
Gwendal Roué
b4e851aa49
More statement arguments documentation
2023-03-12 10:59:38 +01:00
Gwendal Roué
0169e340dc
CHANGELOG
2023-03-11 16:40:47 +01:00
Gwendal Roué
1d5d1aea68
Upgrade performance tests dependencies
2023-03-11 12:10:25 +01:00
Gwendal Roué
0c333b6e22
Performance improvements
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é
29b5b99b89
Fix typos
2023-03-11 08:00:23 +01:00
Gwendal Roué
725d38ea06
Fix typo
2023-03-07 11:08:00 +01:00
Gwendal Roué
6509f7ed40
Improve DatabaseValueConvertible documentation
2023-03-06 08:22:29 +01:00
Gwendal Roué
67bdc740bd
DatabaseValueConvertible and collections: move the rationale out of the user-facing documentation.
2023-03-06 08:03:08 +01:00
Gwendal Roué
1e2b454c4c
Enhance wording
2023-03-05 17:14:06 +01:00
Gwendal Roué
a77f9d3f6a
CHANGELOG
2023-03-05 13:52:26 +01:00
Gwendal Roué
229bd98b9c
Enhance Database Connection DocC overview
2023-03-05 13:51:14 +01:00
Gwendal Roué
692eac43a9
Fix typos
2023-03-05 07:44:12 +01:00
Gwendal Roué
4f398a3457
Prepared statements documentation is now hosted in the Statement DocC
2023-03-04 17:08:12 +01:00
Gwendal Roué
44c13e5bff
Make sure Statement.reset(withArguments:) resets
2023-03-04 16:28:45 +01:00
Gwendal Roué
7b2393f2cd
Cleanup
2023-03-04 15:23:19 +01:00
Gwendal Roué
67dfdc1bbb
Move DatabaseValueConvertible.swift DocC in an extension file
2023-03-04 15:19:55 +01:00
Gwendal Roué
cc8ed5ccb5
Enhanced DocC for DatabaseValueConvertible
...
Also:
- Redirect the "Custom Value Types" README chapter to DatabaseValueConvertible documentation.
- Document how to support Tagged https://github.com/pointfreeco/swift-tagged
2023-03-04 14:51:46 +01:00
Gwendal Roué
441823d5f4
Enhance discoverability of the Database Sharing guide
...
https://github.com/groue/GRDB.swift/discussions/1343
2023-03-04 12:19:21 +01:00
Gwendal Roué
1e5ee4b292
Fix Xcode 14.3 beta 2 warnings
2023-03-04 11:53:41 +01:00
Gwendal Roué
159a34bdf2
Demo apps: bump GRDBQuery to 0.6.0
2023-03-04 10:03:51 +01:00
Gwendal Roué
e936d6b42d
Fix DatabaseError documentation
2023-03-02 06:58:33 +01:00
Gwendal Roué
cc567f2555
Expose the fts5_api structure
2023-03-01 08:23:36 +01:00
Gwendal Roué
b3763ad08e
RecordCursor: same documation as all cursors
2023-02-26 10:26:03 +01:00
Gwendal Roué
c824b42757
Restore busy timeout tests
...
In the context of #1339
2023-02-25 10:56:56 +01:00
Gwendal Roué
d3862c0424
Merge branch 'development'
2023-02-24 13:22:53 +01:00
Gwendal Roué
f6cb77a489
v6.8.0
2023-02-24 13:11:18 +01:00
Gwendal Roué
a1faa88579
Merge pull request #1338 from groue/dev/TimestampedRecord
...
TimestampedRecord sample code
2023-02-24 13:03:48 +01:00
Gwendal Roué
43ff278748
Improve transactionDate and transactionClock documentation
2023-02-23 08:34:09 +01:00
Gwendal Roué
5ed44b94bc
More improvements to RecordTimestamps.md
2023-02-23 07:59:08 +01:00
Gwendal Roué
e683df3494
Tweak wording and explore more timestamp handling scenarios
2023-02-22 14:10:28 +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é
5f013b6ee7
Layout for Xcode doc reader
2023-02-22 07:17:53 +01:00
Gwendal Roué
734d911416
Fix typo
2023-02-22 06:18:13 +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é
9bd26a5a1b
Improve Modification Timestamp documentation
2023-02-20 13:30:29 +01:00
Gwendal Roué
84f5a91f7b
Improve Modification Timestamp documentation
2023-02-20 13:23:36 +01:00
Gwendal Roué
c9ae697a44
Remove obsolete documentation about FTS5
2023-02-19 21:30:41 +01:00
Gwendal Roué
e76cda27dc
Merge branch 'development'
2023-02-19 20:00:51 +01:00
Gwendal Roué
2618c9fa1e
v6.7.0
2023-02-19 19:58:05 +01:00
Gwendal Roué
522e4be817
Merge pull request #1336 from groue/dev/FTS5
...
Enable FTS5 by default
2023-02-19 19:53:37 +01:00
Gwendal Roué
ff8b9e5cb8
CHANGELOG
2023-02-19 18:42:08 +01:00
Gwendal Roué
38c9ec29f5
Enable FTS5 by default in CocoaPods
2023-02-19 18:25:16 +01:00
Gwendal Roué
3b0cf1fb0b
FTS5 DocC
2023-02-19 17:38:19 +01:00
Gwendal Roué
dc4f10ecb0
Remove Xcode warning
2023-02-19 12:10:17 +01:00
Gwendal Roué
012ed8133f
Enable FTS5 by default in SPM
2023-02-19 12:10:09 +01:00
Gwendal Roué
d0314e0db8
Enable FTS5 by default in GRDB.xcodeproj
2023-02-19 12:03:49 +01:00
Gwendal Roué
850db8f2e9
Fix #1327
2023-02-18 15:11:34 +01:00
Gwendal Roué
44ec63dbe2
Merge pull request #1331 from groue/dev/transactionDate
...
Transaction Date
2023-02-18 14:42:51 +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é
72216beacb
Enhance wording
2023-02-18 12:06:11 +01:00
Gwendal Roué
6500a97f88
Documentation
2023-02-18 11:58:46 +01:00
Gwendal Roué
3c71a6deea
"Record Timestamps and Transaction Date" documentation chapter
2023-02-18 11:52:21 +01:00
Gwendal Roué
e4421c509c
Improve transactionDate documentation
2023-02-18 10:18:10 +01:00
Gwendal Roué
c8339db68b
CHANGELOG
2023-02-18 10:17:10 +01:00
Gwendal Roué
961b3a9cad
Database.transactionDate must be called from a valid DispatchQueue
2023-02-18 08:31:05 +01:00
Gwendal Roué
efa8f0e69d
Configuration.transactionClock is experimental as well
2023-02-18 08:31:05 +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é
31350672c7
CHANGELOG
2023-02-17 12:37:28 +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é
f8f586a98c
More BRAG
2023-02-10 10:07:35 +01:00
Gwendal Roué
302fc69f3a
TableDefinition.primaryKey(["a", "b"]) is no longer sunsetted
...
People need it to define the primary key on non-consecutive columns: https://github.com/groue/GRDB.swift/discussions/1326
2023-02-10 08:11:02 +01:00
Gwendal Roué
0045592891
Merge pull request #1328 from ytti/master
...
Update README.md
2023-02-10 07:58:25 +01:00
ytti
69105e6f80
Update README.md
...
In SQLCipher passphrase as Data example, fix the use of Data instance
2023-02-09 09:36:03 +02:00
Gwendal Roué
aff924a72b
Upgrade Swiftlint and fix warnings
2023-02-04 11:23:14 +01:00
Gwendal Roué
abaa14db83
Fix typo
2023-01-30 08:41:32 +01:00
Gwendal Roué
9b113fb548
Fix documentation
2023-01-30 08:00:47 +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é
846939d632
Merge pull request #1316 from baekteun/master
...
✏️ :: replace OSX -> macOS in document
2023-01-16 07:56:52 +01:00
Gwendal Roué
ba68e3b02d
Merge branch 'development'
2023-01-15 15:30:52 +01:00
Gwendal Roué
59f98ae1fd
v6.6.1
2023-01-15 15:30:40 +01:00
Gwendal Roué
590158ca3e
Update license for 2023
2023-01-15 15:24:30 +01:00
Gwendal Roué
7d7724c3aa
Link to Mastodon account
2023-01-15 15:21:37 +01:00
Gwendal Roué
76a065af6d
Merge pull request #1317 from groue/dev/fix-1315
...
Fix removal of prefetched associations
2023-01-15 15:12:17 +01:00
Gwendal Roué
2976e81a95
Fix failing test for #1315
2023-01-15 13:39:05 +01: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é
3794e7e801
DatabasePromise.description
2023-01-14 12:21:08 +01:00
baegteun
557ad3d3d3
OS X -> macOS in Remake or CHANGELOG.md
2023-01-14 11:43:27 +09:00
baegteun
70a35afad8
OSX -> macOS in CHANGELOG.md
2023-01-14 11:39:13 +09:00
baegteun
4a5713502f
OSX.gitignore -> macOS.gitignore
2023-01-14 11:38:02 +09:00
Gwendal Roué
c3cc998fc1
Merge branch 'development'
2022-12-29 14:12:13 +01:00
Gwendal Roué
0f0f33d0d1
v6.6.0
2022-12-29 14:06:18 +01:00
Gwendal Roué
0b92c856ae
Upgrade demo apps
2022-12-29 14:06:18 +01:00
Gwendal Roué
6e2e1f4889
Update documentation links
2022-12-29 14:06:18 +01:00
Gwendal Roué
0dd17a9a16
Turn ValueObservationScheduler into a protocol
2022-12-29 12:38:06 +01:00
Gwendal Roué
4100b0627f
DatabaseCursor DocC
2022-12-18 11:58:03 +01:00
Gwendal Roué
c50cfd937e
DocC: DatabaseQueue and DatabasePool
2022-12-18 11:45:28 +01:00
Gwendal Roué
3d7170f1bc
DocC: Configuration
2022-12-17 10:11:36 +01:00
Gwendal Roué
2c5a86479a
DocC: Transactions and Savepoints
2022-12-17 10:11:36 +01:00
Gwendal Roué
119f226610
DocC: GeneratedColumnQualification
2022-12-12 08:42:18 +01:00
Gwendal Roué
d2db26d570
Merge pull request #1301 from groue/dev/xcode-14.2
...
CI Cleanup
2022-12-10 16:50:44 +01:00
Gwendal Roué
82ed41b700
Remove junk from Makefile
2022-12-10 15:17:44 +01:00
Gwendal Roué
639eadbad2
CI: more Xcode 14.1
2022-12-10 14:20:42 +01:00
Gwendal Roué
4ff3221feb
CI: explicit iOS and tvOS tests
2022-12-10 14:04:00 +01:00
Gwendal Roué
a61a769da9
CI: explicit macOS tests
2022-12-10 13:26:53 +01:00
Gwendal Roué
04bdafd448
Makefile change triggers Github workflow
2022-12-10 13:19:10 +01:00
Gwendal Roué
5fa5e62d0e
CHANGELOG
2022-12-10 13:06:39 +01:00
Gwendal Roué
1d5f05351a
Merge pull request #1304 from groue/dev/generated-columns
...
Expose generated columns with availability checks
2022-12-10 13:04:09 +01:00
Gwendal Roué
05da03ab1a
Expose generated columns with availability checks
2022-12-10 11:32:23 +01:00
Gwendal Roué
7b63ddf542
Merge branch 'development'
2022-12-05 11:19:16 +01:00
Gwendal Roué
13860219be
v6.5.0
2022-12-05 11:18:59 +01:00
Gwendal Roué
4cbf442cc8
Merge pull request #1299 from groue/dev/find
...
Record.find() convenience methods
2022-11-30 22:48:58 +01:00
Gwendal Roué
2bde3e11bc
Tests for find(_🔑 ) and find(_🆔 )
2022-11-30 21:39:44 +01:00
Gwendal Roué
5ab7bfb229
recordNotFound returns an error instead of Never
...
https://forums.swift.org/t/methods-that-throw-and-return-never/61715
2022-11-30 21:33:15 +01:00
Gwendal Roué
520766a74e
CHANGELOG
2022-11-30 20:07:42 +01:00
Gwendal Roué
6c16a9a4e5
Document the find method
2022-11-30 20:02:24 +01:00
Gwendal Roué
726022d5a5
Support for legacy urls
2022-11-30 19:52:55 +01:00
Gwendal Roué
4a4ff9950c
FetchableRecord.find() methods
2022-11-30 19:36:25 +01:00
Gwendal Roué
afc578db7f
TableRecord.recordNotFound() methods
2022-11-30 19:36:08 +01:00
Gwendal Roué
df3bd46346
Rename PersistenceError to RecordError
2022-11-30 19:11:07 +01:00
Gwendal Roué
08ec50f44b
Enhance documentation for explicit rowid support
2022-11-28 21:09:48 +01:00
Gwendal Roué
156ed53588
Remove obsolete documentation comment
2022-11-28 21:05:30 +01:00
Gwendal Roué
f9cfadce78
CHANGELOG
2022-11-28 20:57:48 +01:00
Gwendal Roué
2269a82479
CHANGELOG
2022-11-28 18:43:26 +01:00
Gwendal Roué
8330469ac3
Merge branch 'development'
2022-11-28 17:14:48 +01:00
Gwendal Roué
72f56a1b03
v6.4.0
2022-11-28 13:29:23 +01:00
Gwendal Roué
cbd05c9037
Fix documentation link
2022-11-28 13:28:35 +01:00
Gwendal Roué
a27c34e635
CHANGELOG
2022-11-28 13:19:56 +01:00
Gwendal Roué
35019f7a36
Merge pull request #1297 from groue/experimental/expose-CSQLite
...
SPM: expose the CSQLite product
2022-11-28 11:40:28 +01:00
Gwendal Roué
69e4706549
Expose CSQLite as a SPM product
2022-11-28 10:37:39 +01:00
Gwendal Roué
65bd4d90c2
Enhance DatabaseRegionObservation documentation
2022-11-28 08:36:30 +01:00
Gwendal Roué
7343912ac3
Fix broken links
2022-11-28 08:31:45 +01:00
Gwendal Roué
409bd3bb26
Move Database Observation documentation to DocC
2022-11-28 08:27:12 +01:00
Gwendal Roué
fed4833764
Move DatabaseRegionObservation documentation to DocC
2022-11-27 18:45:48 +01:00
Gwendal Roué
e3cc15707a
Move ValueObservation documentation to DocC
2022-11-27 18:27:26 +01:00
Gwendal Roué
5302b98a15
http -> https
2022-11-27 15:12:57 +01:00
Gwendal Roué
ef019bb9da
CHANGELOG
2022-11-27 15:05:45 +01:00
Gwendal Roué
35e60f2b97
Precision
2022-11-27 14:48:43 +01:00
Gwendal Roué
2e2b79a3a9
The technique for exposing rowids to record types has moved to DocC
2022-11-27 14:29:14 +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é
f8728bbed8
Enhance documentation
2022-11-27 13:01:42 +01:00
Gwendal Roué
f774aa7c07
Fix tests for named in-memory database
2022-11-27 12:46:59 +01:00
Gwendal Roué
7a9b8093ed
Fix Swiftlint warnings
2022-11-27 12:46:23 +01:00
Gwendal Roué
c7df15faf5
CHANGELOG
2022-11-27 12:41:00 +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é
8b8e480391
Primary key definition with NOT NULL constraint by default
2022-11-27 11:32:38 +01:00
Gwendal Roué
3074b61cb7
Move schema documentation to DocC
2022-11-27 11:07:13 +01:00
Gwendal Roué
d91e6c2db6
Add schema recommendations to DatabaseSchema.md
2022-11-26 17:09:58 +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é
4e4699ebed
Improve inline documentation
2022-11-26 16:26:46 +01:00
Gwendal Roué
6295f4609e
More precise WALSnapshot creation errors
2022-11-25 08:31:47 +01:00
Gwendal Roué
e430b4ebd7
DatabaseSnapshotReader reentrant read is not unsafe
2022-11-25 08:15:14 +01:00
Gwendal Roué
4ff8928dc4
Simplify declaration of ValueObservation factory methods (SE-0267)
2022-11-23 19:46:00 +01:00
Gwendal Roué
10596e17bf
Cleanup snapshot configurations
2022-11-23 19:42:12 +01:00
Gwendal Roué
392e9e447d
Shared in-memory databases
2022-11-23 18:32:57 +01:00
Gwendal Roué
e8f1e76958
Enhance documentation
2022-11-18 17:45:51 +01:00
Gwendal Roué
131f414a75
Enhance DatabaseSchema.md
2022-11-18 13:49:28 +01:00
Gwendal Roué
d4cefc984f
Update documentation index
2022-11-18 13:33:28 +01:00
Gwendal Roué
2dce8d533e
Project organization
2022-11-18 13:33:28 +01:00
Gwendal Roué
dc43607921
Cleanup
2022-11-18 13:33:28 +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é
fcf8ac43b7
Delete obsolete comment
2022-11-18 12:41:15 +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é
8a42c11624
DatabaseSnapshotPool documentation
2022-11-17 22:38:41 +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é
b1770e89b7
Introduce DatabaseSnapshotReader
2022-11-17 20:11:58 +01:00
Gwendal Roué
12d656d3a1
Let SQLite check if DatabaseSnapshotPool can be created
2022-11-17 20:01:17 +01:00
Gwendal Roué
0bc49460d7
DatabaseSnapshotPool uses its own pool of connections
...
In the previous implementation, the snapshot pool would use the same reader connections as the database pool. This would create problem with reentrant reads. Let's make things simple, and not share any database connection.
2022-11-17 18:36:17 +01:00
Gwendal Roué
2743ded335
Merge pull request #1293 from groue/experimental/WALSnapshotToken
...
Enable concurrent reads from a WAL snapshot
2022-11-14 20:53:26 +01:00
Gwendal Roué
e129df15db
Fix tests for Xcode 14.0
2022-11-14 19:29:17 +01:00
Gwendal Roué
c4c0b1ce90
Test and fix unsafe and async DatabaseSnapshotPool
2022-11-14 19:10:52 +01:00
Gwendal Roué
9ac8c0703d
Remove dead code
2022-11-14 19:02:10 +01:00
Gwendal Roué
433ed36a4b
More documentation about transactions
2022-11-14 18:51:39 +01:00
Gwendal Roué
c23b93d71b
Document that reentrant database accesses use the current database connection when possible
2022-11-14 18:38:33 +01:00
Gwendal Roué
b8bc8273a9
Turn snapshot tokens into a proper reader: DatabaseSnapshotPool
2022-11-14 18:22:13 +01:00
Gwendal Roué
bcb70855d5
Enhance WALSnapshotToken documentation
2022-11-14 10:42:09 +01:00
Gwendal Roué
eaf8dc239a
Simplify WALSnapshotToken creation
2022-11-14 10:39:48 +01:00
Gwendal Roué
6864e6b2fb
Enhance registerAccess(to:) documentation
2022-11-14 08:47:58 +01:00
Gwendal Roué
4b21704258
CHANGELOG
2022-11-13 18:35:59 +01:00
Gwendal Roué
a71eb3d662
Introduce WALSnapshotToken
2022-11-13 18:28:54 +01:00
Gwendal Roué
dffe56f8a9
Simplify ValueReducer definition
2022-11-13 18:09:06 +01:00
Gwendal Roué
4871304c60
Enable WALSnapshot on macOS (Xcode 14.1+)
2022-11-13 15:29:44 +01:00
Gwendal Roué
a6f9b1c4b7
CHANGELOG
2022-11-13 10:55:31 +01:00
Gwendal Roué
cbac0e7286
Enhance Configuration.threadingMode documentation
2022-11-13 10:54:40 +01:00
Gwendal Roué
997d6cb677
DatabaseSnapshot does not require the WAL mode
...
One can create a snapshot from a read-only pool on a non-WAL database, and that's OK. The snaphost still sees an unchanging database content (but other connections can't write).
2022-11-13 10:54:40 +01:00
Gwendal Roué
51230834c8
Configuration.maximumReaderCount can be queried
...
This is useful for tools that adapt their own inner scheduling to the actual capacity for concurrent reads.
2022-11-13 10:54:40 +01:00
Gwendal Roué
638e586dbc
Expose Database.registerAccess(to:)
...
This helps tools that intend to declare an observed region without directly accessing it. This will be necessary for (future) snapshot-based observations that postpone actual database access.
2022-11-13 10:54:40 +01:00
Gwendal Roué
6dc4d50e00
Expose Configuration.readQoS and writeQoS
...
This helps tools that perform their own asynchronous jobs that depend on database scheduling. By using the same QoS as the database, they won't create priority inversion or similar scheduling misuses.
2022-11-12 11:55:37 +01:00
Gwendal Roué
5d50e396c1
Enhance Configuration documentation
2022-11-12 11:55:37 +01:00
Gwendal Roué
981d42aed6
Execute SPM tests in parallel
2022-11-12 11:55:37 +01:00
Gwendal Roué
8ffceb49c8
Document SPI_BUILDER
2022-11-11 15:14:59 +01:00
Gwendal Roué
b14ef2112c
Fix documentation typo
2022-11-11 12:55:35 +01:00
Gwendal Roué
2d31ed4618
Merge branch 'development'
2022-11-11 11:34:48 +01:00
Gwendal Roué
5e7b604ecd
v6.3.1
2022-11-11 11:34:02 +01:00
Gwendal Roué
90ec3c188b
Host documentation on SPI
2022-11-11 11:34:02 +01:00
Gwendal Roué
1625bc83f8
Documentation organization
2022-11-11 11:34:02 +01:00
Gwendal Roué
be9740b5f6
Discourage usage of reentrant by linking to the related doc
2022-11-10 08:50:41 +01:00
Gwendal Roué
f914fe73ff
DocC Concurrency Resources
2022-11-10 08:34:54 +01:00
Gwendal Roué
57b07515c7
Rename GRDB_DOCC_PLUGIN to SPI_BUILDER
...
This addresses https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/2122#issuecomment-1305649066
2022-11-09 21:56:19 +01:00
Gwendal Roué
9d03c1ae61
DocC: Single-Row Tables
2022-11-09 21:54:17 +01:00
Gwendal Roué
3014ddb00a
Enhance Documentation
2022-11-09 21:52:22 +01:00
Gwendal Roué
85b2e113b2
Relocate DatabaseSnapshot documentation
2022-11-09 17:16:03 +01:00
Gwendal Roué
c5a0598cea
DocC: Concurrency Guides
2022-11-09 13:22:53 +01:00
Gwendal Roué
5242fe10f6
Enhance Documentation
2022-11-09 13:22:53 +01:00
Gwendal Roué
71880a9b8e
Enhance Documentation
2022-11-09 13:20:08 +01:00
Gwendal Roué
14fb1945be
Fix documentation
2022-11-08 22:57:48 +01:00
Gwendal Roué
33cdf6f270
Extract <doc:DatabaseSchema>
2022-11-08 19:28:13 +01:00
Gwendal Roué
ca079cab17
TODO
2022-11-08 19:28:09 +01:00
Gwendal Roué
0873474a17
DocC: SQL
2022-11-08 18:22:03 +01:00
Gwendal Roué
bfe2450da5
Fix typo
2022-11-08 08:53:59 +01:00
Gwendal Roué
19b0b6af3e
http -> https
2022-11-08 08:45:37 +01:00
Gwendal Roué
cdf480ef1f
Migrations guide cleanup
2022-11-08 08:41:10 +01:00
Gwendal Roué
da3059f0a8
fix typos and wordings
2022-11-08 05:43:09 +01:00
Gwendal Roué
754ced7b5e
Enhance DocC output for ForeignKeyViolation
2022-11-07 22:50:50 +01:00
Gwendal Roué
fb81ec6792
Migrations Guide in now a DocC article
2022-11-07 22:44:37 +01:00
Gwendal Roué
1be868c4b0
Fix documentation typo
2022-11-07 09:16:50 +01:00
Gwendal Roué
4dda8d7650
Host DocC on Github pages
...
SPI will be up soon, but we have to fix the dead links currently published on the master branch
https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/discussions/2120
2022-11-07 08:14:39 +01:00
Gwendal Roué
16fe4331f2
make doc generates DocC for hosting on Github pages
...
Example: http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb
2022-11-07 08:14:39 +01:00
Gwendal Roué
5ff2ad9e71
Merge branch 'development'
2022-11-06 20:47:53 +01:00
Gwendal Roué
f5259af512
v6.3.0
2022-11-06 20:47:03 +01:00
Gwendal Roué
2dd2d2db35
Makefile no longer needs to be updated on each release
2022-11-06 20:46:53 +01:00
Gwendal Roué
9fd3e822e5
More links to future SPI-hosted pages
2022-11-06 20:45:48 +01:00
Gwendal Roué
edbfc7749c
Merge pull request #1291 from groue/dev/DocC
...
DocC inline documentation
2022-11-06 20:36:46 +01:00
Gwendal Roué
2aa7e3c79f
Makefile: support for Xcode 14.1
2022-11-06 19:42:49 +01:00
Gwendal Roué
3592db997a
Makefile: allow disabling min iOS destination
2022-11-06 19:05:38 +01:00
Gwendal Roué
4307f6a680
Fix Swiftlint warnings
2022-11-06 18:43:00 +01:00
Gwendal Roué
b7b83a965b
Update the Swift Package Index manifest file
2022-11-06 18:11:18 +01:00
Gwendal Roué
fcfecc5a73
Update Release Process
2022-11-06 18:09:49 +01:00
Gwendal Roué
39a76ff929
Links to future SPI-hosted pages
2022-11-06 18:09:09 +01:00
Gwendal Roué
aef2d087ae
CHANGELOG
2022-11-06 17:50:40 +01:00
Gwendal Roué
0b12e89e62
DocC: AssociationAggregate
2022-11-06 17:18:27 +01:00
Gwendal Roué
0379947ab1
Rename DocC article about SQL
2022-11-06 16:57:27 +01:00
Gwendal Roué
2e5cf546c6
DocC: RowAdapter
2022-11-06 16:45:13 +01:00
Gwendal Roué
0c011b970b
Add missing experimental notices
2022-11-06 16:31:12 +01:00
Gwendal Roué
a08a86cc76
Update CONTRIBUTING.md
2022-11-06 16:24:34 +01:00
Gwendal Roué
29a21302a2
Generate documentation in ~/Sites/GRDB
2022-11-06 16:02:36 +01:00
Gwendal Roué
13c804d1cc
DocC
2022-11-06 16:02:36 +01:00
Gwendal Roué
811d287bd9
Row.withUnsafeData
2022-11-06 16:02:36 +01:00
Gwendal Roué
1818534513
DocC
2022-11-06 16:02:36 +01:00
Gwendal Roué
8d316dc969
Test insertAndFetch with IGNORE policy
2022-11-06 16:02:36 +01:00
Gwendal Roué
38e7e649c7
Upgrade GRDBPerformance dependencies
2022-10-29 17:10:16 +02:00
Gwendal Roué
3df9e8e5c1
Merge branch 'development'
2022-10-29 16:49:28 +02:00
Gwendal Roué
c98d918bf6
v6.2.0
2022-10-29 15:36:01 +02:00
Gwendal Roué
c197e2f520
Don't run unicode61 tokenizer categories tests before SQLite 3.25.0
2022-10-29 15:04:09 +02:00
Gwendal Roué
13b3f1d741
Github workflow: use Xcode 14.0.1
2022-10-29 14:35:54 +02:00
Gwendal Roué
ad011a0974
CHANGELOG
2022-10-29 14:21:33 +02:00
Gwendal Roué
a89dad2554
Fix Swiftlint warnings
2022-10-29 14:21:33 +02:00
Gwendal Roué
4f4553f4f0
Regression tests for tokenizer arguments quoting
2022-10-29 14:21:33 +02:00
Gwendal Roué
9b505bb34b
Fix quoting of FTS5 tokenizer arguments
...
Tokenizer arguments only need to be quoted ("foo" -> "'foo'") when we generate SQL for a tokenizer. They must not be quoted when we instantiate a tokenizer with the fts5_tokenizer.xCreate function.
This commit fixes tokenizer instantiation by not quoting arguments when we call the fts5_tokenizer.xCreate function.
Before this fix, the FTS5Tokenizer.tokenize(query:) method would return incorrect tokens.
2022-10-29 14:21:33 +02:00
Gwendal Roué
6c841bf96e
Merge pull request #1289 from idkclub/categories
...
Add support for passing in categories to the unicode61 tokenizer
2022-10-29 14:08:47 +02:00
Jon
76b05369ff
Add support for passing in categories to the unicode61 tokenizer
2022-10-21 16:21:07 -04:00
Gwendal Roué
e79b6a5622
Fix typo
2022-10-21 08:50:01 +02:00
Gwendal Roué
13e1f4d7c2
Merge branch 'development'
2022-10-20 14:08:36 +02:00
Gwendal Roué
8aaf1af9f0
v6.1.0
2022-10-20 13:23:37 +02:00
Gwendal Roué
3b10e1df41
CHANGELOG
2022-10-20 13:19:54 +02:00
Gwendal Roué
6caa27cb20
Merge pull request #1288 from jcavar/feature/strict-support
...
Add support for .strict table option in 3.37+
2022-10-20 13:00:07 +02:00
Gwendal Roué
6ca3bb051a
make smokeTest checks SQLCipher 3
...
It's better to quickly catch failures to support SQLCipher 3.
2022-10-20 08:49:48 +02:00
Gwendal Roué
901d010ab3
Restore the test that strict tables won't accept ill-typed values.
2022-10-20 08:46:49 +02:00
Gwendal Roué
3c4ff5b26e
Single test for strict tables
...
Also, skip the test for old SQLCipher version.
2022-10-20 08:46:49 +02:00
Gwendal Roué
2ade133b50
Move availability check below doc comment
2022-10-20 08:27:46 +02:00
Josip Cavar
c57e76be52
Add support for .strict table option in 3.37+
2022-10-19 15:55:46 +02:00
Gwendal Roué
9531a7f8fc
More specialization
2022-09-17 15:49:28 +02:00
Gwendal Roué
9e3eebf4c2
Merge pull request #1279 from daveverwer/add-spi-documentation
...
Added an external documentation link for the Swift Package Index
2022-09-17 12:46:35 +02:00
Gwendal Roué
1221cb703a
Update link to documentation
2022-09-17 12:45:55 +02:00
Dave Verwer
59b40de83e
Added a Swift Package Index manifest with an external documentation link.
2022-09-14 12:15:46 +01:00
Gwendal Roué
0ac435744a
Merge branch 'development'
2022-09-09 11:50:22 +02:00
Gwendal Roué
589e53b231
v6.0.0
2022-09-09 11:40:39 +02:00
Gwendal Roué
125f112fb7
CHANGELOG
2022-09-09 11:34:58 +02:00
Gwendal Roué
c6aa323cd8
Skip flaky test
2022-09-09 09:50:25 +02:00
Gwendal Roué
1c7b618a89
Parallelizable tests
2022-09-09 09:33:57 +02:00
Gwendal Roué
d3ad7acd59
No WALSnapshot on macOS and macOS Catalyst
...
Fix #1276
2022-09-09 08:16:55 +02:00
Gwendal Roué
82b4d90a82
Xcode 14 RC doesn't ship with the Swift 5.6 stdlib
...
https://forums.swift.org/t/xcode-14-rc-cannot-specialize-protocol-type/60171
2022-09-09 08:16:55 +02:00
Gwendal Roué
2a3318ef9a
ALTER TABLE DROP COLUMN is properly reported with SQLITE_ALTER_TABLE for SQLite 3.38+
2022-09-07 08:51:05 +02:00
Gwendal Roué
f2c46784a6
ArrayRowImpl is checked Sendable
2022-09-07 08:50:32 +02:00
Gwendal Roué
9340fdc7c2
DatabaseValue.Storage is checked Sendable
2022-09-07 08:02:34 +02:00
Gwendal Roué
b0f7493765
BREAKING: rename request methods that build a DatabasePromise
...
This creates an opportunity for future `request.filter { ... }` apis that look like standard ones. Why not `Player.filter { $0.score > 1000 }` eventually, perhaps with code generation?
2022-09-06 22:56:40 +02:00
Gwendal Roué
30234fde62
CHANGELOG
2022-09-06 08:54:29 +02:00
Gwendal Roué
fdbcb07452
Fix #1275
2022-09-06 08:25:21 +02:00
Gwendal Roué
dced16bdce
Update SQLiteCustom to v3.39.3
2022-09-05 20:43:51 +02:00
Gwendal Roué
849be02906
Remove useless Xcode requirements in documentation
...
GRDB 6 requires Xcode 14+, Swift concurrency is always available.
2022-09-05 20:32:50 +02:00
Gwendal Roué
b3f5b892a6
CHANGELOG
2022-09-05 08:46:05 +02:00
Gwendal Roué
65efc413fe
Fix for failing test for #1274
...
https://github.com/groue/GRDB.swift/discussions/1274
2022-09-05 08:43:43 +02:00
Gwendal Roué
f3b8b7221c
Failing test for #1274
...
https://github.com/groue/GRDB.swift/discussions/1274
2022-09-05 08:42:29 +02:00
Gwendal Roué
f04a02731d
Add defaultLocalization to GRDB package
...
This solves the "manifest property 'defaultLocalization' not set; it is required in the presence of localized resources" error
2022-09-04 14:09:35 +02:00
Gwendal Roué
6add38e3e5
BREAKING: Allow ValueObservation to perform different kinds of fetch
...
We're interested in allowing observations to build values based on snapshots
2022-09-04 12:06:17 +02:00
Gwendal Roué
202b3e5620
Encapsulate ValueObservation database accesses
...
Also, enhance Database.isolated(readOnly:) by not creating a savepoint if the database is already inside a transaction.
2022-09-04 10:11:22 +02:00
Gwendal Roué
49cce0aa8a
CHANGELOG
2022-08-29 14:22:04 +02:00
Gwendal Roué
ccf3486827
CHANGELOG
2022-08-29 14:21:01 +02:00
Gwendal Roué
cb93979a44
Update CONTRIBUTING.md
...
It needed to be updated for cross-platform targets
2022-08-28 14:52:31 +02:00
Gwendal Roué
628ac58535
Merge branch 'development'
2022-08-28 13:45:17 +02:00
Gwendal Roué
373f95a6cb
v6.0.0-beta.4
2022-08-28 13:44:35 +02:00
Gwendal Roué
f2859ff8bf
Use SQLITE_OPEN_EXRESCODE when available
2022-08-28 12:50:47 +02:00
Gwendal Roué
e2b412afc8
Merge branch 'dev/TableInfo' into development
2022-08-28 12:49:59 +02:00
Gwendal Roué
040e5d9d87
WITHOUT ROWID check: prefer PRAGMA table_list when available
...
This avoids the undesired errors described in #945 .
2022-08-28 12:28:39 +02:00
Gwendal Roué
189430c1fe
PRAGMA table_list
2022-08-28 12:28:39 +02:00
Gwendal Roué
3d77a8da86
Update the manual installation documentation
2022-08-28 09:59:52 +02:00
Gwendal Roué
c40256600a
Update playgrounds doc
2022-08-28 09:49:34 +02:00
Gwendal Roué
b617f432c0
Merge branch 'dev/cross-platform-targets' into development
2022-08-27 14:43:33 +02:00
Gwendal Roué
72ef13f4fb
CHANGELOG
2022-08-27 14:43:06 +02:00
Gwendal Roué
535f44c463
Update the GRDB6 migration guide
2022-08-27 14:42:57 +02:00
Gwendal Roué
4c10899a3c
Single Cross-Platform Target
2022-08-27 13:43:44 +02:00
Gwendal Roué
524ee1d098
Merge pull request #1271 from groue/dev/SQLite-3.39.2
...
Bump custom SQLite builds v3.39.2
2022-08-27 12:27:56 +02:00
Gwendal Roué
973b679baa
CHANGELOG
2022-08-27 12:27:14 +02:00
Gwendal Roué
0321c79c2d
Update SQLiteCustom to v3.39.2
2022-08-27 12:16:59 +02:00
Gwendal Roué
e82a03615f
Merge branch 'development'
2022-08-25 19:11:29 +02:00
Gwendal Roué
51c9071b3d
v6.0.0-beta.3
2022-08-25 19:11:20 +02:00
Gwendal Roué
91e5f838d3
Merge branch 'dev/GRDB6-singleton-record' into development
2022-08-25 19:10:09 +02:00
Gwendal Roué
d026232cbf
CHANGELOG
2022-08-25 19:09:51 +02:00
Gwendal Roué
c2e4aaf51d
Throw SQLITE_MISUSE in case of programmer error in the aroundXxx callbacks
...
While writing SingletonRecordTest.swift, I tried the solution below, in order to turn a failed update into an insert:
func aroundUpdate(_ db: Database, columns: Set<String>, update: () throws -> PersistenceSuccess) throws {
do {
_ = try update()
} catch {
insert(db)
}
}
But this can't work. This `insert(db)` is unable to provide the information we need in `update()`: the result of the eventual RETURNING clause, and the PersistenceSuccess that contains the persisted PersistenceContainer.
So we now detect two misuses: 1) not calling the action method, and 2) not rethrowing the error of the action method.
2022-08-25 19:05:27 +02:00
Gwendal Roué
05b81df614
Update the migration guide with the actions to perform on customized records
2022-08-25 19:05:27 +02:00
Gwendal Roué
3e4b04d4d1
Test the "Single-Row Tables" guide
2022-08-25 19:05:27 +02:00
Gwendal Roué
56cdaabd9c
Update the "Single-Row Tables" guide
2022-08-25 19:05:27 +02:00
Gwendal Roué
c65a19c50f
Merge pull request #1268 from groue/dev/issue-1267
...
Fix SQL generation of CHECK constraints.
2022-08-25 08:31:53 +02:00
Gwendal Roué
5247a1537c
CHANGELOG
2022-08-25 08:31:20 +02:00
Gwendal Roué
58f970701f
BREAKING: Fix failing test for #1267
...
The regression was probably due to a bad interaction between Implicitly Opened Existentials (SE-0352) and Opaque Parameter Declarations (SE-0341) which GRDB 6 now uses in a lot of places.
Considering the sample code below:
try db.create(table: ...) { t in
t.column(...).check { $0 != Column(...) }
}
- The `check` method accepts a closure that returns `any SQLExpressible` (the same as GRDB 5)
- The `!=` SQL comparison operator is `(some SQLSpecificExpressible, some SQLSpecificExpressible) -> SQLExpression`, when it was `(SQLSpecificExpressible, SQLSpecificExpressible) -> SQLExpression` in GRDB 5
The compiler has started preferring interpreting the != operator as Column's Equatable implementation, instead of the `!=` SQL comparison operator
We force the compiler to use the SQL comparison operator by removing the Equatable conformance from Column. It was introduced in a70b42c , as a support for a feature that has been removed since then.
This is a breaking change, but this also is an improvement. Now `column1 != column2` has a single meaning, and the library is less prone to similar regressions in the future.
2022-08-25 08:26:37 +02:00
Gwendal Roué
980f5247f0
Failing test for #1267
2022-08-25 08:12:32 +02:00
Gwendal Roué
d70032c483
Merge branch 'development'
2022-08-23 22:17:06 +02:00
Gwendal Roué
14321e411c
v6.0.0-beta.2
2022-08-23 22:16:37 +02:00
Gwendal Roué
d3d2ad1b91
Merge branch 'dev/upsert-documentation' into development
2022-08-23 22:10:33 +02:00
Gwendal Roué
55f3c2f510
CHANGELOG
2022-08-23 22:05:23 +02:00
Gwendal Roué
ffa183821c
UPSERT documentation
2022-08-23 22:05:23 +02:00
Gwendal Roué
327911d057
Upsert: add support for conflict target and assignments
2022-08-23 20:02:17 +02:00
Gwendal Roué
c6657b7063
ColumnAssignment that does nothing
...
A cool upsert feature is to overwrite an existing value in case of conflict, but another cool upsert feature is to NOT overwrite an existing value. This commit makes it possible to create a ColumnAssignement that does nothing.
2022-08-23 20:02:17 +02:00
Gwendal Roué
2a5626efea
Replace if let x = x with if let x
2022-08-22 20:40:00 +02:00
Gwendal Roué
6bf346ccf5
Merge branch 'development'
2022-08-21 21:57:30 +02:00
Gwendal Roué
1036dd4d6e
v6.0.0-beta
2022-08-21 21:56:51 +02:00
Gwendal Roué
48f14c7a8c
Merge pull request #1221 from groue/GRDB6/development
...
GRDB 6
2022-08-21 21:44:19 +02:00
Gwendal Roué
2789444acd
Enable UPSERT and RETURNING with SQLCipher
2022-08-21 21:22:34 +02:00
Gwendal Roué
8f8b273424
CHANGELOG organization
2022-08-21 21:22:34 +02:00
Gwendal Roué
37f0a0bb9a
BREAKING: throwing EncodableRecord.encode(to:)
2022-08-21 21:22:34 +02:00
Gwendal Roué
d2dd18b3e5
Remove note and warning icons
...
Those are handled by Github now:
https://github.com/community/community/discussions/16925
2022-08-21 21:22:34 +02:00
Gwendal Roué
422e0ae85a
BREAKING: Handles both commits and rollbacks
...
Replace afterNextTransactionCommit(_:) with afterNextTransaction(onCommit:onRollback:)
2022-08-21 21:22:34 +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é
0ed9367b26
BREAKING: DatabaseCursor no longer exposes its prepared statement
2022-08-21 21:22:34 +02:00
Gwendal Roué
eda403bd31
StatementArguments is Hashable
2022-08-21 21:22:34 +02:00
Gwendal Roué
c553d2d69e
Documentation
2022-08-21 21:22:34 +02:00
Gwendal Roué
5243db7fbc
Spelling
2022-08-21 21:22:34 +02:00
Gwendal Roué
4ced8c78e7
Less "iff" (some people think this is a typo)
...
iff = if and only if
2022-08-21 21:22:34 +02:00
Gwendal Roué
c38d903f4d
Make RequestProtocols.swift easier to read
2022-08-21 21:22:34 +02:00
Gwendal Roué
1239c14e6d
Explicit initializers for HasOneThrough and HasManyThrough associations
2022-08-21 21:22:34 +02:00
Gwendal Roué
5004994344
TODO
2022-08-21 21:22:34 +02:00
Gwendal Roué
c86581dedc
Make SQLQueryGenerator.swift easier to read
2022-08-21 21:22:34 +02:00
Gwendal Roué
546bba17fb
Make LockedBox.swift easier to read
2022-08-21 21:22:34 +02:00
Gwendal Roué
27b65c9a80
BREAKING: Starting DatabaseRegionObservation returns a cancellable
2022-08-21 21:22:34 +02:00
Gwendal Roué
1bfba945d3
Fix invalid Swift syntax in documentation
2022-08-21 21:22:34 +02:00
Gwendal Roué
4c73456f86
Make SQL.swift easier to read
2022-08-21 21:22:34 +02:00
Gwendal Roué
84940af3dc
Cleanup statement separator character set
2022-08-21 21:22:34 +02:00
Gwendal Roué
e0786537db
BREAKING: replace Int32 with CInt everywhere it is possible
2022-08-21 21:22:34 +02:00
Gwendal Roué
496c2ae359
Make Database+Statements.swift easier to read
2022-08-21 21:22:34 +02:00
Gwendal Roué
5b7c58faf4
Make Database+Schema.swift easier to read
2022-08-21 21:22:34 +02:00
Gwendal Roué
0658808028
Make Database.swift easier to read
...
Enhance documentation, and rename some types and variables.
2022-08-21 21:22:34 +02:00
Gwendal Roué
fb6ea57d74
Don’t setup database observation in read-only connections.
...
Observation of read-only connections has turned useless since read-only transactions are no longer reported to TransactionObserver, in #1213
2022-08-21 21:22:34 +02:00
Gwendal Roué
0879311646
Make TransactionObserver.swift easier to read
...
Add some documentation, and rename some types and variables.
2022-08-21 21:22:34 +02:00
Gwendal Roué
2f2cccacf9
Remove UI tests of demo apps, since GRDBQuery is tested on its own
...
(Don't test the framework)
2022-08-21 21:22:34 +02:00
Gwendal Roué
e5d10ed8c1
fix async AppDatabaseTests tests
2022-08-21 21:22:34 +02:00
Gwendal Roué
070ee2c796
Makefile: disable -warn-concurrency and -enable-actor-data-race-checks
...
This creates issues with Xcode 14 beta 4
2022-08-21 21:22:34 +02:00
Gwendal Roué
9a9406a69d
SE-0353: Constrained Existential Types
...
https://github.com/apple/swift-evolution/blob/main/proposals/0353-constrained-existential-types.md
2022-08-21 21:22:34 +02:00
Gwendal Roué
b2eafd4a13
SE-0361: Extensions on bound generic types
...
https://github.com/apple/swift-evolution/blob/main/proposals/0361-bound-generic-extensions.md
2022-08-21 21:22:34 +02:00
Gwendal Roué
36892fee55
BREAKING: Bump minimum SQLite version to 3.19.3
2022-08-21 21:22:34 +02:00
Gwendal Roué
49a66e197b
Foster some FetchRequest<...> in the documentation
2022-08-21 21:22:34 +02:00
Gwendal Roué
80ec31f588
BREAKING: remove DerivableRequest.limit(_:offset:)
2022-08-21 21:22:34 +02:00
Gwendal Roué
c26ed6c280
NEW: throw decoding errors
2022-08-21 21:22:34 +02:00
Gwendal Roué
eb98541923
Documentation
2022-08-21 21:22:34 +02:00
Gwendal Roué
895964de16
BREAKING: Throwing FetchableRecord.init(row:)
2022-08-21 21:22:34 +02:00
Gwendal Roué
927fc21f00
NEW: ValueObservation.map accepts a throwing closure
...
This will allow us to call a throwing FetchableRecord.init(row:) from this operator
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é
3000cd3c7f
TODO
2022-08-21 21:22:34 +02:00
Gwendal Roué
2011776cbe
Remove misleading comments
2022-08-21 21:22:34 +02:00
Gwendal Roué
33a039717c
Refer to UIApplication notifications by their names
...
It looks like FB9801372 was fixed
2022-08-21 21:22:34 +02:00
Gwendal Roué
a20d543bcf
Swiftlint: disable the for_where rule
2022-08-21 21:22:34 +02:00
Gwendal Roué
55445dcc7c
NEW: RangeReplaceableCollection.append(contentsOf: cursor)
2022-08-21 21:22:34 +02:00
Gwendal Roué
34a4fa6444
TODO
2022-08-21 21:22:34 +02:00
Gwendal Roué
dba7f1b2dc
BREAKING: turn Cursor.isEmpty into a property
...
https://github.com/apple/swift-evolution/blob/main/proposals/0310-effectful-readonly-properties.md
2022-08-21 21:22:34 +02:00
Gwendal Roué
180c8975ac
Stop using #filePath
2022-08-21 21:22:34 +02:00
Gwendal Roué
11a6d53d8a
SE-0326: closure result type inference
...
https://github.com/apple/swift-evolution/blob/main/proposals/0326-extending-multi-statement-closure-inference.md
2022-08-21 21:22:34 +02:00
Gwendal Roué
42987dd849
Cleanup filter(rawKeys:)
2022-08-21 21:22:34 +02:00
Gwendal Roué
7ffc332327
BREAKING: replace selectID() with selectPrimaryKey(as:)
...
Since Optional is a database value like others, selectID would be a request of optionals for records with an optional ID type:
struct Player: Identifiable, MutablePersistableRecord {
var id: Int64?
}
Player.selectID() // QueryInterface<Int64?>
This is not good, because primary keys are not null. And those requests would fetch impractical types such as [Int64?], Set<Int64?>, Int64??.
Instead, we introduce selectPrimaryKey(as:), which allows the user to provide the desired type.
Player.selectPrimaryKey(as: Int64.self) // QueryInterface<Int64>
2022-08-21 21:22:34 +02:00
Gwendal Roué
a9fcf1b9c1
SE-0335, SE-0341, SE-0346, SE-0352, SE-0358: some, any, primary associated types
2022-08-21 21:22:34 +02:00
Gwendal Roué
c0c6b34869
SE-0346: primary associated types
2022-08-21 21:22:34 +02:00
Gwendal Roué
dd55175978
SE-0345: if let x { }
...
https://github.com/apple/swift-evolution/blob/main/proposals/0345-if-let-shorthand.md
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é
458e1e2675
BREAKING: throwing DatabaseQueue() initializer
...
As a consequence, FTS3.tokenize(_:) is a throwing method as well.
2022-08-21 21:22:33 +02:00
Gwendal Roué
6f0d45eedb
BREAKING: throwing DatabaseWriter.barrierWriteWithoutTransaction
...
It used to be rethrowing, but it was then unable to deal with closed databases.
The async version is modified accordingly: it accepts a Result<Database, Error>, instead of a raw Database.
DatabaseMigrator.asyncMigrate is impacted as well: it accepts a Result<Database, Error>, instead of a (Database, Error?) tuple.
2022-08-21 19:21:57 +02:00
Gwendal Roué
fe225fe452
BREAKING: Remove deprecated methods
2022-08-21 19:21:57 +02:00
Gwendal Roué
78b9c543a3
Swift 5.7 required: SPM testing convenience
...
Make it possible to test SQLITE_ENABLE_FTS5 and SQLITE_ENABLE_PREUPDATE_HOOK with `make test_SPM`.
This is very handy because Xcode 14 beta 3 has difficulties testing GRDBCustom.
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é
20dcab75c7
Swift 5.7 required: SPM resources
2022-08-21 19:21:57 +02:00
Gwendal Roué
23cbf13af0
Swift 5.7 required: Availability checks
2022-08-21 19:21:57 +02:00
Gwendal Roué
6da7d47394
Swift 5.7 required: Remove compiler checks
2022-08-21 19:21:57 +02:00
Gwendal Roué
fcb037bdf0
Swift 5.7 required: Bump deployment targets
2022-08-21 19:21:57 +02:00
Gwendal Roué
df0ae43c5f
Swift 5.7 required: Sendable
2022-08-21 19:21:26 +02:00
Gwendal Roué
fc59b45493
Swift 5.7 required: Package.swift
2022-08-21 19:21:26 +02:00
Gwendal Roué
a22113faa5
Swift 5.7 required: podspec
2022-08-21 19:21:26 +02:00
Gwendal Roué
d1a32d1950
Swift 5.7 required: Makefile
2022-08-21 19:21:26 +02:00
Gwendal Roué
e150ca6864
Migration guide to GRDB 6
2022-08-21 19:21:26 +02:00
Gwendal Roué
9d7e27ced1
Add support for index origin
2022-07-25 08:07:27 +02:00
Gwendal Roué
df7ba20ff2
Test columnInfos(in:) for views
2022-07-24 15:17:20 +02:00
Gwendal Roué
8dc0168841
Database.sqliteConnection setter is private
2022-07-24 15:14:35 +02:00
Gwendal Roué
23f4254ae3
Merge branch 'development'
2022-07-09 18:28:22 +02:00
Gwendal Roué
2df6a17c1c
v5.26.0
2022-07-09 18:27:57 +02:00
Gwendal Roué
5aeee0e429
CHANGELOG
2022-07-09 17:17:27 +02:00
Gwendal Roué
3a61a8a0e0
Merge pull request #1253 from george-signal/george-signal/optional-memory-management
...
Make memory management optional.
2022-07-09 17:14:11 +02:00
Gwendal Roué
e0766449f1
Fix compilation error on iOS Xcode 13.3.1.app, macOS 12, Swift 5.6
2022-07-09 16:14:37 +02:00
Gwendal Roué
c1e752132c
Document why DatabasePool.releaseMemory() needs a barrier
2022-07-09 14:28:09 +02:00
Gwendal Roué
6ab90a03c4
Document releaseMemoryEventually and automaticMemoryManagement
2022-07-09 14:00:00 +02:00
Gwendal Roué
23fa42a3e4
Make Database.releaseMemory() public
...
This allows us to document how to release memory asynchronously with a DatabaseQueue (in the next commit)
2022-07-09 13:55:39 +02:00
Gwendal Roué
07eaeee123
automaticMemoryManagement tests check for actual connection closing
2022-07-09 13:39:39 +02:00
Gwendal Roué
0bfb4de02d
Enhance DatabaseQueue automatic memory management
...
We have async methods, now: no need to use a global dispatch queue.
2022-07-09 13:39:11 +02:00
Gwendal Roué
d72b7109ad
DatabasePool automatic memory management no longer uses any reader barrier
...
This fixes the failing `testDatabasePoolDoesNotPreventConcurrentReadsOnPressureEvent` test
2022-07-09 13:39:11 +02:00
Gwendal Roué
e1a63a4c05
Introduce DatabasePool.releaseMemoryEventually
2022-07-09 13:33:01 +02:00
Gwendal Roué
caab403282
Failing test for concurrent read on memory warning
2022-07-09 13:31:15 +02:00
George Nachman
bbe94a9607
Make memory management optional.
...
Memory management may not be desirable for all
users of GRDB. `DatabasePool.releaseMemory`
creates a barrier which may cause normally fast
readers to block for a long time. If this is not a
desirable tradeoff, the new
`automaticMemoryManagement` flag in
`Configuration` allows you to disable this feature
of GRDB.
2022-07-05 15:27:55 -07:00
Gwendal Roué
84bee1977e
Merge pull request #1248 from groue/dev/WALSnapshot
...
Avoid double notification of the initial value for ValueObservation on DatabasePool
2022-06-30 20:35:52 +02:00
Gwendal Roué
0aa561e61c
[skip-ci] CHANGELOG
2022-06-30 19:32:35 +02:00
Gwendal Roué
b1b51c01f8
[skip-ci] Xcode drives me crazy
2022-06-30 19:32:24 +02:00
Gwendal Roué
cc5196757d
Fix for Xcode 12.4
2022-06-30 19:22:23 +02:00
Gwendal Roué
0e9766373d
Merge pull request #1246 from sameer4/patch-1
...
Update AssociationsBasics.md
2022-06-30 10:43:50 +02:00
Sameer
aacaa433c9
Update AssociationsBasics.md
...
Fixed a typo
2022-06-30 12:51:53 +05:00
Gwendal Roué
44ec3535c2
Documentation
2022-06-24 16:48:38 +02:00
Gwendal Roué
38c0d68db7
WALSnapshot
...
SQLITE_ENABLE_SNAPSHOT is available from Xcode 14 :-)
2022-06-24 16:48:38 +02:00
Gwendal Roué
f3cc4add9f
Merge pull request #1240 from danielinoa/patch-1
...
Fix inline documentation typo in Row
2022-06-12 14:47:16 +02:00
Daniel Inoa
432670e13a
Fix documentation typo in Row
2022-06-12 05:14:28 -07:00
Gwendal Roué
3ba13b0af6
Merge pull request #1239 from groue/dependabot/github_actions/actions/checkout-3
...
Bump actions/checkout from 2 to 3
2022-06-12 08:32:19 +02:00
dependabot[bot]
1a6228e2c5
Bump actions/checkout from 2 to 3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-06-11 15:37:15 +00:00
Gwendal Roué
e02f2c8aba
Merge branch 'development'
2022-06-11 17:35:55 +02:00
Gwendal Roué
c0e9c8746d
v5.25.0
2022-06-11 17:35:39 +02:00
Gwendal Roué
d1cba5e5c8
TODO
2022-06-11 17:35:39 +02:00
Gwendal Roué
bf824bf68c
Makefile: support for Xcode 14.0
2022-06-11 14:59:02 +02:00
Gwendal Roué
5e5b44aa7f
Fix Swiftlint build phase
2022-06-11 14:59:02 +02:00
Gwendal Roué
806919b5be
Merge pull request #1235 from groue/dev/raise-default-qos
...
Raise default Quality of Service to .userInitiated
2022-06-08 23:35:48 +02:00
Gwendal Roué
a289aecc3c
CHANGELOG
2022-06-08 08:13:12 +02:00
Gwendal Roué
3f7adec072
Default qos is .userInitiated
...
Addresses #1234
2022-06-08 08:12:47 +02:00
Gwendal Roué
c9f3a1e17f
CHANGELOG
2022-06-08 08:12:30 +02:00
Gwendal Roué
cf2a79e12f
Merge pull request #1228 from turrisxyz/Dependabot-GitHub-Actions
...
chore: Included githubactions in the dependabot config
2022-06-08 08:09:37 +02:00
Gwendal Roué
a0212eb129
[skip ci] Early mention of the async accesses
2022-06-07 19:32:39 +02:00
Gwendal Roué
d5470b7278
Merge pull request #1233 from GetToSet/ethanwong/fix-xcode-14-warning
...
Fix warnings of redundant conformance constraint on Xcode 14.
2022-06-07 09:33:44 +02:00
Ethan Wong
cd6960f5e9
Fix warnings of redundant conformance constraint on Xcode 14.
2022-06-07 11:35:37 +08:00
naveen
f72859b5b2
chore: Included githubactions in the dependabot config
...
This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure.
Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot
GitHub actions up to date https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com >
2022-06-01 01:30:32 +00:00
Gwendal Roué
b947065d25
Merge pull request #1226 from turrisxyz/Pinned-Dependencies-GitHub
...
chore: Set permissions for GitHub actions
2022-05-31 08:12:22 +02:00
naveen
11f95806c4
chore: Set permissions for GitHub actions
...
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.
- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ )
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com >
2022-05-31 00:30:47 +00:00
Gwendal Roué
2ac5c77353
Merge branch 'development'
2022-05-26 13:32:23 +02:00
Gwendal Roué
2a849d380c
v5.24.1
2022-05-26 13:31:48 +02:00
Gwendal Roué
fd31632203
Bump GRDBPerformance dependencies
2022-05-26 13:31:48 +02:00
Gwendal Roué
4a98a53dad
CHANGELOG
2022-05-26 12:09:42 +02:00
Gwendal Roué
952ee0a137
Rename Pool.async to asyncGet
2022-05-25 17:25:43 +02:00
Gwendal Roué
ee92db9d6f
Pool has a QoS
2022-05-25 17:21:50 +02:00
Gwendal Roué
de4266499c
Configuration.readQoS
2022-05-25 17:19:41 +02:00
Gwendal Roué
4b7a9bbe7b
CI: raise timeouts
2022-05-25 09:27:01 +02:00
Gwendal Roué
184d5aa4af
CI: raise timeouts
2022-05-25 09:01:39 +02:00
Gwendal Roué
6c48e492d1
CI: raise timeouts
2022-05-24 21:58:46 +02:00
Gwendal Roué
26fedd2702
CI: raise timeouts
2022-05-24 20:47:34 +02:00
Gwendal Roué
06216fd875
Merge pull request #1225 from groue/dev/thread-limit
...
Prevent heavy DatabasePool concurrent reads from creating too many threads
2022-05-24 20:46:54 +02:00
Gwendal Roué
42050e5e28
CHANGELOG
2022-05-24 19:54:51 +02:00
Gwendal Roué
9ed309b470
Fix failing tests for number of threads created by DatabasePool
2022-05-24 19:31:22 +02:00
Gwendal Roué
00d1a80b31
Failing tests for number of threads created by DatabasePool
2022-05-24 19:31:09 +02:00
Gwendal Roué
aaf3efe6df
Merge pull request #1163 from groue/dev/ci
...
Tests with GitHub actions
2022-05-24 08:18:57 +02:00
Gwendal Roué
d8f2989542
Split SQLCipher clear/encrypted tests
2022-05-23 14:20:26 +02:00
Gwendal Roué
28543109ea
Rename CI jobs
2022-05-23 08:18:09 +02:00
Gwendal Roué
63c2bd0876
Raise SQLCipher CI timeouts
2022-05-23 08:17:12 +02:00
Gwendal Roué
59bd10b1b5
Raise all CI timeouts
2022-05-22 18:05:13 +02:00
Gwendal Roué
758f561fbf
Raise timeout threshold for SQLCipher CI tests
2022-05-22 17:31:45 +02:00
Gwendal Roué
40b0e98eb5
Delete obsolete Travis setup files
2022-05-22 16:47:21 +02:00
Gwendal Roué
2ec0a4c69d
More tests
2022-05-22 16:47:20 +02:00
Gwendal Roué
ca43f1e803
Test macOS, All Xcodes and Swifts
2022-05-18 16:40:39 +02:00
Gwendal Roué
0a7e7d1e5c
Makefile: support for Xcode 13.4
2022-05-18 13:48:24 +02:00
Gwendal Roué
1260980150
Remove return keywords
2022-05-18 08:14:19 +02:00
Gwendal Roué
f0cfde682e
Update outdated documentation
2022-05-18 08:12:00 +02:00
Gwendal Roué
096a3b2f0f
Merge pull request #1217 from GetToSet/development
...
Update doc issue on TableRequest.filter(keys:).
2022-05-16 11:03:17 +02:00
Ethan Wong
f313a43ef9
Update doc issue on TableRequest.filter(keys:).
2022-05-07 13:32:31 +08:00
Gwendal Roué
fead2ea634
Merge branch 'development'
2022-05-01 11:43:49 +02:00
Gwendal Roué
5b254eec16
v5.24.0
2022-05-01 11:43:14 +02:00
Gwendal Roué
3632edb238
Mention SwiftUI support in the README
2022-05-01 11:36:26 +02:00
Gwendal Roué
752415b5fb
Merge pull request #1213 from groue/dev/fix-1209
...
Fix crash when the number of active ValueObservations is high
2022-05-01 08:25:56 +02:00
Gwendal Roué
f17a786165
CHANGELOG
2022-04-30 16:07:04 +02:00
Gwendal Roué
b89ce00361
Document that read-only transactions are not notified
2022-04-30 16:06:59 +02:00
Gwendal Roué
c5eba4741d
Test that read-only transactions are not notified
2022-04-30 15:42:57 +02:00
Gwendal Roué
fb18a3938f
Database.isolated(readOnly: true) avoids triggering database observation
...
Fix failing test for #1209
2022-04-30 15:27:20 +02:00
Gwendal Roué
5082207bb0
Don't notify read-only transactions
2022-04-30 15:27:20 +02:00
Gwendal Roué
06b5367053
Default transaction kind is .deferred in read-only connections
...
This applies to both connections open in read-only mode, and pragma query_only.
2022-04-30 14:29:31 +02:00
Gwendal Roué
819ee588c9
Failing test for #1209
2022-04-30 14:26:04 +02:00
Gwendal Roué
1b3f1ed393
Fix typo
2022-04-30 13:26:25 +02:00
Gwendal Roué
f0fe7e86ca
Merge pull request #1212 from groue/MartinP7r-patch-1
...
Fix apple docs links
2022-04-29 12:18:03 +02:00
Martin Pfundmair
dd5ce280b5
Fix apple docs links
2022-04-29 16:10:03 +09:00
Matt Gallagher
744aa825a3
Merge pull request #1203 from EvanHahn/fix-changelog-links
...
Fix changelog links
2022-04-20 12:25:10 +10:00
Evan Hahn
24f3de9dfa
Fix changelog links
...
This change:
1. Makes all links use HTTPS (there were a few that used insecure HTTP)
2. Corrects a few links, which previously went to the wrong place
It was easy to find HTTP links—a simple search. I wrote a silly script,
to be run in the browser console, to find the rest:
```js
(() => {
for (const a of document.getElementsByTagName("a")) {
if (!/^#\d+$/.test(a.innerText)) {
continue;
}
const id = a.innerText.slice(1);
const expectedPullHref = `https://github.com/groue/GRDB.swift/pull/${id} `;
const expectedIssueHref = `https://github.com/groue/GRDB.swift/issues/${id} `;
if (a.href !== expectedPullHref && a.href !== expectedIssueHref) {
console.error(`"${a.innerText}" has an invalid href, ${a.href}`);
}
}
})();
```
Hope this helps!
2022-04-19 18:30:53 -05:00
Gwendal Roué
4472d3a60e
Merge branch 'development'
2022-04-16 10:10:05 +02:00
Gwendal Roué
dc03adb4e2
v5.23.0
2022-04-16 10:09:45 +02:00
Gwendal Roué
dea9bedacb
Merge pull request #1200 from groue/dev/require-swift-5.6-for-concurrency
...
Require Swift 5.6 Compiler for Concurrency Support
2022-04-14 07:11:17 +02:00
Gwendal Roué
83d243853b
CHANGELOG
2022-04-13 23:21:38 +02:00
Gwendal Roué
209192d3a5
Require Swift 5.6 Compiler for Concurrency Support
2022-04-13 23:07:33 +02:00
Gwendal Roué
15c06e0374
Merge branch 'development'
2022-04-02 14:56:09 +02:00
Gwendal Roué
0324f592dc
v5.22.2
2022-04-02 14:55:54 +02:00
Gwendal Roué
051787b17f
Merge pull request #1196 from layoutSubviews/development
...
Fix a crash when an observation is quickly cancelled
2022-04-02 14:50:38 +02:00
Gwendal Roué
feebc07101
Documentation
2022-04-02 13:21:26 +02:00
Renaud Lienhart
80c15c6ef6
Fix a crash when an observation is quickly cancelled
2022-03-31 10:55:00 +11:00
Gwendal Roué
9014b3ebd0
Fix #1192
2022-03-26 14:48:27 +01:00
Gwendal Roué
bec58a32d4
And fix typo...
2022-03-26 12:54:00 +01:00
Gwendal Roué
b66374670c
CHANGELOG: add 5.22.1 in the list of releases
2022-03-26 12:53:11 +01:00
Gwendal Roué
f3992a034d
Merge branch 'development'
2022-03-26 11:52:33 +01:00
Gwendal Roué
8b120fa9b6
v5.22.1
2022-03-26 11:52:17 +01:00
Gwendal Roué
8b58ec4cee
Merge branch 'dev/issue1194' into development
2022-03-26 11:46:03 +01:00
Gwendal Roué
9b7b603a69
Documentation
2022-03-26 11:44:33 +01:00
Gwendal Roué
a3a26bf88f
Fix #1194
2022-03-26 11:43:44 +01:00
Gwendal Roué
770484b78d
Failing test for #1194
2022-03-26 11:33:10 +01:00
Gwendal Roué
fafa74c246
Fix ValueObservation.publisher documentation
2022-03-22 19:24:06 +01:00
Gwendal Roué
62450b5817
Bump performance comparison dependencies
2022-03-22 18:00:21 +01:00
Gwendal Roué
e9b8df68ee
Merge branch 'development'
2022-03-22 17:38:18 +01:00
Gwendal Roué
9fa831b6bb
v5.22.0
2022-03-22 16:41:40 +01:00
Gwendal Roué
43e1871005
Fix for Xcode 12.4
2022-03-22 13:46:09 +01:00
Gwendal Roué
8a6e784428
Fix for Xcode 12.5.1
...
Without this change, the compiler would crash with Abort trap: 6
2022-03-22 09:26:12 +01:00
Gwendal Roué
727ca68b98
CHANGELOG
2022-03-22 08:36:24 +01:00
Gwendal Roué
fb3e08aba8
Merge pull request #1186 from benrb/databaseerror-message
...
DatabaseError provide error message as localizedFailureReason
2022-03-22 08:26:14 +01:00
Ben Barnett
1c614e8de6
Test localizedFailureReason is not nil
...
-localizedFailureReason can be nil in some cases, but not in the one we are testing here
2022-03-20 08:23:35 +00:00
Ben Barnett
3f0a8e6730
Provide error message as a failure reason
2022-03-20 08:07:39 +00:00
Gwendal Roué
6916a8feca
#1183 cleanup
2022-03-18 03:36:20 +01:00
Gwendal Roué
e08dfdb0bf
Merge pull request #1183 from groue/dev/strong-observation
...
Starting a ValueObservation keeps a strong reference on the database connection.
2022-03-17 19:17:03 +01: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é
55dea6f9d2
Makefile: support for Xcode 13.3
2022-03-17 18:44:30 +01:00
Gwendal Roué
cdb08988f4
CHANGELOG
2022-03-17 18:44:30 +01:00
Gwendal Roué
881bbd3f0d
Update documentation
2022-03-17 18:44:30 +01:00
Gwendal Roué
6ab3fea8fb
Refactor ValueObservation
2022-03-17 18:44:30 +01:00
Gwendal Roué
287ceb8b07
Documentation & cleanup
2022-03-17 18:44:30 +01:00
Gwendal Roué
4eefb9afbe
Merge pull request #1184 from GetToSet/ethanwong/update-row-adapter-doc
...
Update RowAdapter doc to cover all concrete adapters.
2022-03-17 18:05:09 +01:00
Ethan Wong
4ea04ec978
Update RowAdapter doc to cover all concrete adapters.
2022-03-18 00:59:16 +08:00
Gwendal Roué
c30b49117b
If a scope is found, there is no point searching for prefetched rows
2022-03-04 12:04:02 +01:00
Gwendal Roué
ec975819b7
Fix for container.decodeNil(forKey:) in the context of including(all:)
2022-03-04 11:55:53 +01:00
Gwendal Roué
b974dfa9a7
Use fetchSet when available
2022-03-04 11:40:42 +01:00
Gwendal Roué
e19f21be99
TODO
2022-03-04 10:28:23 +01:00
Gwendal Roué
9b0e41ad58
Details about date formats
2022-02-13 12:27:27 +01:00
Gwendal Roué
d40474d2b7
Merge branch 'development'
2022-02-06 12:14:25 +01:00
Gwendal Roué
685074932e
v5.21.0
2022-02-06 12:14:05 +01:00
Gwendal Roué
f1a23bacc0
Extend the thank you notice
2022-02-06 12:10:35 +01:00
Gwendal Roué
fbef103f01
CHANGELOG
2022-02-06 12:09:27 +01:00
Gwendal Roué
fc9f0bcad1
Wording
2022-02-06 10:20:06 +01:00
Gwendal Roué
1929e96d11
Merge pull request #1165 from BeehiveInnovations/development
...
Add dynamic library to products to support dynamic linking
2022-02-06 10:13:31 +01:00
Gwendal Roué
9d4eb8a6dd
test_install_SPM_Dynamic_Project: use a destination
...
Otherwise `make test_install_SPM_Dynamic_Project` uses a default destination, which CAN be the current mac, and thus require code signing:
% make test_install_SPM_Dynamic_Project
...
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], ... }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
...
❌ error: Signing for "ios-dynamic" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'ios-dynamic' from project 'ios-dynamic')
** BUILD FAILED **
2022-02-06 10:00:58 +01:00
Fahad
3914a9ec21
Updated Makefile. Updated code-signing team
2022-02-06 01:25:34 +04:00
Fahad
29bacc138c
Replaced test project with iOS project
2022-02-06 01:14:19 +04:00
Beehive Innovations and Gwendal Roué
ba866359b2
Update README.md
...
Co-authored-by: Gwendal Roué <gr@pierlis.com >
2022-02-03 23:11:54 +04:00
Beehive Innovations and Gwendal Roué
ffced55d3c
Update README.md
...
Co-authored-by: Gwendal Roué <gr@pierlis.com >
2022-02-03 22:52:10 +04:00
Beehive Innovations
74caa96dcb
Undo and use automatic
...
More clarity on this now - helps compile optimize and skip producing a `.a` static library entirely.
2022-02-03 22:13:12 +04:00
Beehive Innovations
f6bea21e80
The first target should explicitly say static
...
Otherwise the behavior is undefined since omitting the type may at some point in time cause Xcode to pull it in as dynamic (when they fix their dependency resolution).
2022-02-03 21:44:06 +04:00
Fahad
27f6125099
Dynamic library test added
2022-02-03 13:36:52 +04:00
Beehive Innovations
70ea2027e4
Renamed dynamic library name
...
In line with naming standard used by other libraries
2022-02-03 13:11:24 +04:00
Beehive Innovations
e28658c574
Updated SPM installation instructions
...
Added note about static / dynamic
2022-02-03 13:09:52 +04:00
fahad@guidedways.com
c184b76849
Add dynamic library to products to allows dynamic linking
2022-02-03 09:25:42 +04:00
Gwendal Roué
d23d74f65f
Merge pull request #1164 from groue/dev/migrator-is-not-concurrent
...
Drop async apis from DatabaseMigrator
2022-02-01 18:17:02 +01:00
Gwendal Roué
984a5b4c4c
CHANGELOG
2022-02-01 16:55:05 +01:00
Gwendal Roué
8e84beee36
Fix Swift 5.6 warnings
2022-02-01 10:08:24 +01:00
Gwendal Roué
95ce4a3f8a
Drop async apis from DatabaseMigrator
...
This is because DatabaseMigrator can't be Sendable as long as it runs migrations that embed non-@Sendable closures.
2022-02-01 09:53:20 +01:00
Gwendal Roué
98ca653c6a
Merge branch 'development'
2022-02-01 09:07:15 +01:00
Gwendal Roué
e5a8e130d7
v5.20.0
2022-02-01 07:44:09 +01:00
Gwendal Roué
72e8dd2816
Cleanup
2022-01-31 20:20:02 +01:00
Gwendal Roué
b5338650db
Bump performance comparison dependencies
2022-01-31 19:23:55 +01:00
Gwendal Roué
75f72472ff
Cleanup
2022-01-31 08:37:57 +01:00
Gwendal Roué
09f7d4d952
Complete #1161
2022-01-30 15:27:11 +01:00
Gwendal Roué
c1c3cf6605
Merge pull request #1162 from groue/dev/fix-truncate-optimization
...
Fix truncate optimization handling
2022-01-30 15:26:14 +01:00
Gwendal Roué
fc7f24ef6e
Test case insensitivity of truncation optimization prevention
2022-01-30 14:57:37 +01:00
Gwendal Roué
3d0b34590f
Fix typo
2022-01-30 14:49:31 +01:00
Gwendal Roué
2d6c2873e0
CHANGELOG
2022-01-30 14:42:22 +01:00
Gwendal Roué
4e65425c00
Cleanup
2022-01-30 14:41:29 +01:00
Gwendal Roué
b82f92f726
Test for cursor next() followed by forEach()
2022-01-30 14:33:22 +01:00
Gwendal Roué
b8c0e9d2c2
Fix failing test for cached statement which does not prevent the truncate optimization
2022-01-30 14:24:28 +01:00
Gwendal Roué
b2df255306
Failing test for cached statement which does not prevent the truncate optimization
2022-01-30 14:12:46 +01:00
Gwendal Roué
c60b8cfc53
Refactor prevention of truncate optimization
...
We now always use the same authorizer, which is always ready to prevent truncate optimization depending on the current transaction observers.
2022-01-30 14:07:43 +01:00
Gwendal Roué
9dc6fbd7f9
Fix #1159
2022-01-30 12:27:19 +01:00
Gwendal Roué
9a4e1f7806
Merge pull request #1161 from groue/dev/write-target-queue
...
Target DispatchQueue for non-read-only database connections
2022-01-30 12:07:25 +01:00
Gwendal Roué
5dde1409ad
CHANGELOG
2022-01-29 17:54:33 +01:00
Gwendal Roué
936fd3ed5f
Test that DatabaseMigrator.eraseDatabaseOnSchemaChange does not deadlock on Configuration.writeTargetQueue
2022-01-29 17:47:30 +01:00
Gwendal Roué
ed4471c5b9
Configuration.writeTargetQueue
2022-01-29 17:45:21 +01:00
Gwendal Roué
dd025a14e4
Merge pull request #1160 from groue/dev/privacy
...
Hide statement arguments by default
2022-01-29 16:29:58 +01:00
Gwendal Roué
29808e51ff
Fix typo
2022-01-29 16:06:22 +01:00
Gwendal Roué
426044154c
Fix public statement arguments for system SQLite
2022-01-29 15:54:39 +01:00
Gwendal Roué
d69db0b9a1
CHANGELOG
2022-01-29 15:32:21 +01:00
Gwendal Roué
914bd14cd1
CHANGELOG
2022-01-29 15:27:44 +01:00
Gwendal Roué
b5395a097c
Documentation
2022-01-29 15:27:40 +01:00
Gwendal Roué
99c596f778
Fix DatabaseError public initializer
2022-01-29 15:21:44 +01:00
Gwendal Roué
fd22fac5c0
Don't shed too much light on expandedSQL & expandedDescription properties
2022-01-29 15:12:41 +01:00
Gwendal Roué
6e3a15ebed
Statement.description no longer contains statement arguments
2022-01-29 14:57:18 +01:00
Gwendal Roué
bb8b39f7fd
Documentation for public statement arguments
2022-01-29 14:54:47 +01:00
Gwendal Roué
fc5138ae91
Configuration.publicStatementArguments
...
This flags allows database errors and trace events to hide or show statement arguments by default.
2022-01-28 13:57:12 +01:00
Gwendal Roué
d3985c7ebf
TraceEvent.description no longer contains statement arguments
...
Use TraceEvent.expandedDescription in order to see statements arguments
2022-01-27 19:30:00 +01:00
Gwendal Roué
9f0ba49c93
DatabaseError.description no longer contains statement arguments
...
Use DatabaseError.expandedDescription in order to see statements arguments
2022-01-27 19:30:00 +01:00
Gwendal Roué
09922c34ff
Code formatting
2022-01-23 12:24:34 +01:00
Gwendal Roué
3826003d93
TODO
2022-01-23 10:51:15 +01:00
Gwendal Roué
9baa72cfd7
Mention association annotation methods in the main README
2022-01-21 13:48:51 +01:00
Gwendal Roué
aacc69f485
Fix typos
2022-01-21 13:43:44 +01:00
Gwendal Roué
301fb34702
Fix failing test for including(all:) on limited request and composite primary keys
2022-01-21 13:42:42 +01:00
Gwendal Roué
6444285ee2
Failing test for including(all:) on limited request and composite primary keys
2022-01-21 13:39:40 +01:00
Gwendal Roué
bd42dc69f0
CHANGELOG
2022-01-19 19:27:50 +01:00
Gwendal Roué
14d8763a84
Merge branch 'development'
2022-01-19 16:20:21 +01:00
Gwendal Roué
c46e8257d8
v5.19.0
2022-01-19 16:18:59 +01:00
Gwendal Roué
948c7870bd
Merge pull request #1151 from freak4pc/fk-docs
...
Fix documentation for foreignKeysEnabled
2022-01-19 15:50:16 +01:00
Shai Mishali and Gwendal Roué
fa896eee23
Update GRDB/Core/Configuration.swift
...
Co-authored-by: Gwendal Roué <gr@pierlis.com >
2022-01-19 16:46:55 +02:00
Shai Mishali
c4023ccf0a
Fix documentation for foreignKeysEnabled
2022-01-19 15:48:11 +02:00
Gwendal Roué
fe92b93f0b
CHANGELOG
2022-01-19 08:15:19 +01:00
Gwendal Roué
28109a3947
Merge pull request #1144 from TimAEllis/feature/add-drop-column
...
Add drop column support
2022-01-19 08:06:24 +01:00
Gwendal Roué
124cba1b21
Work around missing SQLITE_ALTER_TABLE action
2022-01-19 07:29:16 +01:00
Gwendal Roué
ca47426c61
Merge pull request #1149 from BB9z/fix-typos
...
Fix typos
2022-01-19 06:31:12 +01:00
Gwendal Roué
90c85c6703
TODO
2022-01-19 06:25:33 +01:00
BB9z
6d3f309cad
Fix typos
2022-01-19 00:10:42 +08:00
Gwendal Roué
06dbaba7cc
Add failing test for schema cache invalidation
2022-01-18 08:50:42 +01:00
Timothy Ellis
daf44d9baa
Exposed drop(column:) to custom builds and cipher
2022-01-18 10:11:12 +11:00
Timothy Ellis
187a661626
Updated to reflect drop column
2022-01-17 10:31:11 +11:00
Timothy Ellis
55302cb937
Added test for drop column
2022-01-17 10:02:23 +11:00
Timothy Ellis
869d776962
Added drop column support
2022-01-17 10:02:04 +11:00
Gwendal Roué
b53b43b1fc
Cleanup
2022-01-16 14:50:55 +01:00
Gwendal Roué
42d29b305e
Cleanup
2022-01-16 13:54:03 +01:00
Gwendal Roué
8f100a6395
Document that GRDB/SQLCipher must be the only pod
...
Addresses #1141
2022-01-16 10:49:02 +01:00
Gwendal Roué
44dd21690f
Merge pull request #1139 from groue/dev/more-1124
...
Deal with authorization callbacks from more cursors
2022-01-14 18:43:13 +01:00
Gwendal Roué
6d31190c3f
DatabaseCursor.forEach() honors the _isDone flag
2022-01-14 18:31:16 +01:00
Gwendal Roué
549f7ec66e
Cleanup and cursor profiling tests
2022-01-14 18:25:30 +01:00
Gwendal Roué
3eea2967b3
Improve error message
2022-01-14 17:49:17 +01:00
Gwendal Roué
8e6827070f
Improve documentation
2022-01-14 13:47:54 +01:00
Gwendal Roué
d105b35750
More #1124-related documentation
2022-01-14 13:29:34 +01:00
Gwendal Roué
149d5ac151
Fix GRDBProfiling
2022-01-14 13:13:34 +01:00
Gwendal Roué
ed6c5438b9
Move DatabaseCursor state to Statement
2022-01-14 13:13:34 +01:00
Gwendal Roué
bd67153095
Fix #1124 for more cursors
2022-01-13 14:28:04 +01:00
Gwendal Roué
3fff6b2f51
Fix typo
2022-01-13 07:29:38 +01:00
Gwendal Roué
62a0b1c148
Fix typo
2022-01-09 19:03:31 +01:00
Gwendal Roué
dfca044433
Merge branch 'development'
2022-01-09 18:56:04 +01:00
Gwendal Roué
78df734f51
v5.18.0
2022-01-09 17:36:31 +01:00
Gwendal Roué
e72b7e4597
Merge pull request #1133 from groue/dev/strict-tables
...
Support for STRICT tables
2022-01-09 17:22:50 +01:00
Gwendal Roué
fb6c695658
CHANGELOG
2022-01-09 17:12:17 +01:00
Gwendal Roué
a1c0c6d1f3
Update documentation for the new table/index creation options
2022-01-09 17:01:37 +01:00
Gwendal Roué
68f3e5586b
Test strict tables, and table/index creation options
2022-01-09 17:01:37 +01:00
Gwendal Roué
8760033045
Update the list of extended result codes from SQLite 3.37.2
...
This updated list contains SQLITE_CONSTRAINT_DATATYPE, introduced with strict tables.
2022-01-09 17:01:37 +01:00
Gwendal Roué
b2fabf5fc3
Strict tables need REAL and ANY column types
2022-01-09 17:01:37 +01:00
Gwendal Roué
95f1d83d78
The .strict table creation option
...
The .strict table creation option
The .strict table creation option
2022-01-09 17:01:37 +01:00
Gwendal Roué
790c054a28
Fix Swiftlint warnings
2022-01-09 14:43:27 +01:00
Gwendal Roué
06a5d6f44b
Merge pull request #1132 from groue/dev/sqlite-3.72.2
...
Bump custom SQLite builds v3.72.2
2022-01-09 14:42:28 +01:00
Gwendal Roué
3145a916a0
CHANGELOG
2022-01-09 14:33:33 +01:00
Gwendal Roué
94ff9f3e45
The casing of ColumnInfo.type depends on the SQLite version
2022-01-09 14:28:00 +01:00
Gwendal Roué
c172dac909
Update test for SQLite to v3.37.2
2022-01-09 14:21:51 +01:00
Gwendal Roué
5b7ba122e8
Bump custom SQLite to v3.37.2
2022-01-09 14:06:27 +01:00
Gwendal Roué
0513e0acf8
Enhance wording in the pull request template
2022-01-09 13:42:22 +01:00
Gwendal Roué
b3d49de023
Mention CONTRIBUTING in the pull request template
2022-01-09 13:41:11 +01:00
Gwendal Roué
779e2c202f
Merge pull request #1128 from groue/dev/issue-1124
...
Deal with authorization callbacks from cursors of FetchableRecord
2022-01-09 13:38:20 +01:00
Gwendal Roué
be45781cf9
CHANGELOG
2022-01-09 13:31:03 +01:00
Gwendal Roué
c7d816b860
Merge branch 'development' into dev/issue-1124
2022-01-09 13:27:54 +01:00
Gwendal Roué
a0f6f7a9ab
Merge pull request #1129 from groue/dev/detached-column
...
Detached columns
2022-01-09 13:27:04 +01:00
Gwendal Roué
86c0180487
CHANGELOG
2022-01-09 13:17:29 +01:00
Gwendal Roué
80c11d0bc4
Merge branch 'development' into dev/detached-column
2022-01-09 13:13:31 +01:00
Gwendal Roué
66602ba2e2
CHANGELOG
2022-01-09 13:13:11 +01:00
Gwendal Roué
8fdcc020e0
Documentation
2022-01-08 14:09:14 +01:00
Gwendal Roué
1bb2029e74
Fix #1124 by dealing with authorizers
2022-01-08 13:51:41 +01:00
Gwendal Roué
fc0e1bede1
Methods that fully consume a cursor prefer forEach to next
...
This allows custom forEach implementations to wrap the full consumption of a cursor
2022-01-08 13:50:14 +01:00
Gwendal Roué
823af1944e
Cursor.forEach is a customization point
2022-01-08 13:47:54 +01:00
Gwendal Roué
2093b477df
Failing test for #1124
2022-01-08 13:18:32 +01:00
Gwendal Roué
29cd08cba4
Fix typo
2022-01-07 15:01:29 +01:00
Gwendal Roué
76523db5b9
Removed undesired :nodoc: comment
2022-01-07 14:58:42 +01:00
Gwendal Roué
c0305853bc
Enhance fatal error message for reversed literal ordering terms
2022-01-07 14:43:57 +01:00
Gwendal Roué
5d51f2a884
New Embedding SQL in Query Interface Requests chapter
2022-01-07 14:41:15 +01:00
Gwendal Roué
bdf54e80a9
Mention detached columns in the documentation of expression.forKey(_:)
2022-01-07 13:30:27 +01:00
Gwendal Roué
e799c8534e
ColumnExpression.detached
2022-01-07 10:07:15 +01:00
Gwendal Roué
536ad2ebff
Merge branch 'master' into development
2022-01-07 10:06:42 +01:00
Gwendal Roué
972f45295f
Request make smokeTest to pass before submitting a pull request.
2022-01-07 10:06:21 +01:00
Gwendal Roué
b96bd52c38
Merge branch 'dev/issue-1074-incremental_backup_api' into development
2022-01-06 18:36:31 +01:00
Gwendal Roué
2af0a74676
Fix SQLCipher 3 and 4 test projects
2022-01-06 14:13:25 +01:00
Gwendal Roué
4aa37f6169
Expert users need raw access to expert values
2022-01-06 13:52:09 +01:00
Gwendal Roué
37571525e6
Merge branch 'development' into dev/issue-1074-incremental_backup_api
2022-01-06 13:45:26 +01:00
Gwendal Roué
911b2a76d8
Merge pull request #1121 from byohay/feature/fix-variables-with-spaces
...
GRDB: quote PROJECT_DIR and SRCROOT environment variables.
2021-12-31 14:32:29 +01:00
Gwendal Roué
54b13de632
Merge pull request #1120 from jnross/joe/fix-typo
...
Fix typos of the word "default"
2021-12-31 13:56:56 +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
Joseph Ross
bf28abbb25
Fix typos of the word "default"
2021-12-28 14:49:33 -08:00
Gwendal Roué
c945504a34
Addition and substraction are not bijective functions (due to floating point rounding errors)
2021-12-21 11:13:28 +01:00
Gwendal Roué
8217966215
Table creation methods accept throwing closures
2021-12-21 09:26:55 +01:00
Gwendal Roué
c96a74658c
TODO
2021-12-19 12:34:16 +01:00
Gwendal Roué
042e220f49
Rewrite CONTRIBUTING.md
2021-12-18 14:31:02 +01:00
Michael Allman
a71639159b
Add DatabaseBackupProgress and update the documentation
2021-12-15 01:52:25 -05:00
Gwendal Roué
d633927999
Merge branch 'development'
2021-12-14 19:33:32 +01:00
Gwendal Roué
8df7020ad7
v5.17.0
2021-12-14 19:32:51 +01:00
Gwendal Roué
bc95c5c977
Performance tests: upgrade dependencies
2021-12-14 19:15:59 +01:00
Gwendal Roué
ef4709d3f0
Fix async vaccum(info:) tests by using the same encryption level for the destination database
2021-12-14 14:21:16 +01:00
Gwendal Roué
e1984721dc
Merge pull request #1079 from groue/dev/async
...
Async / Await
2021-12-14 13:29:02 +01:00
Gwendal Roué
469898c5df
CHANGELOG
2021-12-14 13:15:22 +01:00
Gwendal Roué
0207aef4dc
CHANGELOG
2021-12-14 12:48:48 +01:00
Gwendal Roué
d7604d2174
Merge branch 'development' into dev/async
2021-12-14 12:46:49 +01:00
Gwendal Roué
89421c92fb
More support for inclusion checks with explicit collation
...
This commit addresses https://github.com/groue/GRDB.swift/issues/1094
The position of the `collating` method is now irrelevant in all those cases:
// name COLLATE NOCASE IN ('foo', 'bar')
["foo", "bar"].contains(Column("name")).collating(.nocase)
["foo", "bar"].contains(Column("name").collating(.nocase))
// name BETWEEN 'foo' AND 'bar' COLLATE NOCASE
("foo"..."bar").contains(Column("name")).collating(.nocase)
("foo"..."bar").contains(Column("name").collating(.nocase))
// (name >= 'foo' COLLATE NOCASE) AND (name < 'bar' COLLATE NOCASE)
("foo"..<"bar").contains(Column("name")).collating(.nocase)
("foo"..<"bar").contains(Column("name").collating(.nocase))
2021-12-14 12:45:50 +01:00
Gwendal Roué
0cf4c4efba
Merge branch 'development' into dev/async
2021-12-12 17:00:08 +01:00
Gwendal Roué
710142edc0
CHANGELOG
2021-12-12 16:44:43 +01:00
Gwendal Roué
7001b60cf7
More support for association existence check
...
New: support for associated tables WITHOUT ROWID with a compound primary key
New: support for associated views
Checking for the existence of associated CTEs is still not implemented (it fails with "table does not exist" error).
2021-12-12 16:43:40 +01:00
Gwendal Roué
dcc2d211b2
Database.primaryKey() fails for views
2021-12-12 16:14:25 +01:00
Gwendal Roué
340203686d
ValueObservation.removeDuplicates(by:)
2021-12-12 15:12:34 +01:00
Gwendal Roué
ae609cec3b
Support for the TOTAL SQL aggregate function
2021-12-12 14:46:43 +01:00
Gwendal Roué
8ba89a398a
Add ABS and LENGTH SQL functions on association aggregates
2021-12-12 14:27:41 +01:00
Gwendal Roué
95b3f447e4
Revert "Make sure Inflections.default is lazily loaded, even in optimized release builds"
...
This reverts commit c62ccf1de7 (aimed at fixing #755 ).
We can do this because https://github.com/apple/swift/pull/30445 is present in the Swift 5.3 release https://github.com/apple/swift/releases/tag/swift-5.3-RELEASE
2021-12-12 13:57:34 +01:00
Gwendal Roué
bc2a66e40f
Don't throw any error when checking if a table is WITHOUT ROWID
2021-12-12 13:29:02 +01:00
Gwendal Roué
cb32a0d0cc
CHANGELOG
2021-12-12 12:56:53 +01:00
Gwendal Roué
effc991de1
Deprecate DatabaseRegion.init(table:)
...
This commit reverts #510
2021-12-12 12:36:27 +01:00
Gwendal Roué
3049b88fea
Merge pull request #1110 from maxhumber/patch-1
...
Minor changes to a tip in the README
2021-12-12 10:27:13 +01:00
Max Humber
c39db96521
Minor changes to a tip in the README
2021-12-11 15:28:02 -05:00
Gwendal Roué
d7514f84f1
Disable concurrency check flags by default
2021-12-10 12:40:08 +01:00
Gwendal Roué
1b62e06c4a
Expose Sendable conformance to Swift 5.5
...
But async apis are still only exposed to Swift 5.5.2.
Sendable conformances are helpful for users of Xcode < 13.2.
2021-12-10 08:08:47 +01:00
Michael Allman
bedf2dbcd4
Revise and correct some names and backup code documentation
2021-12-08 10:23:11 -08: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
Michael Allman
f012c011b1
Import the Foundation framework in DatabaseReader.swift, which is required to get the Progress class
2021-12-08 09:37:10 -08:00
Michael Allman
f829d46b7f
Change default backup page step size from 5 to 100, which is the value used in the sqlite3 cli .backup command
2021-12-08 09:37:10 -08:00
Michael Allman
ab6f18e46d
Initial commit of code to implement progress-reporting database backups
2021-12-08 09:37:10 -08:00
Gwendal Roué
9579671c02
Remove a concurrency-related warning
2021-12-08 18:16:36 +01:00
Gwendal Roué
01f4c04c4d
DatabaseReader is Sendable
2021-12-08 18:12:28 +01:00
Gwendal Roué
7ac78a8ec1
Share concurrency check flags with tests
2021-12-08 18:11:44 +01:00
Gwendal Roué
97e00ab44f
Fix async test for SQLCipher VACUUM INTO
2021-12-08 13:18:12 +01:00
Gwendal Roué
33d9ca0e97
UIApplication notification names are isolated to @MainActor
...
I believe this is incorrect: FB9801372 (UIApplication.didReceiveMemoryWarningNotification should not be declared @MainActor)
Meanwhile, just use the string version.
A workaround based on a MainActor-isolated task can't work due to conflict between compiler version and minimum iOS target:
#if compiler(>=5.5) && canImport(_Concurrency)
if #available(...) { // Check for availability of concurrency runtime
Task { @MainActor [weak self] in
NotificationCenter.default.addObserver(..., name: UIApplication.didReceiveMemoryWarningNotification, object: nil)
}
} else {
// IMPOSSIBLE CASE: No access to Task, no access to notification names
}
#else
NotificationCenter.default.addObserver(..., name: UIApplication.didReceiveMemoryWarningNotification, object: nil)
#endif
2021-12-08 12:48:19 +01:00
Gwendal Roué
b2985b77c4
Concurrency check flags depend on Xcode version
...
Xcode 12 won't accept those flags. And we only need them starting Xcode 13.2
2021-12-08 12:00:32 +01:00
Gwendal Roué
ec882e8126
Enable concurrency check flags by default
2021-12-08 11:18:54 +01:00
Gwendal Roué
61b0df8017
Enable async APIs on Xcode 13.2+ only
...
Xcode 13.1 won't have access to async apis. This simplifies our availability checks.
The techniques were inspired from:
- https://github.com/swift-server/guides/blob/main/docs/concurrency-adoption-guidelines.md#api-design
- https://github.com/swift-server/guides/blob/main/docs/concurrency-adoption-guidelines.md#backwards-compatibility-of-declarations-and-checked-swift-concurrency
2021-12-08 11:17:40 +01:00
Gwendal Roué
103266d70c
Merge branch 'development' into dev/async
2021-12-08 08:00:49 +01:00
Gwendal Roué
3f02724e60
RowDecodingError is Sendable
...
Xcode 13.2 RC won't compile unless we make a Sendable copy of the row that could not be decoded.
2021-12-08 07:59:43 +01:00
Gwendal Roué
ca05a93c98
Merge pull request #1107 from tcwalther/tw-fix-db-create-index-docstring
...
Fix docstring for Database.create(index: ...)
2021-12-07 13:32:26 +01:00
Thomas Walther
48f6cee7a6
Fix docstring for Database.create(index: ...)
2021-12-07 13:20:14 +01:00
Gwendal Roué
8ed16f4440
Fix some compiler warnings with -Xfrontend -warn-concurrency
...
https://twitter.com/olebegemann/status/1467893554915782668
2021-12-07 09:23:37 +01:00
Gwendal Roué
6ec3ebc398
Merge branch 'development' into dev/async
2021-12-06 18:04:35 +01:00
Gwendal Roué
86d0fedfbb
Fix wording
2021-12-05 17:08:15 +01:00
Gwendal Roué
0330365d49
Merge branch 'development'
2021-12-05 16:59:59 +01:00
Gwendal Roué
ca2f36781e
v5.16.0
2021-12-05 16:59:37 +01:00
Gwendal Roué
6c7f71f620
Fix typo
2021-12-05 16:47:32 +01:00
Gwendal Roué
60bf5d30b0
Merge pull request #1106 from groue/dev/annotated-with-association
...
Sugar for fetching only a few columns of associated records
2021-12-05 16:41:49 +01:00
Gwendal Roué
94caf4ba97
todo: find a way to prefix the selection with the association key
2021-12-05 15:53:59 +01:00
Gwendal Roué
a7002e1e09
Enhance "Columns Selected by an Association"
2021-12-05 15:22:07 +01:00
Gwendal Roué
54a991b3b9
Emphasize sections
2021-12-05 15:15:38 +01:00
Gwendal Roué
54ca12437a
CHANGELOG
2021-12-05 15:10:25 +01:00
Gwendal Roué
3298cca75f
Rewrite the Joining And Prefetching Associated Records chapter
2021-12-05 15:10:25 +01:00
Gwendal Roué
4fe0b687d2
Documentation for annotated(withOptional:), annotated(withRequired:)
2021-12-05 15:04:51 +01:00
Gwendal Roué
9df0f4cdbd
Inline documentation for annotated(withOptional:), annotated(withRequired:)
2021-12-05 15:04:44 +01:00
Gwendal Roué
e1dc24ac93
Update examples with Team/Player
2021-12-04 10:01:31 +01:00
Gwendal Roué
88e60ed0c6
Update FAQ: How do I select only one column of an associated record?
2021-12-04 09:50:16 +01:00
Gwendal Roué
b4ca103002
Tests for annotated(withOptional:), annotated(withRequired:)
2021-12-04 09:49:23 +01:00
Gwendal Roué
564c4cef5c
annotated(withOptional:), annotated(withRequired:)
2021-12-03 19:24:56 +01:00
Gwendal Roué
7a77a1fd06
Merge branch 'development'
2021-12-02 19:43:04 +01:00
Gwendal Roué
c7291db360
v5.15.0
2021-12-02 18:48:36 +01:00
Gwendal Roué
a52d1b1d21
Merge pull request #1102 from groue/dev/ValueObservation-explicit-region-tracking
...
Explicit tracked region for ValueObservation
2021-12-02 18:40:40 +01:00
Gwendal Roué
89b1783220
TrackingMode is a property of ValueObservation
...
No reducer changes the tracking mode, so let's simplify the code.
2021-12-02 17:22:18 +01:00
Gwendal Roué
76d2168988
Extend the general description of ValueObservation behavior
...
Link to the ability to track something which is not the fetched region.
2021-12-02 17:22:18 +01:00
Gwendal Roué
e419bb55ca
Enhance documentation of DatabaseRegion
2021-12-02 17:22:18 +01:00
Gwendal Roué
06eb45db65
Documentation for ValueObservation(region:fetch:)
2021-12-02 17:22:18 +01:00
Gwendal Roué
6180e4b815
Fix for Swift 5.3
2021-12-02 17:22:18 +01:00
Gwendal Roué
85747935c8
ValueObservation can track an explicit database region
2021-12-02 17:22:18 +01:00
Gwendal Roué
36fba9a79a
TODO: deprecate DatabaseRegion(table:)
...
We have `Table` now, wich is DatabaseRegionConvertible.
This deprecation will revert https://github.com/groue/GRDB.swift/pull/510
2021-12-02 17:21:58 +01:00
Gwendal Roué
6240585a03
Make sure ValueObservation fetches in an isolated transaction
...
Previously, ValueObservation could fetch in a non-isolated way. When an external connection would commit changes, we could fetch inconsistent values. Here we make sure ValueObservation always fetch in an isolated way.
2021-12-02 09:46:02 +01:00
Gwendal Roué
ad66fbc666
ValueObserver documentation
2021-12-02 09:46:02 +01:00
Gwendal Roué
e69092ca6a
Add DatabaseRegionConvertible to Table
2021-12-02 09:45:38 +01:00
Gwendal Roué
bb2ce74125
Add helper method Database.isolated(readOnly:)
2021-12-02 09:45:28 +01:00
Gwendal Roué
06bf3980b6
Fix documentation links
2021-12-02 09:17:36 +01:00
Gwendal Roué
97d4a60148
Merge branch 'development' into dev/async
...
# Conflicts:
# Documentation/DemoApps/GRDBDemoiOS/README.md
# Documentation/DemoApps/README.md
2021-11-27 12:05:24 +01:00
Gwendal Roué
6dc7367853
Merge branch 'development'
2021-11-25 18:29:23 +01:00
Gwendal Roué
4228df9c06
v5.14.0
2021-11-25 18:23:31 +01:00
Gwendal Roué
ca9fd1f8e6
CHANGELOG
2021-11-25 18:18:15 +01:00
Gwendal Roué
1fbf2f8693
GRDBCombineDemo uses the GRDBQuery package
2021-11-25 17:26:19 +01:00
Gwendal Roué
811c41af6d
@Query has been exported to https://github.com/groue/GRDBQuery
2021-11-25 15:25:40 +01:00
Gwendal Roué
5d87609f4b
Ignore .swiftpm
2021-11-25 15:08:53 +01:00
Gwendal Roué
a9036a4563
Ignore .swiftpm
2021-11-25 14:49:37 +01:00
Gwendal Roué
988c7bb62f
Query documentation
2021-11-25 13:56:07 +01:00
Gwendal Roué
51182fc862
Query documentation
2021-11-25 13:55:00 +01:00
Gwendal Roué
485509a8cc
Query documentation
2021-11-25 13:47:27 +01:00
Gwendal Roué
a81f80cddb
Query documentation
2021-11-25 13:46:50 +01:00
Gwendal Roué
d590a06212
Query documentation
2021-11-25 12:39:50 +01:00
Gwendal Roué
b3a1497791
Query documentation
2021-11-25 12:38:27 +01:00
Gwendal Roué
c7f0a80a91
Query documentation
2021-11-25 10:52:10 +01:00
Gwendal Roué
068081d043
Query documentation
2021-11-25 10:37:06 +01:00
Gwendal Roué
01ba7de2f9
Query documentation
2021-11-25 10:16:38 +01:00
Gwendal Roué
10e784bee3
Query documentation
2021-11-25 10:11:35 +01:00
Gwendal Roué
21c6c9c794
Query documentation
2021-11-25 09:49:19 +01:00
Gwendal Roué
dec515aceb
Query documentation
2021-11-25 09:42:21 +01:00
Gwendal Roué
9be04da707
Query documentation
2021-11-25 09:41:25 +01:00
Gwendal Roué
6b02b4ca02
Rename Query generic parameter to Request
2021-11-25 09:37:40 +01:00
Gwendal Roué
5983473aa5
Query documentation
2021-11-25 09:33:24 +01:00
Gwendal Roué
1c4456a9fc
Query documentation
2021-11-25 09:28:59 +01:00
Gwendal Roué
82a2776acd
Query documentation
2021-11-25 09:14:54 +01:00
Gwendal Roué
c7fb5cb3e3
Query demo README
2021-11-24 20:48:56 +01:00
Gwendal Roué
f726b670f9
Polish Query demo app
2021-11-24 20:18:37 +01:00
Gwendal Roué
62e710b9b1
Cleanup Query demo app
2021-11-24 19:16:39 +01:00
Gwendal Roué
66f953a21a
Rename Query demo app
2021-11-24 17:19:07 +01:00
Gwendal Roué
ceed45cf22
QuerySideEffect demo
2021-11-24 09:40:15 +01:00
Gwendal Roué
13a040ae1b
CHANGELOG
2021-11-18 08:39:01 +01:00
Gwendal Roué
d8b83fba12
improve compilation time
2021-11-18 08:34:59 +01:00
Gwendal Roué
93c4249619
ForeignKeyViolation.databaseError(_:)
2021-11-16 08:51:33 +01:00
Gwendal Roué
ebc8524706
Add missing public qualifiers
2021-11-16 08:45:34 +01:00
Gwendal Roué
ea41f34f3d
Quote table name in raw SQL query
2021-11-16 08:40:16 +01:00
Gwendal Roué
861ca5f022
Merge branch 'development' into dev/async
2021-11-07 16:30:37 +01:00
Gwendal Roué
59f9482aa7
Fix links to documentation images
2021-11-07 16:29:17 +01:00
Gwendal Roué
8658b7bc10
Merge branch 'development'
2021-11-07 16:20:59 +01:00
Gwendal Roué
42eeb54d6f
v5.13.0
2021-11-07 16:06:50 +01:00
Gwendal Roué
fe32981e0e
Performance report: fallback for hardware name
...
The https://apple.stackexchange.com/a/98089 technique does not work on my mac
2021-11-07 16:06:50 +01:00
Gwendal Roué
0c9de25a8c
Bump number of operations performed by performance tests
...
Apple Silicon and SSD are too fast, and we need to display higher numbers
2021-11-07 16:06:50 +01:00
Gwendal Roué
2b5d3f1d72
Upgrade Realm version in performance tests
2021-11-07 16:06:50 +01:00
Gwendal Roué
9da2e66e46
Fix flaky test
2021-11-07 14:58:18 +01:00
Gwendal Roué
8bf45e5452
Remove debugging code
2021-11-07 14:46:36 +01:00
Gwendal Roué
d85168dd3c
Query cleanup
2021-11-07 13:47:04 +01:00
Gwendal Roué
7ed103d5e4
Documentation
2021-11-07 13:25:50 +01:00
Gwendal Roué
b44a9eb470
Extract @Query into its own package
2021-11-07 12:03:55 +01:00
Gwendal Roué
d240d8c5f0
Fix typo
2021-11-07 11:58:51 +01:00
Gwendal Roué
74f268a378
Makefile: test_GRDBAsyncDemo
2021-11-07 11:49:42 +01:00
Gwendal Roué
f74ce91a17
Merge branch 'development' into dev/async
...
# Conflicts:
# CHANGELOG.md
# Documentation/Concurrency.md
# README.md
2021-11-07 11:47:01 +01:00
Gwendal Roué
23a9b6e1ae
Makefile: test BUILD_LIBRARY_FOR_DISTRIBUTION & XCFramework
2021-11-07 11:13:35 +01:00
Gwendal Roué
03822bdf99
Makefile: skip test_framework_GRDBtvOS_minTarget until simulator is installed
2021-11-07 10:45:03 +01:00
Gwendal Roué
b0c77a5e0f
Makefile: tests for demo apps
2021-11-07 10:41:12 +01:00
Gwendal Roué
af2d65ef49
Fix Swiftlint warnings
2021-11-07 10:32:00 +01:00
Gwendal Roué
72271b0299
CHANGELOG
2021-11-07 10:07:46 +01:00
Gwendal Roué
b5433803ef
Makefile: support for Xcode 13.1
2021-11-07 10:03:42 +01:00
Gwendal Roué
037443e600
Wording
2021-11-07 09:36:50 +01:00
Gwendal Roué
19b182b6a8
Remove the immediate transactions advice
...
It has write transactions fail faster, but it also has writes that only read, or writes that do nothing fail - for no good reason.
2021-11-07 09:20:38 +01:00
Gwendal Roué
0955ac3001
New concurrent read illustration
2021-11-07 09:14:23 +01:00
Gwendal Roué
ff7773cf41
Wording
2021-11-07 08:29:24 +01:00
Gwendal Roué
8a0cbb63f5
Wording
2021-11-07 08:25:24 +01:00
Gwendal Roué
d3e55cf8f6
wording
2021-11-07 08:23:47 +01:00
Gwendal Roué
7af3858ff6
More robust DatabasePool.close() test
2021-11-07 08:17:48 +01:00
Gwendal Roué
c3bbd3d6f8
CHANGELOG
2021-11-07 08:17:46 +01:00
Gwendal Roué
eb9d0bce58
Documentation
2021-11-07 08:16:58 +01:00
Gwendal Roué
716e223844
Fix typo
2021-11-06 17:09:12 +01:00
Gwendal Roué
1df5d834e8
Wording
2021-11-06 17:06:51 +01:00
Gwendal Roué
05b03ef56c
Wording
2021-11-06 17:02:47 +01:00
Gwendal Roué
06827de207
All fetches are stale
2021-11-06 17:00:19 +01:00
Gwendal Roué
1070b9bd9d
Exercise guarantees in context
2021-11-06 16:05:05 +01:00
Gwendal Roué
de4c06478d
New Concurrency Images
2021-11-06 16:00:40 +01:00
Gwendal Roué
78d5b4abaa
Doc of completion block-based async accesses
2021-11-06 12:39:05 +01:00
Gwendal Roué
5e89d08fd0
Layout Concurrency Guide
2021-11-06 12:27:19 +01:00
Gwendal Roué
3d5b436a81
CHANGELOG
2021-11-06 12:23:54 +01:00
Gwendal Roué
1738ad34cd
Extract the Concurrency Guide
2021-11-06 12:23:54 +01:00
Gwendal Roué
65668cfc8e
Documentation
2021-11-06 11:22:16 +01:00
Gwendal Roué
9249efbe6f
Fix UIKit warnings
2021-11-06 09:43:38 +01:00
Gwendal Roué
913860f3ce
UUID encoding strategies uppercaseString and lowercaseString
...
This commit was influenced by https://forums.swift.org/t/53058
2021-11-04 20:33:55 +01:00
Gwendal Roué
088f76db9e
Merge pull request #1095 from groue/dev/foreign-keys-checks
...
Precise foreign key checks for migrations
2021-11-04 19:38:56 +01:00
Gwendal Roué
454dd73c4c
CHANGELOG
2021-11-04 18:52:19 +01:00
Gwendal Roué
c81a4dbf32
Distinguish "FOREIGN KEY constraint failed" from "FOREIGN KEY constraint violation" errors
2021-11-04 18:44:44 +01:00
Gwendal Roué
127c4e0440
Rename methods that check foreign keys
2021-11-04 18:26:24 +01:00
Gwendal Roué
ffdc80646e
Documentation
2021-11-04 16:12:46 +01:00
Gwendal Roué
7e9a2f5a73
Fix typo
2021-11-04 15:12:24 +01:00
Gwendal Roué
8a36f4d94e
Clean up tests
2021-11-04 15:10:41 +01:00
Gwendal Roué
63ba4fb294
Rename unsafeWithoutDeferredForeignKeyChecks to disablingDeferredForeignKeyChecks
2021-11-04 15:10:33 +01:00
Gwendal Roué
d0997efbb6
Documentation
2021-11-04 14:27:34 +01:00
Gwendal Roué
6193c6aa00
foreignKeyViolations() and checkForeignKeyViolations()
2021-11-04 14:19:11 +01:00
Gwendal Roué
b66b907fbc
Documentation
2021-11-03 14:56:59 +01:00
Gwendal Roué
51c15e9db6
Precise handling of foreign key checks in migrations
2021-11-03 13:26:24 +01:00
Gwendal Roué
0a8967ccde
move applied migration identifiers table creation to the top of migrations execution
...
https://github.com/zdnk/GRDB.swift/commit/51ff937397248355d4b264aedfd5a8f05893a2b8
Thanks @zdnk :-)
2021-11-03 08:33:09 +01:00
Gwendal Roué
19fd58f64f
Documentation
2021-11-02 21:48:51 +01:00
Gwendal Roué
19c7ec568c
Documentation
2021-11-02 21:42:44 +01:00
Gwendal Roué
bc8a31dcd2
Documentation
2021-11-02 20:33:03 +01:00
Gwendal Roué
2273efa07f
Improve documentation of persistence methods
2021-11-02 08:13:34 +01:00
Gwendal Roué
62f568d932
Merge branch 'development' into dev/async
2021-11-02 06:02:29 +01:00
Gwendal Roué
1aab03b02a
Fix close() test
...
The behavior of sqlite3_close_v2() depends on SQLite version. Don't test this behavior.
2021-11-01 19:55:31 +01:00
Gwendal Roué
1646dfc49b
Fix FAQ organization
2021-11-01 10:28:31 +01:00
Gwendal Roué
640a67257f
Documentation for async DatabaseMigrator.migrate()
2021-11-01 10:19:03 +01:00
Gwendal Roué
5be27dd90a
CHANGELOG
2021-11-01 10:08:19 +01:00
Gwendal Roué
485ce79293
More ValueObservation async cancellation test
2021-11-01 09:45:16 +01:00
Gwendal Roué
5725d9db21
Refactor the ValueObservation async cancellation test
2021-11-01 08:03:00 +01:00
Gwendal Roué
7897c6a799
asyncUnsafeRead handle closed connection
2021-11-01 07:25:26 +01:00
Gwendal Roué
5f549ef6af
Cleanup with Table
2021-11-01 07:22:09 +01:00
Gwendal Roué
ac94a2f90e
Merge branch 'development' into dev/async
2021-10-31 19:35:13 +01:00
Gwendal Roué
15b38353bc
Add experimental warning to the documentation of async methods
2021-10-31 19:35:05 +01:00
Gwendal Roué
a7c1a99866
Fix wording
2021-10-31 18:48:26 +01:00
Gwendal Roué
1a87faacfa
Merge branch 'development' into dev/async
2021-10-31 18:32:03 +01:00
Gwendal Roué
5cc881138e
CHANGELOG
2021-10-31 18:31:32 +01:00
Gwendal Roué
5e56a4465c
close() documentation
2021-10-31 18:27:08 +01:00
Gwendal Roué
20cb50f52d
Public close() method
2021-10-31 18:12:13 +01:00
Gwendal Roué
b4f30784f4
Support for SwiftLint installed via Homebrew on Apple Silicon
2021-10-31 15:32:26 +01:00
Gwendal Roué
0f0c345ebb
Fix markdown format
2021-10-31 14:38:10 +01:00
Gwendal Roué
1ee2c8097a
SharedValueObservation is experimental
2021-10-31 13:55:18 +01:00
Gwendal Roué
3e58f35f1e
I'm so fed up with this
...
https://developer.apple.com/forums/thread/663975
2021-10-31 13:54:53 +01:00
Gwendal Roué
f70b75633c
Documentation: fix typo
2021-10-31 12:34:09 +01:00
Gwendal Roué
3a44311b95
Documentation: fix typos and wordings
2021-10-31 12:33:17 +01:00
Gwendal Roué
e0a6f43101
Documentation: async/await examples
2021-10-31 12:30:44 +01:00
Gwendal Roué
0c8c8cb1f4
Concurrency Guide: fix wordings
2021-10-31 12:22:23 +01:00
Gwendal Roué
fa8598d1e8
Async/Await support is experimental
2021-10-31 11:50:05 +01:00
Gwendal Roué
6cf5a2c33d
Merge branch 'development' into dev/async
...
# Conflicts:
# CHANGELOG.md
2021-10-31 11:48:27 +01:00
Gwendal Roué
9790d05795
CHANGELOG
2021-10-31 11:29:32 +01:00
Gwendal Roué
273b9befd8
Update documentation for date and uuid encoding strategies
2021-10-31 11:26:27 +01:00
Gwendal Roué
31a5180a58
CHANGELOG
2021-10-31 11:09:22 +01:00
Gwendal Roué
8076e7c725
Fix failing tests for key/id encoding strategies
2021-10-31 11:07:17 +01:00
Gwendal Roué
4cc3768344
Failing tests for key/id encoding strategies
2021-10-31 11:04:01 +01:00
Gwendal Roué
0317c4e454
Reuse screenshot of Combine demo
2021-10-31 06:06:55 +01:00
Gwendal Roué
db78c22904
Demo app requirements
2021-10-31 06:04:46 +01:00
Gwendal Roué
6b36c74de9
Concurrency: move saved(_:) and inserted(_:) suggestion to a FAQ
2021-10-31 06:03:35 +01:00
Gwendal Roué
51ab275714
Concurrency: suggest saved(_:) and inserted(_:)
2021-10-30 23:44:30 +02:00
Gwendal Roué
b9e1f4604e
Concurrency Guide: fix wordings
2021-10-30 23:20:29 +02:00
Gwendal Roué
0b853c5447
Concurrency Guide: fix wordings
2021-10-30 21:08:02 +02:00
Gwendal Roué
691ee8f7fd
Concurrency Guide: fix typos and wordings
2021-10-30 20:38:48 +02:00
Gwendal Roué
c755dc70ef
Restrict async/await to Xcode 13.1+
2021-10-30 20:09:39 +02:00
Gwendal Roué
9cc30018b6
CHANGELOG
2021-10-30 19:52:09 +02:00
Gwendal Roué
4616ef5229
Remove Concurrency guide from main README
2021-10-30 19:47:57 +02:00
Gwendal Roué
10a741a346
Concurrency Guide
2021-10-30 19:47:57 +02:00
Gwendal Roué
3c78029b3c
SwiftUI demo apps: PlayerEditionView saves player when back button is pressed
2021-10-25 19:07:40 +02:00
Gwendal Roué
3ea6fb2201
Merge branch 'development' into dev/async
2021-10-25 18:23:00 +02:00
Gwendal Roué
de7d5f42d4
Clarify the benefits of shared observations
2021-10-25 08:47:50 +02:00
Gwendal Roué
450a7c2d71
SharedValueObservation async sequence
2021-10-24 17:47:08 +02:00
Gwendal Roué
2542ad7de8
Reuse ValueObservationStart, and move BufferingPolicy to AsyncValueObservation
2021-10-24 17:33:32 +02:00
Gwendal Roué
2a665df672
Merge branch 'development' into dev/async
2021-10-24 17:13:16 +02:00
Gwendal Roué
bddbc31733
Merge pull request #1088 from groue/dev/shareValueObservation
...
Shared ValueObservation
2021-10-24 17:11:31 +02:00
Gwendal Roué
92e4c8f785
I want a new keyboard ASAP
2021-10-24 17:06:25 +02:00
Gwendal Roué
909afc0233
Fix typo
2021-10-24 17:05:10 +02:00
Gwendal Roué
d73228a812
Documentation
2021-10-24 17:04:07 +02:00
Gwendal Roué
76cac45720
Fix typo
2021-10-24 16:35:32 +02:00
Gwendal Roué
22a4f08f40
CHANGELOG
2021-10-24 16:25:18 +02:00
Gwendal Roué
ae0edde7c5
Documentation
2021-10-24 16:22:47 +02:00
Gwendal Roué
c62e4fd94c
Documentation
2021-10-24 16:17:46 +02:00
Gwendal Roué
7690db9284
Documentation
2021-10-24 16:15:46 +02:00
Gwendal Roué
2f212b8a5f
SharedValueObservation error handling
2021-10-24 15:46:32 +02:00
Gwendal Roué
abc6c55e14
Documentation
2021-10-24 15:17:52 +02:00
Gwendal Roué
450ff62392
Fix SQLCipher tests
2021-10-24 14:03:39 +02:00
Gwendal Roué
a5dd61ff13
Fix availability checks in tests
...
Fix `make test_framework_GRDBiOS_minTarget` with Xcode 13
2021-10-24 13:41:07 +02:00
Gwendal Roué
c3618e0cf0
SharedValueObservation publisher
2021-10-24 12:38:00 +02:00
Gwendal Roué
a3a804fa82
Upgrade CombineExpectations
2021-10-24 12:37:28 +02:00
Gwendal Roué
8ccaf59d4d
Default SharedValueObservation extent: .whileObserved
2021-10-23 17:47:12 +02:00
Gwendal Roué
9e0b1b3ded
SharedValueObservation
2021-10-23 17:23:48 +02:00
Gwendal Roué
0a65399a7b
Merge branch 'development' into dev/async
2021-10-23 12:48:33 +02:00
Gwendal Roué
618969ab2a
More tests for optional collections from prefetched rows
2021-10-23 12:46:30 +02:00
Gwendal Roué
53c662d179
Decode optional collections from prefetched rows
...
This allows to define records that only decode to-many associations when they are eager-loaded.
See https://github.com/groue/GRDB.swift/issues/1084#issuecomment-948880910
2021-10-23 12:40:55 +02:00
Gwendal Roué
02f71cfecc
AsyncValueObservation: let user control buffering policy
2021-10-20 08:16:24 +02:00
Gwendal Roué
00cd547ea6
UIKit demo app: use UIAction
2021-10-19 20:12:26 +02:00
Gwendal Roué
66bbf15f58
UIKit demo app: use @IBSegueAction
2021-10-19 19:30:23 +02:00
Gwendal Roué
dbb19979d6
Demo app: prefer tracking over trackingConstantRegion
...
For those specific player requests, trackingConstantRegion is _correct_. But readers may blindly copy and paste, and use trackingConstantRegion when they should not.
So the demo apps prefer the unoptimized but always-correct `tracking` method instead.
2021-10-19 08:57:45 +02:00
Gwendal Roué
0d8d40d683
Demo apps: document why we use .immediate observation scheduling
2021-10-19 08:55:41 +02:00
Gwendal Roué
5d69d2a35b
All demo apps provide unbounded read-only access to the database
...
Also, UIKit app now does not have to deal with an initial asynchronous delivery of players
2021-10-19 08:54:48 +02:00
Gwendal Roué
128399871a
Demo projects organization
2021-10-19 08:15:14 +02:00
Gwendal Roué
4dd5677755
Demo apps: rename newRandom to makeRandom
2021-10-19 08:03:56 +02:00
Gwendal Roué
dbf3335188
Demo apps: prefer inserted(_:) over mutating a temp variable
2021-10-19 08:02:09 +02:00
Gwendal Roué
048082f4b2
Demo apps: prefer isEmpty(db) over fetchCount(db) == 0
2021-10-19 07:58:03 +02:00
Gwendal Roué
6a980f90da
Async sequence is unsuitable for preventing flash of missing content
...
See https://forums.swift.org/t/52862 for a longer explanation.
Fortunately, we can base @Query on Combine publishers, which do not have this problem.
2021-10-18 08:41:44 +02:00
Gwendal Roué
e4bfea8bcc
Use inserted(_:) in order to avoid a temporary variable
2021-10-17 21:25:19 +02:00
Gwendal Roué
329a7c8301
@Query cleanup & documentation
2021-10-17 14:09:53 +02:00
Gwendal Roué
1ff5159d40
Add the MIT license to Query.swift
...
This file is designed to be copied into user apps: make sure the license comes along.
2021-10-17 13:38:28 +02:00
Gwendal Roué
d6f8a9a9ea
UIKit demo app is iOS15+/watchOS8+
2021-10-17 13:26:42 +02:00
Gwendal Roué
c711efc7e0
Combine demo app is iOS15+
2021-10-17 13:26:42 +02:00
Gwendal Roué
01d2bc89a9
Cleanup async demo app
2021-10-17 13:26:42 +02:00
Gwendal Roué
6bcee422b7
Improve tests of async demo app
2021-10-17 13:26:42 +02:00
Gwendal Roué
07faea9cfe
Restore demo app tests
2021-10-17 13:26:42 +02:00
Gwendal Roué
b76950f695
Follow EnvironmentValues.managedObjectContext example: appDatabase is not optional
2021-10-17 13:26:42 +02:00
Gwendal Roué
b9e79791a3
Modernize syntax
2021-10-17 13:26:42 +02:00
Gwendal Roué
533cef692f
Use SwiftUI Label
2021-10-17 13:26:42 +02:00
Gwendal Roué
0bed585fd0
Use dismiss from SwiftUI environment
2021-10-17 13:26:42 +02:00
Gwendal Roué
54bef0bba6
Workaround "flash of missing content" https://forums.swift.org/t/52862
2021-10-17 13:26:42 +02:00
Gwendal Roué
a7820f9a35
Cleanup
2021-10-17 13:26:42 +02:00
Gwendal Roué
bd89311f4d
Refactor Query for async sequences
2021-10-17 13:26:41 +02:00
Gwendal Roué
1e17bf011f
Refactor Query for AppDatabase access
2021-10-17 13:26:41 +02:00
Gwendal Roué
ed8ff31b3e
GRDBAsyncDemo
2021-10-17 13:26:41 +02:00
Gwendal Roué
0ead20cdd6
All async apis are experimental
2021-10-17 13:26:41 +02:00
Gwendal Roué
2ad6131d08
Require canImport(_Concurrency)
...
This fixes the build for macOS 11.5
2021-10-17 13:26:41 +02:00
Gwendal Roué
646782d499
test AsyncValueObservation with all DatabaseQueue & Pool
...
Also use .trackingConstantRegion since it triggers optimizations
2021-10-17 13:24:10 +02:00
Gwendal Roué
a888c46b1a
New: AsyncValueObservation
2021-10-17 13:24:10 +02:00
Gwendal Roué
046d1d6355
-Xfrontend -warn-concurrency -Xfrontend -enable-actor-data-race-checks
2021-10-17 13:24:10 +02:00
Gwendal Roué
8936ef6a40
DatabaseMigrator async methods
...
migrate(_:)
migrate(_:upTo:)
2021-10-17 13:24:10 +02:00
Gwendal Roué
8754b10a40
Documentation of DatabaseWriter async methods
2021-10-17 13:24:10 +02:00
Gwendal Roué
1f73c20ae2
DatabaseWriter async methods
...
write, writeWithoutTransaction, barrierWriteWithoutTransaction, erase, vacuum, vacuum(into:)
2021-10-17 13:24:10 +02:00
Gwendal Roué
a827188881
async DatabaseReader.unsafeRead
2021-10-17 13:23:34 +02:00
Gwendal Roué
64be4763f2
async DatabaseReader.read
2021-10-17 13:23:34 +02:00
Gwendal Roué
20a1c8666e
Merge pull request #1078 from groue/dev/qol
...
More convenience methods
2021-10-17 13:21:22 +02:00
Gwendal Roué
e6f00a7c4b
CHANGELOG
2021-10-17 13:11:06 +02:00
Gwendal Roué
aa05148a18
Documentation
2021-10-17 13:05:07 +02:00
Gwendal Roué
94c86211bc
Add inserted and saved in the list of record methods
2021-10-17 13:00:13 +02:00
Gwendal Roué
b4570c0e84
Fix typos in Table documentation
2021-10-17 12:56:24 +02:00
Gwendal Roué
8c9ac0ecd2
Documentation for exists, isEmpty, saved, inserted
2021-10-17 12:28:42 +02:00
Gwendal Roué
5f44162abe
Rename request.exists(_:) to isEmpty(_:)
2021-10-17 12:27:19 +02:00
Gwendal Roué
55b938a1f5
Test exists(_:), exists(_🔑 ) and exists(_🆔 )
2021-10-17 12:27:19 +02:00
Gwendal Roué
235ea2e689
Test saved(_:) and inserted(_:)
2021-10-17 12:27:19 +02:00
Gwendal Roué
7a046fb27e
exists(_:) quality of life improvements
2021-10-17 12:27:19 +02:00
Gwendal Roué
cbd68099a9
inserted(_:) and saved(_:) quality of life improvements
2021-10-17 12:27:19 +02:00
Gwendal Roué
6d44c05f3b
DatabasePool.erase() prevents concurrent reads until it has completed
2021-10-13 14:46:47 +02:00
Gwendal Roué
fe6d4665ee
CHANGELOG
2021-10-12 18:32:38 +02:00
Gwendal Roué
0c6c2c7eb4
Merge pull request #1076 from groue/dev/require-swift-5.3
...
Require Swift 5.3
2021-10-12 18:29:44 +02:00
Gwendal Roué
03fe178439
Bump Xcode compatibility version of projects (Xcode 12+)
2021-10-11 17:13:26 +02:00
Gwendal Roué
ff126c1543
SE-0276 Multi-Pattern Catch Clauses
2021-10-11 16:24:38 +02:00
Gwendal Roué
038c320f07
Require Swift 5.3.
2021-10-11 16:18:29 +02:00
Gwendal Roué
ba88a150c0
Improve inline doc of database access methods
2021-10-11 15:50:06 +02:00
Gwendal Roué
32df5e27c3
Test for DatabaseRegionObservation tracking DatabaseRegion.fullDatabase
2021-10-01 11:13:41 +02:00
Gwendal Roué
2d4398798a
SE-0299 for DatabaseRegionConvertible.fullDatabase
2021-10-01 11:13:20 +02:00
Gwendal Roué
32b2923e89
Merge branch 'development'
2021-09-25 19:44:17 +02:00
Gwendal Roué
dbb4668033
v5.12.0
2021-09-25 19:13:10 +02:00
Gwendal Roué
abcbf72421
CHANGELOG
2021-09-25 19:13:10 +02:00
Gwendal Roué
6724862eea
Bump min iOS version to 11.0
...
This drops support for 32 bit devices
Fix #1059
Fix #1033
2021-09-25 19:13:10 +02:00
Gwendal Roué
79c5c1d1ba
Failing test for #1059
...
Xcode 13, make test_install_SPM_ios_release
2021-09-25 19:13:10 +02:00
Gwendal Roué
bc9ea84bb2
Merge pull request #1052 from jason-gabriele/fix-swift-error
...
Change init to fix Swift error
2021-09-22 10:34:43 +02:00
Gwendal Roué
c0d70f9ef0
Refactor FTS5 tokenization in order to support custom tokenizers
2021-09-21 19:34:06 +02:00
Gwendal Roué
bcd65f534b
CHANGELOG
2021-09-20 17:55:56 +02:00
Gwendal Roué
7ae5010353
Document the tokenize(_:) method
2021-09-20 17:53:59 +02:00
Gwendal Roué
46eceb5e28
Document prefix-based FTS patterns
2021-09-20 17:47:17 +02:00
Gwendal Roué
dfe519ea9b
Build FTS patterns from prefixes
2021-09-20 17:35:47 +02:00
Gwendal Roué
b0b8872798
Expose FTS tokenization methods
2021-09-20 17:14:07 +02:00
jason
fbc0ee77bb
Change init to fix Swift error
2021-09-08 13:57:24 -07:00
Gwendal Roué
1acf8e4b1e
Merge branch 'development'
2021-09-03 14:59:18 +02:00
Gwendal Roué
042fbe958d
v5.11.0
2021-09-03 14:59:02 +02:00
Gwendal Roué
e4bc3da4d7
Merge pull request #1029 from sberrevoets/master
...
Column coding strategies for Codable records
2021-09-03 14:55:20 +02:00
Gwendal Roué
cc23263897
Update thank you notice
2021-09-03 14:51:01 +02:00
Gwendal Roué
c7e05caf86
CHANGELOG
2021-09-03 14:50:53 +02:00
Gwendal Roué
dabdb0d590
Merge branch 'development' into pr-1029
2021-09-03 14:37:29 +02:00
Gwendal Roué
14ca47f84d
CHANGELOG
2021-09-03 14:37:14 +02:00
Gwendal Roué
d63429ea23
DatabaseMigrator.migrations
2021-09-03 14:31:46 +02:00
Gwendal Roué
87e9a0d0e0
Add license
2021-08-30 19:21:37 +02:00
Gwendal Roué
d2e7485b02
Thorough testing of DatabaseColumnDecodingStrategy with including(all:)
...
We make sure strategies are correctly applied for each involved record type.
2021-08-29 14:14:31 +02:00
Gwendal Roué
c23d977759
Thorough testing of DatabaseColumnDecodingStrategy with including(optional:) and including(required:)
...
We make sure strategies are correctly applied for each involved record type.
2021-08-29 14:12:23 +02:00
Gwendal Roué
0842e11281
Thourough testing of DatabaseColumnDecodingStrategy
2021-08-29 13:53:22 +02:00
Gwendal Roué
e6e2536f6b
Reverse DatabaseColumnDecodingStrategy
...
It does not convert coding keys to columns, but columns to CodingKeys, exactly as JSONDecoder.KeyDecodingStrategy
2021-08-29 13:52:36 +02:00
Gwendal Roué
86e4adf860
Spot a design flaw
2021-08-29 10:08:08 +02:00
Gwendal Roué
c36aa2bfda
Fix typo
2021-08-29 09:59:49 +02:00
Gwendal Roué
427a00582f
Rename keyDecodingStrategy to columnDecodingStrategy
2021-08-29 09:55:06 +02:00
Gwendal Roué
6f024373b3
Fix failing test
2021-08-29 09:51:31 +02:00
Gwendal Roué
76f8b5547f
Failing test
2021-08-29 09:51:24 +02:00
Gwendal Roué
e60a31f401
Fix failing test
2021-08-29 09:40:32 +02:00
Gwendal Roué
8846ea3c25
Failing test
2021-08-29 09:40:16 +02:00
Gwendal Roué
d567630966
Column decoding strategy only applies to columns
2021-08-29 08:55:39 +02:00
Gwendal Roué
5a04183baf
Fix test name
2021-08-29 08:55:06 +02:00
Gwendal Roué
8aa640f84b
Documentation: Column Names Coding Strategies
2021-08-29 08:41:46 +02:00
Gwendal Roué
42045ad8fb
Merge remote-tracking branch 'origin/development' into pr1029
2021-08-29 08:37:13 +02:00
Gwendal Roué
0914b56c41
Add mark
2021-08-29 08:31:36 +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
Gwendal Roué
06763e47d2
Share convertToSnakeCase()
2021-08-28 16:05:41 +02:00
Gwendal Roué
5f23d97903
Add the custom strategies
2021-08-28 15:50:34 +02:00
Gwendal Roué
03a8e03a92
Documentation
...
Doc of cases is copied from JSONDecoder.KeyDecodingStrategy and JSONEncoder.KeyEncodingStrategy
2021-08-28 15:48:31 +02:00
Gwendal Roué
987b8a48e5
Key coding strategies transform keys into columns
...
They are not String transformers
2021-08-28 15:41:12 +02:00
Gwendal Roué
cbc24751d1
Merge pull request #1046 from groue/dev/issue1043
...
Improve performance of by-index row decoding
2021-08-28 15:28:19 +02:00
Gwendal Roué
e0b397fd4e
Upgrade versions of compared libraries
2021-08-28 14:55:18 +02:00
Gwendal Roué
c26df67e78
Raise the number of iterations for more precise average
2021-08-28 14:54:51 +02:00
Gwendal Roué
ae60de399e
Inline GRDBPrecondition
2021-08-28 14:54:51 +02:00
Gwendal Roué
b06dc5dc77
Do not inline RowDecodingError.valueMismatch creation
2021-08-28 14:54:51 +02:00
Gwendal Roué
c0c8eec75d
Replace _checkedIndex with _checkIndex
...
That's what the stdlib Array does
2021-08-28 14:54:51 +02:00
Gwendal Roué
151a457251
Inline StatementColumnConvertible decoding
2021-08-28 14:53:54 +02:00
Gwendal Roué
fc4b55dd97
Restore compilation flags to their pristine state
...
This reverts an undesired change in 0511fec001
2021-08-26 17:30:30 +02:00
Gwendal Roué
ba41c22304
Merge branch 'development'
2021-08-22 16:18:55 +02:00
Gwendal Roué
04c18e3fd6
v5.10.0
2021-08-22 16:18:25 +02:00
Gwendal Roué
28f2aa1423
Upgrade performance comparison dependencies
2021-08-22 16:18:25 +02:00
Gwendal Roué
5ecc069bb4
TODO
2021-08-22 13:34:07 +02:00
Gwendal Roué
47934cc858
TODO
2021-08-22 12:44:54 +02:00
Gwendal Roué
0511fec001
SE-0299: enhance access to Column.rowID
2021-08-22 12:42:53 +02:00
Gwendal Roué
14b5eea277
CHANGELOG
2021-08-22 11:12:10 +02:00
Gwendal Roué
c7294af809
Merge pull request #1038 from GetToSet/development
...
Add match operator in ColumnExpression for FTS5.
2021-08-22 11:10:02 +02:00
Gwendal Roué
8eff518850
Documentation for FTS5 column matching
2021-08-22 11:03:54 +02:00
Gwendal Roué
48ef691897
Disallow FTS5 column matching against NULL
...
SQLite just throws a syntax error
2021-08-22 11:03:18 +02:00
Ethan Wong
836432c4ce
Add tests of column matching expression for fts5
2021-08-22 16:30:07 +08:00
Ethan Wong
2f3311cd1e
Add match operator in ColumnExpression for FTS5
2021-08-22 16:12:39 +08:00
Gwendal Roué
8f7a2b6a8e
Documentation: Combine and Data Consistency
2021-08-21 18:18:57 +02:00
Gwendal Roué
7ae35068c4
Merge pull request #1037 from groue/dev/BUILD_LIBRARY_FOR_DISTRIBUTION
...
Support BUILD_LIBRARY_FOR_DISTRIBUTION
2021-08-21 17:34:32 +02:00
Gwendal Roué
6639e9c598
CHANGELOG
2021-08-21 15:55:37 +02:00
Gwendal Roué
e6cdbb156d
FAQ: Does GRDB support library evolution and ABI stability
2021-08-21 15:48:17 +02:00
Gwendal Roué
e2c9734df1
Specialize StatementColumnConvertible cursors
2021-08-21 15:48:07 +02:00
Gwendal Roué
18e9b1b9aa
Specialize StatementColumnConvertible decoding
2021-08-21 14:53:11 +02:00
Gwendal Roué
59c4d42076
Remove test warnings with BUILD_LIBRARY_FOR_DISTRIBUTION
2021-08-21 14:08:46 +02:00
Gwendal Roué
665770c50c
Remove all ABI annotations
2021-08-21 13:14:54 +02:00
Gwendal Roué
f36f4aaf74
Deprecate count(_ counted: SQLSelectable)
2021-08-21 12:44:14 +02:00
Gwendal Roué
2858b803d0
Remove useless <Void> qualifiers
...
SQLRequest and CommonTableExpression are <Row> by default
2021-08-21 12:25:04 +02:00
Gwendal Roué
faf100dbba
Merge pull request #1036 from groue/dev/github-action
...
Basic GitHub action
2021-08-21 12:10:53 +02:00
Gwendal Roué
8af2b4bf1b
Basic GitHub action
2021-08-21 12:06:09 +02:00
Gwendal Roué
253c878367
Cleanup
2021-08-17 08:30:51 +02:00
Gwendal Roué
f5b1219549
SQLStatementCursor no longer allocates a copy of the sql C string
...
Based on https://forums.swift.org/t/stable-pointer-into-a-c-string-without-copying-it/51244
2021-08-16 18:59:55 +02:00
Gwendal Roué
eda960de58
Merge branch 'development'
2021-08-15 19:12:58 +02:00
Gwendal Roué
f0443a63eb
v5.9.0
2021-08-15 19:12:48 +02:00
Gwendal Roué
24b978c3bb
Update thank you notice
2021-08-15 14:33:03 +02:00
Gwendal Roué
3d180183a4
CHANGELOG
2021-08-15 14:32:51 +02:00
Gwendal Roué
98930d7f1d
Merge pull request #1025 from DrawboardLtd/value-observer-reducer-locking
...
Added locking around `reducer` to mitigate Release build crashes.
2021-08-15 14:23:18 +02:00
Gwendal Roué
adc16ea7dc
Protect mutating TextOutputStream with a lock
...
This change addresses https://github.com/groue/GRDB.swift/pull/1025#issuecomment-898894618
2021-08-15 13:03:37 +02:00
Scott Berrevoets
79abf62a47
Fix name and convert Decodables as well
2021-08-14 21:45:35 -07:00
Scott Berrevoets
4ab7f1cf3e
Add support for encoding as well
2021-08-12 20:12:10 -07:00
Scott Berrevoets
cdc7805471
Add option for converting snake case
...
This adds an option to convert column names from snake case to camel
case, similar to how JSONDecoder works. In fact, the implementation here
is largely based on JSONDecoder's implementation.
2021-08-12 20:11:54 -07:00
Renaud Lienhart
7791e300d2
Use the ValueObserver.synchronized() helper
2021-08-06 09:27:39 +10:00
Matt Gallagher
8350dced55
Added locking around reducer to mitigate Release build crashes.
2021-08-06 09:10:29 +10:00
Gwendal Roué
97221c7bd6
Documentation
2021-07-31 09:39:24 +02:00
Gwendal Roué
eb6895207e
Remove Swiftlint warnings
2021-07-30 16:14:03 +02:00
Gwendal Roué
d93b2f16e4
Remove the promising swiftlint rule that catches urls in doc comments
...
It yields false positives.
https://github.com/groue/GRDB.swift/pull/1012#issuecomment-889919351
2021-07-30 16:12:47 +02:00
Gwendal Roué
f09a5e105d
CHANGELOG
2021-07-30 14:34:38 +02:00
Gwendal Roué
e6f6a11277
Merge pull request #1019 from groue/dev/merge-statements
...
Merge prepared statement types, and introduce statement cursor
2021-07-30 14:31:48 +02:00
Gwendal Roué
fe95d07062
Documentation
2021-07-30 14:25:49 +02:00
Gwendal Roué
dc3fac95db
allStatements() can build statements without any arguments
2021-07-30 14:24:08 +02:00
Gwendal Roué
be0a2c01e1
More allStatements() documentation
2021-07-30 13:55:59 +02:00
Gwendal Roué
f232dfde27
CHANGELOG
2021-07-30 13:44:23 +02:00
Gwendal Roué
e1dd96603b
Test that cursors can trigger transaction observers
...
This is important because users will start executing database modifications with fetching methods, now that they have db.allStatement().
2021-07-30 13:41:52 +02:00
Gwendal Roué
f2296c065a
Test that cursors can invalidate schema cache
...
This is important because users will start executing DROP statements with fetching methods, now that they have db.allStatement().
2021-07-30 13:02:36 +02:00
Gwendal Roué
096eeffecf
More allStatements() documentation
2021-07-30 12:54:52 +02:00
Gwendal Roué
6bbec1495d
fix typo
2021-07-30 08:53:31 +02:00
Gwendal Roué
a60fe170de
Document allStatements()
2021-07-30 08:51:57 +02:00
Gwendal Roué
5cd34da6ca
Use allStatements() from makeStatement()
2021-07-30 08:50:15 +02:00
Gwendal Roué
a4acbf4854
Tests consuming values from allStatements()
2021-07-29 23:04:02 +02:00
Gwendal Roué
c9eb67dae8
Database.allStatements(sql:literal:)
...
Addresses #1015
2021-07-29 22:41:49 +02:00
Gwendal Roué
bf601e6810
Merge SelectStatement and UpdateStatement
...
Addresses #1015
2021-07-29 20:20:15 +02:00
Gwendal Roué
c45f681813
Update thank you notice
2021-07-21 08:41:10 +02:00
Gwendal Roué
6a2645e0be
CHANGELOG
2021-07-21 08:40:53 +02:00
Gwendal Roué
96108a5b9b
Merge pull request #1012 from ZevEisenberg/add-brackets-to-urls
...
Add brackets to urls in doc comments to make them clickable
2021-07-21 07:53:58 +02:00
Zev Eisenberg
a6e0d47d61
Add lint rule to catch URLs in doc comments that are not wrapped in angle brackets.
2021-07-20 21:10:36 -04:00
Zev Eisenberg
8b060e6b09
Add angle brackets to URLs to make them clickable in Xcode's rendered documentation.
2021-07-20 20:53:58 -04:00
Gwendal Roué
f0a99a9100
Merge pull request #1010 from tternes/tt-add-vacuum-into
...
Add VACUUM INTO Support
2021-07-20 20:15:33 +02:00
Gwendal Roué
6cc45202a0
Enable vacuum(into:) with SQLCipher
2021-07-20 20:02:18 +02:00
Gwendal Roué
368594b051
Disable VACUUM INTO tests when not available
2021-07-20 19:42:40 +02:00
Gwendal Roué
8d4416d02e
Update thank you notice
2021-07-20 19:36:49 +02:00
Gwendal Roué
6db245efe5
CHANGELOG
2021-07-20 19:35:59 +02:00
Gwendal Roué
c115b6a92d
Explain why vacuum(into:) is not available on DatabaseReader
2021-07-20 19:31:22 +02:00
Thaddeus Ternes
dc40da1ef2
Improvements based on PR feedback
2021-07-19 21:59:43 -05:00
Gwendal Roué
374595d89e
Merge pull request #1009 from kaishin/patch-1
...
Remove extra dot at the end of reference URL
2021-07-19 18:49:23 +02:00
Gwendal Roué
2d05dd488c
Update TODO.md
2021-07-19 11:42:26 +02:00
Thaddeus Ternes
7d0c8c6657
Refactor tests, fix inline documentation parameter value
2021-07-12 02:28:49 -05:00
Thaddeus Ternes
ed9fb39982
Add inline documentation
2021-07-12 01:26:34 -05:00
Thaddeus Ternes
b28f75c5a2
Add VACUUM INTO support to DatabaseWriter
2021-07-12 01:19:45 -05:00
Reda Lemeden
1ac364defb
Remove extra dot at the end of reference URL
2021-07-12 02:11:34 +02:00
Gwendal Roué
e19de4e42e
Merge branch 'dev/codable-database-value' into development
2021-07-04 19:29:47 +02:00
Gwendal Roué
57cf9b45b6
Add missing Foundation import for SPM
2021-07-04 19:28:27 +02:00
Gwendal Roué
d772e8da3a
CHANGELOG
2021-07-04 18:37:44 +02:00
Gwendal Roué
ad48aa6eec
Document the default DatabaseValueConvertible+Codable implementation
2021-07-04 18:36:56 +02:00
Gwendal Roué
620eb6f21c
Default DatabaseValueConvertible+Codable implementation uses the JSON format
2021-07-04 17:34:31 +02:00
Gwendal Roué
653837bb02
Merge branch 'master' into development
2021-07-04 12:05:30 +02:00
Gwendal Roué
3de6f51427
Document that cipher_plaintext_header_size disables the salt
2021-07-01 09:12:57 +02:00
Gwendal Roué
9456fe809d
Fix for Xcode 11.4
2021-06-27 16:36:18 +02:00
Gwendal Roué
e907bc2686
Fix tvOS 14.5 simulator for Travis
2021-06-27 16:11:37 +02:00
Gwendal Roué
e386553c18
Update Makefile for Xcode 12.5
2021-06-27 16:04:58 +02:00
Gwendal Roué
3b435d018f
Use Xcode 12.5 on Travis
2021-06-27 15:54:56 +02:00
Gwendal Roué
b5de7a907a
Update link to 0xdead10cc documentation
2021-06-27 15:43:32 +02:00
Gwendal Roué
e5bb488b00
CHANGELOG
2021-06-27 15:39:21 +02:00
Gwendal Roué
76852c1f9c
Improve documentation about handling of NULL in foreign keys
2021-06-27 15:36:43 +02:00
Gwendal Roué
2f36fc06f5
Fix failing tests for #999
2021-06-27 15:36:12 +02:00
Gwendal Roué
ff576d945c
Failing tests for #999
2021-06-27 15:35:44 +02:00
Gwendal Roué
0098369e29
Simplify Refinable
2021-06-27 13:11:26 +02:00
Gwendal Roué
fb5a3ba388
CHANGELOG
2021-06-22 08:27:38 +02:00
Gwendal Roué
98f398cd75
Deemphasize Table
2021-06-22 08:26:55 +02:00
Gwendal Roué
f2dbbee428
Merge pull request #993 from groue/dev/Table
...
QueryInterfaceRequest builder with dynamic table/view name
2021-06-22 08:15:46 +02:00
Gwendal Roué
f54467af3c
Fix test for batch deletion of Identifiable type with Optional ID
2021-06-21 18:26:35 +02:00
Gwendal Roué
8c361acd7f
Update documentation: batch delete/updates are available on TableRecord
2021-06-21 18:21:04 +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é
120c973e29
Refactor test for association from CTE to Table
2021-06-20 14:31:45 +02:00
Gwendal Roué
17ee1debdc
Test associations from TableRecord to Table
2021-06-20 14:26:21 +02:00
Gwendal Roué
b154998ae6
Fix documentation
2021-06-20 11:57:53 +02:00
Gwendal Roué
eedd3af59b
Test association from CTE to Table
2021-06-20 11:54:55 +02:00
Gwendal Roué
c5b6325cf6
Table documentation
2021-06-20 11:39:14 +02:00
Gwendal Roué
629840f6f2
Table.fetchCount(_:)
2021-06-20 11:37:59 +02:00
Gwendal Roué
e7ef3e1867
Prevent aggregate misuse
...
I wrote association.max("id") when I meant association.max(Column("id"))
2021-06-20 11:08:24 +02:00
Gwendal Roué
32bbee9c8a
Tests for Table Associations
2021-06-20 11:07:38 +02:00
Gwendal Roué
9def48f4f6
Tests for Table
2021-06-19 17:31:40 +02:00
Gwendal Roué
92d10e2713
Table fetching methods
2021-06-19 17:31:23 +02:00
Gwendal Roué
3d855a6a90
Table request methods
2021-06-19 15:25:14 +02:00
Gwendal Roué
d7971d76e7
Introduce Table
2021-06-19 14:30:04 +02:00
Gwendal Roué
220d221ea6
CHANGELOG
2021-06-19 14:03:37 +02:00
Gwendal Roué
2ce588ad76
Cached statements from a SQL literal
...
Addresses https://github.com/groue/GRDB.swift/issues/985#issuecomment-859570434
2021-06-19 13:57:53 +02:00
Gwendal Roué
7050e3cc48
Naive fix for #983
2021-06-19 13:31:30 +02:00
Gwendal Roué
fed0b6b136
CHANGELOG
2021-06-19 13:24:27 +02:00
Gwendal Roué
e3674ccdf2
Documentation for selectID()
2021-06-19 13:21:13 +02:00
Gwendal Roué
046564dab6
Fix #991
2021-06-19 13:05:24 +02:00
Gwendal Roué
d6069888b8
Update thank you notice
2021-06-19 12:24:31 +02:00
Gwendal Roué
a9ea79dba9
CHANGELOG
2021-06-19 12:24:23 +02:00
Gwendal Roué
18083165a1
Merge pull request #989 from pp5x/pp5x/fts-synchronize-if-not-exists
...
FTS: add support of ifNotExists in synchronize()
2021-06-19 12:20:13 +02:00
Gwendal Roué
1aeb10439f
synchronize: failing test for FTS5 ifNotExists support
2021-06-17 19:30:24 +02:00
Gwendal Roué
1a2de126ce
Fix #988
2021-06-17 19:30:03 +02:00
Pierre Pagnoux
d8cb3066a1
synchronize: failing test for ifNotExists support
2021-06-15 17:35:45 +02:00
Gwendal Roué
c3b3d2eeb8
Fix Xcode 13 beta 1 compilation warnings
2021-06-08 05:54:45 +02:00
Gwendal Roué
52b1727bb3
Fix Xcode 13 beta 1 compilation error
2021-06-08 05:54:31 +02:00
Gwendal Roué
a328349514
Thank you notice
2021-05-31 14:04:02 +02:00
Gwendal Roué
5666ffb4a7
CHANGELOG
2021-05-31 14:03:56 +02:00
Gwendal Roué
e6ef8740eb
Merge branch 'master' into development
2021-05-31 13:58:51 +02:00
Gwendal Roué
df6c2e2b05
Merge pull request #980 from jroselightricks/feature/spelling
...
Fix spelling succesful -> successful.
2021-05-31 13:58:25 +02:00
Jonathan Rose
ae7f83dc40
Fix spelling succesful -> successful.
2021-05-31 14:28:28 +03:00
Gwendal Roué
1693a706e0
Skip tests that do not support encrypted databases
2021-05-29 13:26:17 +02:00
Gwendal Roué
af13c91744
Merge branch 'development'
2021-05-16 15:25:33 +02:00
Gwendal Roué
b5dea2164f
v5.8.0
2021-05-16 15:25:15 +02:00
Gwendal Roué
148897ad73
Simplify
2021-05-04 07:27:21 +02:00
Gwendal Roué
095bfde072
CHANGELOG
2021-05-02 18:05:13 +02:00
Gwendal Roué
fabdb73785
Merge pull request #967 from steipete/peter/selectStatement-Debug
...
Make SelectStatement conform to CustomStringConvertible
2021-05-02 18:03:44 +02:00
Gwendal Roué
f30f970cf2
Merge pull request #973 from groue/dev/issue-971
...
Restore access to attached databases from record types
2021-05-02 10:12:58 +02:00
Gwendal Roué
1c2499528c
Merge branch 'development' into dev/issue-971
2021-05-02 10:12:41 +02:00
Gwendal Roué
766e731bf9
Merge pull request #974 from groue/dev/issue-965
...
Provide access to included associations when root table is not selected
2021-05-02 10:11:12 +02:00
Gwendal Roué
b9496a01e1
Simplify FAQ now that Statement conforms to CustomStringConvertible
2021-05-02 10:07:07 +02:00
Gwendal Roué
1554c80fdb
Statement.sql checks correct scheduling
2021-05-02 10:02:21 +02:00
Gwendal Roué
61ee7cc3f7
Move SelectStatement.description to Statement
2021-05-02 10:01:44 +02:00
Gwendal Roué
0f481e7867
CHANGELOG
2021-05-01 17:32:02 +02:00
Gwendal Roué
ed3397176a
Documentation
2021-05-01 17:28:49 +02:00
Gwendal Roué
5f4c64ceda
Fix failing tests for #965
2021-05-01 17:00:12 +02:00
Gwendal Roué
e5a810105a
Failing tests for #965
2021-05-01 16:59:38 +02:00
Gwendal Roué
a46b2ad127
Fix "cannot ATTACH database within transaction" error in older versions of SQLite
2021-05-01 15:08:36 +02:00
Gwendal Roué
3ccac4098a
CHANGELOG
2021-05-01 15:06:08 +02:00
Gwendal Roué
a4e8bbe2da
Add test for cross-attached-databases association
2021-05-01 14:55:53 +02:00
Gwendal Roué
52bc7eb7c6
Cleanup
2021-05-01 14:40:20 +02:00
Gwendal Roué
e8802fb010
Fix #971
2021-05-01 14:32:01 +02:00
Gwendal Roué
885f43dbad
Failing tests for #971
2021-05-01 14:27:44 +02:00
Peter Steinberger
5dfab017e5
Make SelectStatement conform to CustomStringConvertible
2021-04-22 14:12:10 +02:00
Gwendal Roué
35d6ac0041
CHANGELOG
2021-04-18 18:21:22 +02:00
Gwendal Roué
eae64b587a
Documentation
2021-04-18 17:25:05 +02:00
Gwendal Roué
fb6ae07722
Documentation
2021-04-18 17:22:08 +02:00
Gwendal Roué
491e17f62e
Documentation
2021-04-18 17:21:13 +02:00
Gwendal Roué
f521002e74
Documentation
2021-04-18 17:17:30 +02:00
Gwendal Roué
bbaee79618
Documentation
2021-04-18 17:10:47 +02:00
Gwendal Roué
64951c84d7
Documentation
2021-04-18 17:08:02 +02:00
Gwendal Roué
5996b64469
Documentation
2021-04-18 17:00:55 +02:00
Gwendal Roué
65b2fecdfc
Documentation
2021-04-18 16:56:38 +02:00
Gwendal Roué
232086e50e
Documentation
2021-04-18 16:41:53 +02:00
Gwendal Roué
8f7feda27c
Documentation
2021-04-18 16:31:44 +02:00
Gwendal Roué
6aa6c4d4b5
Documentation
2021-04-18 16:19:06 +02:00
Gwendal Roué
afc360cf78
Documentation
2021-04-18 16:13:42 +02:00
Gwendal Roué
5673d73738
Documentation
2021-04-18 16:09:22 +02:00
Gwendal Roué
4a894f2b43
Documentation
2021-04-18 16:05:35 +02:00
Gwendal Roué
83cd6d1469
Change Query Interface Organization picture
2021-04-18 14:28:48 +02:00
Gwendal Roué
0b2e5d836f
Query Interface Organization
2021-04-18 14:26:46 +02:00
Gwendal Roué
b9576aedbe
SQLCollection is not public
2021-04-18 11:41:11 +02:00
Gwendal Roué
2f549d21bf
Can't articulate distinctive features yet
2021-04-18 11:28:56 +02:00
Gwendal Roué
4d6958b52a
Documentation
2021-04-17 20:55:21 +02:00
Gwendal Roué
588b2677e7
Documentation
2021-04-17 20:52:26 +02:00
Gwendal Roué
66e52eea40
Documentation
2021-04-17 20:46:29 +02:00
Gwendal Roué
975cbaa7e8
MyPlayground setup
2021-04-17 20:31:27 +02:00
Gwendal Roué
9e265f7ebc
Documentation
2021-04-17 20:19:33 +02:00
Gwendal Roué
37522f3766
Documentation
2021-04-17 19:55:01 +02:00
Gwendal Roué
4980beda69
Documentation
2021-04-17 16:47:28 +02:00
Gwendal Roué
69b9c7331f
Documentation
2021-04-17 16:46:16 +02:00
Gwendal Roué
28375f5c1a
Organization image
2021-04-17 16:41:37 +02:00
Gwendal Roué
e019617a50
Documentation
2021-04-17 16:21:11 +02:00
Gwendal Roué
8ff0c456dc
Documentation
2021-04-17 16:13:49 +02:00
Gwendal Roué
744b0c5661
Documentation
2021-04-17 16:10:28 +02:00
Gwendal Roué
c6003143c4
Documentation
2021-04-17 16:04:51 +02:00
Gwendal Roué
b0545bcfb0
CHANGELOG
2021-04-17 15:52:17 +02:00
Gwendal Roué
3976feb6ab
Query Interface Organization
2021-04-17 15:52:11 +02:00
Gwendal Roué
002399ff1a
Remove limit(_:offset:) from documentation
2021-04-17 15:44:53 +02:00
Gwendal Roué
cdc21531fc
Query Interface Organization
2021-04-17 15:41:03 +02:00
Gwendal Roué
7afe011b69
Improve documentation
2021-04-17 15:38:30 +02:00
Gwendal Roué
12809f5891
Fix duplicate file warning
2021-04-17 13:22:27 +02:00
Gwendal Roué
7fd51f440a
Warn about DerivableRequest.limit(_:offset:)
...
We can't deprecate it because the compiler emits a warning on acceptable request.limit() calls :-(
2021-04-17 13:22:08 +02:00
Gwendal Roué
4f0d3b31e1
SQLRequest is SQLRequest<Row> unless stated otherwise
2021-04-17 12:53:20 +02:00
Gwendal Roué
36039fb6a3
Documentation
2021-04-17 12:48:18 +02:00
Gwendal Roué
e66e59cd21
Remove misleading documentation
...
Limiting to-many associations does not do what this false documentation is saying
2021-04-15 18:24:54 +02:00
Gwendal Roué
a3279c9f63
Distinctive Features
2021-04-15 18:02:43 +02:00
Gwendal Roué
5ed64ea8f8
CHANGELOG
2021-04-14 20:13:58 +02:00
Gwendal Roué
62763ece52
Documentation for LIKE ESCAPE
2021-04-14 20:12:02 +02:00
Gwendal Roué
c50f698eae
Add support for the ESCAPE clause of the LIKE operator
...
Address #962
2021-04-14 20:06:54 +02:00
Gwendal Roué
31e2b01c10
Merge branch 'development'
2021-04-11 16:32:47 +02:00
Gwendal Roué
7fd786955c
v5.7.4
2021-04-11 16:17:39 +02:00
Gwendal Roué
af13283aa7
Update thank you notice
2021-04-11 15:48:56 +02:00
Gwendal Roué
6a5d196c2d
CHANGELOG
2021-04-11 15:47:32 +02:00
Gwendal Roué
6959ac80b5
Merge pull request #960 from MartinP7r/userinfo_tests
...
adds test for userInfo being applied to database encoder/decoder
2021-04-11 15:40:03 +02:00
Martin Pfundmair
0c4e483e9e
adds test for userInfo in EncodableRecord.databaseJSONDecoder()
...
Making sure that `databaseEncodingUserInfo` is being applied to `FetchableRecord.databaseJSONDecoder()`
This tries to cover the other half of the changes in PR groue#958
2021-04-11 09:29:33 +09:00
Gwendal Roué
f9c162b657
CHANGELOG
2021-04-10 18:16:53 +02:00
Gwendal Roué
c0f537c5e6
Merge pull request #956 from groue/dev/observation-case-insensitivity
...
Fix case-sensitivity of region-based database observation
2021-04-10 18:12:03 +02:00
Martin Pfundmair
8895d590a0
adds test for userInfo in FetchableRecord.databaseJSONDecoder()
...
Making sure that databaseDecodingUserInfo is being applied to FetchableRecord.databaseJSONDecoder()
This tries to cover some of the changes in PR groue#958
2021-04-11 00:02:09 +09:00
Gwendal Roué
a44c518e31
Fix DatabaseRegion tests for tvOS 10.2
2021-04-10 16:27:46 +02:00
Gwendal Roué
0571d9b3b8
Fix DatabaseRegion tests for iOS 10.3.1
2021-04-10 16:27:45 +02:00
Gwendal Roué
c0a3e61253
DatabaseRegion is now case-preserving and case-insensitive
2021-04-10 16:27:45 +02:00
Gwendal Roué
c02901b335
Fix canonicalName(_:ofType:)
2021-04-10 16:27:45 +02:00
Gwendal Roué
ee2d6d8074
CaseInsensitiveIdentifier should help
2021-04-10 16:27:45 +02:00
Gwendal Roué
b51dc81c3a
Failing tests for #954
2021-04-10 16:27:45 +02:00
Gwendal Roué
47199ed72b
Merge branch 'master' into development
2021-04-10 16:26:55 +02:00
Gwendal Roué
28bddb04fa
Merge pull request #955 from steipete/peter/query-base
...
Ensure Query can be updated
2021-04-10 16:20:14 +02:00
Gwendal Roué
c34615ced3
Document that @steipete's test has turned moot
...
We don't 100% need to address this now, but we 100% need to remember this in the future.
2021-04-10 16:10:02 +02:00
Gwendal Roué
a5ffc52dbe
Restore the barebone app setup
...
Leave the AppView(initialOrdering:) initializer, though, so that readers can get some inspiration.
2021-04-10 15:45:00 +02:00
Gwendal Roué
fd61a5f1ea
Remove 14.5 IPHONEOS_DEPLOYMENT_TARGET
...
Tests succeed on 14.4, and 14.0 target does not generate any Xcode warning
2021-04-10 15:37:18 +02:00
Gwendal Roué
0f70e9d9c9
Remove all DEVELOPMENT_TEAM from demo app
2021-04-10 15:35:42 +02:00
Gwendal Roué
d4f1102976
Document how AppDatabase.makeShared() supports test
...
This helps readers understand the purpose of those lines, and remove them if they are not interested.
2021-04-10 15:07:02 +02:00
Martin Pfundmair
1591948c10
Merge pull request #958 from Rightpoint/userinfo-fix
...
Always add userInfo to databaseJSONDecoder and databaseJSONEncoder
2021-04-10 15:21:52 +09:00
Chris Ballinger
43de1c24a7
Add userInfo to databaseJSONDecoder and databaseJSONEncoder
2021-04-08 13:11:59 -07:00
Peter Steinberger
481f6e93e5
Add UI test to show late-changing of Query
2021-04-08 10:41:20 +02:00
Peter Steinberger
6887441264
Ensure Query can be updated
2021-04-07 15:32:59 +02:00
Gwendal Roué
e017eddf4f
Merge branch 'development'
2021-04-05 17:00:08 +02:00
Gwendal Roué
53d75c37aa
v5.7.3
2021-04-05 16:59:44 +02:00
Gwendal Roué
331990ce33
CHANGELOG
2021-04-05 16:54:56 +02:00
Gwendal Roué
63a52acb34
Merge pull request #953 from groue/dev/refactor-SwiftUI-demo
...
Refactor the SwiftUI demo app
2021-04-05 16:51:17 +02:00
Gwendal Roué
6958a10a08
Refactor the SwiftUI demo application
2021-04-05 15:28:45 +02:00
Martin Pfundmair
5d14b3d6db
Merge pull request #952 from holsety/tiny/typo
...
Fix a tiny typo
2021-04-05 08:00:44 +09:00
hlst
de0709163c
Fix a tiny typo
2021-04-05 06:31:56 +08:00
Gwendal Roué
8c872fccfc
End of experiment. But we squeezed a few more cycles :-)
2021-04-04 13:50:17 +02:00
Martin Pfundmair
46867877fd
Merge pull request #951 from alexwlchan/patch-1
...
Fix a typo: "bet set" ~> "be set"
2021-04-04 09:25:09 +09:00
Alex Chan
622ecda283
Fix a typo: "bet set" ~> "be set"
2021-04-03 21:06:05 +01:00
Gwendal Roué
5f9911ff0d
Performance tests for optimized records
2021-04-03 18:02:15 +02:00
Gwendal Roué
eaf830c05c
Fix paths in performance report
2021-04-03 16:47:53 +02:00
Gwendal Roué
064dec5095
Upgrade Realm
2021-04-03 16:26:27 +02:00
Gwendal Roué
89521a7288
Improve statement binding performance
2021-04-03 14:52:22 +02:00
Gwendal Roué
76d4e38cd1
CHANGELOG and thank you notice for #950
2021-04-02 08:29:25 +02:00
Gwendal Roué
c56a56a2f3
Merge pull request #950 from MartinP7r/fix/json-column-memory
...
Fix memory consumption when encoding JSON columns
2021-04-02 08:26:21 +02:00
Martin Pfundmair
02d3518194
adds autoreleasepool for databaseJSONEncoder
...
when encoding json columns in order to prevent memory build up
2021-04-01 18:40:19 +09:00
Gwendal Roué
67892d7cdb
CHANGELOG
2021-03-29 06:12:17 +02:00
Gwendal Roué
0e091124a2
v5.7.2
2021-03-29 06:09:24 +02:00
Gwendal Roué
2402185235
Make SQLLiteral public
2021-03-29 06:08:44 +02:00
Gwendal Roué
f406062b81
Merge pull request #948 from xAlien95/patch-1
...
Fix documentation typo
2021-03-29 06:06:17 +02:00
Stefano De Carolis
7bf25925c7
Fix documentation typo
2021-03-29 02:25:10 +02:00
Gwendal Roué
8dd8a57de3
v5.7.1
2021-03-28 15:33:58 +02:00
Gwendal Roué
fa8a8f0b87
Add fixit for SQLLiteral
2021-03-28 15:31:23 +02:00
Gwendal Roué
fa2c489ee4
Fix typo
2021-03-28 10:20:35 +02:00
Gwendal Roué
2cb0baf88e
Merge branch 'development'
2021-03-28 10:17:20 +02:00
Gwendal Roué
1ab23dfa52
v5.7.0
2021-03-28 10:16:20 +02:00
Gwendal Roué
bd29585461
Wording
2021-03-28 10:12:55 +02:00
Gwendal Roué
f1cd6dbae8
CHANGELOG
2021-03-28 09:56:47 +02:00
Gwendal Roué
a91d9b23e0
Merge pull request #947 from Rightpoint/codable-access
...
Allow access to Encoder from KeyedEncodingContainer
2021-03-28 09:51:57 +02:00
Gwendal Roué
7eb348cb2a
[skip travis] New Identifiable Records documentation chapter
2021-03-28 08:39:43 +02:00
Gwendal Roué
ab4ae144ac
[skip travis] Simplify Record introduction
2021-03-28 07:51:12 +02:00
Gwendal Roué
09899e9bcf
filter(id:) does not accept optionals
2021-03-28 06:48:22 +02:00
Gwendal Roué
2625653532
Improve documentation of the EXISTS operator
2021-03-27 22:49:58 +01:00
Gwendal Roué
ea26dea687
Fix typo
2021-03-27 22:20:30 +01:00
Gwendal Roué
4a17281bd7
Fix typo
2021-03-27 22:09:11 +01:00
Gwendal Roué
e9ba3e6ccc
Fix typo
2021-03-27 22:08:20 +01:00
Gwendal Roué
9692410e7d
CHANGELOG
2021-03-27 22:07:09 +01:00
Gwendal Roué
b69dfb1709
Document the type-safe extensions to Identifiable records
2021-03-27 22:07:04 +01:00
Gwendal Roué
4307eedbc0
Update demo apps with the new type-safe primary key methods
2021-03-27 21:10:34 +01:00
Gwendal Roué
521f9e498a
deleteOne(_🆔 ) and deleteAll(_:ids:)
2021-03-27 21:07:01 +01:00
Gwendal Roué
e7ce5f13e7
Tests for rowid filtering of Identifiable types
2021-03-27 21:06:01 +01:00
Gwendal Roué
55c0abef8b
Tests for id filtering of Identifiable types
2021-03-27 19:46:03 +01:00
Gwendal Roué
9489174b98
Filter by id for Identifiable types with optional ID type
2021-03-27 18:47:16 +01:00
Gwendal Roué
b086b99821
Filter by id for Identifiable types
2021-03-27 17:43:01 +01:00
Chris Ballinger
984dea156c
Allow access to Encoder and Decoder from KeyedCodingContainer
2021-03-27 08:57:44 -07:00
Gwendal Roué
1297a781fd
Better fatal error messages for unimplemented features
2021-03-27 16:41:23 +01:00
Gwendal Roué
c4f9ddd688
Simplify handling of collated expressions
2021-03-27 16:34:37 +01:00
Gwendal Roué
fcff9b34ba
Make sure empty migrator publisher is async as well
2021-03-27 15:23:30 +01:00
Gwendal Roué
914ad1b882
Address #945 by running a distinctive query
...
When a user finds this query in the error log, it will be easier for everybody to understand why it happens.
2021-03-27 14:56:08 +01:00
Gwendal Roué
b13922b76e
Database schema cache distinguishes the main from the temp schema
...
Addresses https://github.com/groue/GRDB.swift/pull/946#issuecomment-805756799
2021-03-27 14:50:25 +01:00
Gwendal Roué
f6f4839e07
Document that WITHOUT ROWID tables can't be tracked ( #945 )
2021-03-27 11:50:38 +01:00
Gwendal Roué
c5aeec3385
Documentation
2021-03-23 18:33:02 +01:00
Gwendal Roué
21b22ab3fb
Travis: check old Xcode version first
2021-03-21 16:38:26 +01:00
Gwendal Roué
39eb57fe64
Fix for Xcode 11.4
2021-03-21 16:36:54 +01:00
Gwendal Roué
bbacfd5ec1
Wording
2021-03-21 16:32:35 +01:00
Gwendal Roué
7bbec01dec
Remove references to GRDBObjc
2021-03-21 14:25:19 +01:00
Gwendal Roué
969f28945c
Focus
2021-03-21 14:20:25 +01:00
Gwendal Roué
869f6cb3b3
Focus
2021-03-21 14:19:49 +01:00
Gwendal Roué
607e53b04e
Add an "In a glance" usage section
2021-03-21 14:14:15 +01:00
Gwendal Roué
051fdb37b6
Rename SQLLiteral to SQL
2021-03-21 13:33:49 +01:00
Gwendal Roué
db963cbbb2
TODO
2021-03-21 13:05:45 +01:00
Gwendal Roué
13120063e0
TODO
2021-03-21 13:01:00 +01:00
Gwendal Roué
be02e920d2
Dry up number documentation
2021-03-21 12:58:52 +01:00
Gwendal Roué
901b9c6fe6
More NSNumber/NSDecimalNumber tests
2021-03-21 12:58:11 +01:00
Gwendal Roué
64f5e6bdca
Always use Decimal(string:) when decoding strings
2021-03-21 12:57:50 +01:00
Gwendal Roué
178727fd5b
CHANGELOG
2021-03-20 20:22:40 +01:00
Gwendal Roué
791a8ed41b
Update documentation for NSNumber, NSDecimalNumber, and Decimal
2021-03-20 20:14:31 +01:00
Gwendal Roué
d9083a7bf5
Support for Foundation.Decimal
2021-03-20 20:11:26 +01:00
Gwendal Roué
e355af3584
Decode NSNumber from textual database values
2021-03-20 17:15:16 +01:00
Gwendal Roué
5b39494125
TODO
2021-03-20 15:51:06 +01:00
Gwendal Roué
4f709e8e4f
CHANGELOG
2021-03-20 15:51:01 +01:00
Gwendal Roué
63448fb0bc
Documentation for EXISTS
2021-03-20 15:47:00 +01:00
Gwendal Roué
989a0e82eb
Test for EXISTS expression
2021-03-20 15:46:46 +01:00
Gwendal Roué
8ba05a011d
EXISTS expression
2021-03-20 15:24:32 +01:00
Gwendal Roué
659e6a53bb
Documentation
2021-03-20 14:40:17 +01:00
Gwendal Roué
8a7ab17349
TODO
2021-03-20 14:37:54 +01:00
Gwendal Roué
3113e20f69
CHANGELOG
2021-03-20 14:37:13 +01:00
Gwendal Roué
e44dc8486a
Documentation for asynchronous migrations
2021-03-20 14:33:37 +01:00
Gwendal Roué
21a2206443
Remove asynchronous migration to target identifier
...
Migrating up to a specific identifier is a test-oriented use case: it does not need any async version.
2021-03-20 14:20:41 +01:00
Gwendal Roué
f38c2ff754
Test DatabasePublishers.Migrate
2021-03-20 14:12:09 +01:00
Gwendal Roué
8ad880e20d
DatabaseMigrator publisher
2021-03-20 14:11:43 +01:00
Gwendal Roué
50cec3fce7
Asynchronous migrations tests
2021-03-20 13:27:40 +01:00
Gwendal Roué
c9c652dddc
DatabaseMigrator async migrations
2021-03-20 13:25:43 +01:00
Gwendal Roué
edde38837e
TODO
2021-03-20 12:21:53 +01:00
Gwendal Roué
c4443eead8
SELECT * FROM cte is no longer a special case, because SQLGenerationContext knows about the available CTEs
2021-03-19 19:06:47 +01:00
Gwendal Roué
7c023d5c1f
CHANGELOG
2021-03-18 19:30:50 +01:00
Gwendal Roué
99a06f1c05
CHANGELOG
2021-03-18 19:29:02 +01:00
Gwendal Roué
0c2b5318bf
Documentation
2021-03-18 19:28:46 +01:00
Gwendal Roué
c47316a846
Documentation
2021-03-18 19:25:07 +01:00
Gwendal Roué
529b042b8a
Database.makeSelectStatement(literal:) tests
2021-03-18 19:24:37 +01:00
Gwendal Roué
5aa1184e68
Database.makeSelectStatement(literal:)
2021-03-18 19:24:24 +01:00
Gwendal Roué
a912c5cbe5
Documentation
2021-03-18 18:53:16 +01:00
Gwendal Roué
3753bd8d6d
Database.makeUpdateStatement(literal:) tests
2021-03-18 18:48:22 +01:00
Gwendal Roué
a6f7d9ba86
Database.makeUpdateStatement(literal:) accepts all arguments, or no arguments
2021-03-18 18:48:06 +01:00
Gwendal Roué
fdc47d7158
Database.makeUpdateStatement(literal:)
2021-03-18 17:08:25 +01:00
Gwendal Roué
8aa4807f9b
CHANGELOG
2021-03-17 21:57:49 +01:00
Gwendal Roué
339fbdf1ce
Literal column alteration
2021-03-17 21:54:56 +01:00
Gwendal Roué
ada972d78d
Documentation
2021-03-17 21:31:35 +01:00
Gwendal Roué
085c8f5953
Literal table and constraint definition
2021-03-17 20:26:49 +01:00
Gwendal Roué
1f4db99a37
Documentation fix
2021-03-17 20:26:10 +01:00
Gwendal Roué
076813826f
CHANGELOG
2021-03-17 19:01:04 +01:00
Gwendal Roué
fcb6049381
Test SQLLiteral protocols in practice
2021-03-17 18:21:44 +01:00
Gwendal Roué
4c88d792f0
Documentation
2021-03-14 14:13:29 +01:00
Gwendal Roué
9d64a32814
Improve SQLLiteral documentation
2021-03-14 13:26:16 +01:00
Gwendal Roué
77db650464
More SQLLiteral interpolation test
2021-03-14 13:08:10 +01:00
Gwendal Roué
0e8a42aedc
Tests for interpretations of SQLLiteral
...
If those tests break, we have introduced a breaking change.
2021-03-14 12:57:15 +01:00
Gwendal Roué
8ad096ae35
Refactor column counting for improved testability
2021-03-14 11:49:35 +01:00
Gwendal Roué
ac436a2770
Make SQLLiteral less painful to use
2021-03-14 11:09:29 +01:00
Gwendal Roué
0133ff9056
Merge pull request #938 from michaelkirk/patch-1
...
fix small typos
2021-03-13 07:56:31 +01:00
Michael Kirk
178fb8688a
fix small typos
2021-03-12 15:53:35 -08:00
Gwendal Roué
0b5f7e960b
[skip travis] Mention key-value tables as a valid alternative
...
Inspired from https://twitter.com/dhartbit/status/1370434943956959238
2021-03-12 19:30:42 +01:00
Gwendal Roué
ae3c491661
Merge branch 'development'
2021-03-12 17:47:50 +01:00
Gwendal Roué
8548d7a727
v5.6.0
2021-03-12 17:12:41 +01:00
Gwendal Roué
daab7aef2c
Fix typo
2021-03-12 15:37:29 +01:00
Gwendal Roué
ba9b4db197
Fix typo
2021-03-12 15:33:35 +01:00
Gwendal Roué
cab795a4a9
Wording
2021-03-12 15:32:00 +01:00
Gwendal Roué
b331a715ef
CHANGELOG
2021-03-12 15:30:31 +01:00
Gwendal Roué
48e214b4b3
Link to demo app tests
2021-03-12 14:42:51 +01:00
Gwendal Roué
65beb24d41
Simplify
2021-03-12 14:33:01 +01:00
Gwendal Roué
e1c7150714
Documentation
2021-03-12 14:26:43 +01:00
Gwendal Roué
cc93f43ee4
Better introduction to DerivableRequest
...
Also reintroduce extensions to QueryInterfaceRequest
2021-03-12 14:24:47 +01:00
Gwendal Roué
33174fce8e
Documentation
2021-03-12 14:00:31 +01:00
Gwendal Roué
cb8611587c
Fix Swiftlint warning
2021-03-12 13:48:41 +01:00
Gwendal Roué
6e7555514a
More collection initializers from cursors
...
- support for minimumCapacity
- support for Dictionary (cursors with unique keys)
2021-03-12 13:48:25 +01:00
Gwendal Roué
8b1efb2c80
Single-Row Tables guide
2021-03-12 11:31:32 +01:00
Gwendal Roué
8388486289
TODO
2021-03-12 08:32:32 +01:00
Gwendal Roué
c3dcd7636e
Merge pull request #936 from groue/dev/more-eager-loading
...
Complete Associations and the DerivableRequest Protocol
2021-03-11 19:35:39 +01:00
Gwendal Roué
464b77bdcd
Improve "Record Types Hide Intimate Database Details"
2021-03-10 13:25:25 +01:00
Gwendal Roué
fe437fb7e3
Improve "Record Types Hide Intimate Database Details"
2021-03-10 13:21:25 +01:00
Gwendal Roué
1a2a6898eb
Improve "Record Types Hide Intimate Database Details"
2021-03-10 13:07:16 +01:00
Gwendal Roué
de2a37fb89
Improve "Record Types Hide Intimate Database Details"
2021-03-10 13:06:05 +01:00
Gwendal Roué
1d5604815d
Improve "Record Types Hide Intimate Database Details"
2021-03-10 13:05:11 +01:00
Gwendal Roué
4de5059373
Improve "Record Types Hide Intimate Database Details"
2021-03-10 12:55:25 +01:00
Gwendal Roué
850040c51e
Fix typo
2021-03-10 09:02:00 +01:00
Gwendal Roué
eb0983facd
Wording
2021-03-10 08:59:40 +01:00
Gwendal Roué
9e974a4c96
Fix typo
2021-03-10 08:58:39 +01:00
Gwendal Roué
609fcf6a6d
CHANGELOG
2021-03-10 08:57:46 +01:00
Gwendal Roué
5e61d38272
Add a Record Types Hide Intimate Database Details chapter
2021-03-10 08:56:53 +01:00
Gwendal Roué
cdbca5d215
Fix sample code
2021-03-09 08:29:14 +01:00
Gwendal Roué
9bda5fc41b
Move the Further Refinements to Associations chapter
2021-03-09 08:27:29 +01:00
Gwendal Roué
04d35381a6
Documentation
2021-03-09 07:57:57 +01:00
Gwendal Roué
1f27e724c9
Open a door
2021-03-09 07:21:43 +01:00
Gwendal Roué
b22afd7f17
CHANGELOG
2021-03-08 21:56:47 +01:00
Gwendal Roué
ed3d1e1ac4
selectOnly() clears the isDistinct flag
2021-03-08 21:36:09 +01:00
Gwendal Roué
4521e6b37d
Make filterPromise an optional promise instead of a promise of optional
...
This way, filterPromise and havingExpressionPromise have the same type
2021-03-08 21:25:27 +01:00
Gwendal Roué
42718db49d
Documentation
2021-03-08 21:11:36 +01:00
Gwendal Roué
e08df854dd
Lower the tone about record responsabilities
2021-03-08 20:50:17 +01:00
Gwendal Roué
f4b7d99aab
Remove warning about associations that use CTEs
2021-03-08 19:59:47 +01:00
Gwendal Roué
4dd8042894
Make it possible to decode arrays of scalars from including(all:)
2021-03-08 14:21:35 +01:00
Gwendal Roué
4583bbfa90
Test for joined associations that use CTEs
2021-03-08 14:10:43 +01:00
Gwendal Roué
a655974eb0
Let joined associations use CTEs
2021-03-08 14:10:38 +01:00
Gwendal Roué
d4fc1d9566
Update documentation for the new Association/DerivableRequest powers
2021-03-08 08:36:32 +01:00
Gwendal Roué
f9b554d00a
Merge AggregateJoinableRequest into DerivableRequest
...
Also put distinct(), limit(_:offset:) and with(_:) into DerivableRequest
2021-03-08 07:55:20 +01:00
Gwendal Roué
6b733cfc0a
Tests for including(all:) with distinct, limited, grouped, and cte-decorated associations
2021-03-07 20:32:21 +01:00
Gwendal Roué
f0aec27095
AssociationToMany: distinct(), limit(_:offset:), with(_:)
2021-03-07 20:25:30 +01:00
Gwendal Roué
092b0d0e44
Move with(cte) methods to the file it belongs to
2021-03-07 19:58:15 +01:00
Gwendal Roué
d2a22ddd97
Make sure joined associations do not use prefetched to-many features
...
One can't join a distinct, grouped, or limited association.
2021-03-07 19:56:04 +01:00
Gwendal Roué
9c6ff6a1c0
Simplifly association aggregates
...
We don't need any promise. We used to, but SQLExpression.fastPrimaryKey has been introduced since then.
2021-03-07 19:36:08 +01:00
Gwendal Roué
a4dca3390a
AggregateJoinableRequest is the new protocol that supports aggregate annotations
...
AssociationToMany is a subprotocol of AggregateJoinableRequest :-)
2021-03-07 19:15:09 +01:00
Gwendal Roué
ea6a052b73
Merge all SQLRelation properties
2021-03-07 17:12:44 +01:00
Gwendal Roué
f49fab0cff
Merge SQLQuery into SQLRelation
2021-03-07 14:37:53 +01:00
Gwendal Roué
37faf0a1fd
Upgrade obsolete documentation
2021-03-07 14:20:28 +01:00
Gwendal Roué
4b5a6b503a
TODO
2021-03-07 13:12:28 +01:00
Gwendal Roué
2a85b1230b
Merge pull request #934 from groue/dev/issue-932
...
Fix a crash in the ValueObservation publisher
2021-03-07 12:12:44 +01:00
Gwendal Roué
3eb17fdbb7
CHANGELOG
2021-03-07 12:11:50 +01:00
Gwendal Roué
5400217bb6
ReceiveValuesOnSubscription forwards cancellation
...
Fixes #932
2021-03-07 12:10:35 +01:00
Gwendal Roué
71083a5586
Merge pull request #933 from groue/dev/issue-931
...
Fix DatabaseMigrator.eraseDatabaseOnSchemaChange in the context of shared databases
2021-03-07 12:09:04 +01:00
Gwendal Roué
37279dfad2
CHANGELOG
2021-03-06 14:20:11 +01:00
Gwendal Roué
8be0976bd1
Fix #931
2021-03-06 14:01:56 +01:00
Gwendal Roué
7623a96034
Failing test for #931
2021-03-06 13:34:27 +01:00
Gwendal Roué
424df6dee3
TODO
2021-03-06 13:25:59 +01:00
Gwendal Roué
48b6faa45e
Improve documentation of Configuration.prepareDatabase
2021-03-06 13:25:52 +01:00
Gwendal Roué
bac7b6b0e5
Refactor function calls
...
and make it possible to express other DISTINCT aggregates than COUNT: SUM(DISTINCT ...), etc.
2021-03-06 13:25:25 +01:00
Gwendal Roué
174766925a
Remove warning
2021-03-03 20:04:08 +01:00
Gwendal Roué
9d5cb15380
SQLExpression documentation & cleanup
2021-03-03 20:03:56 +01:00
Gwendal Roué
284ebbd3ef
[skip travis] Update thank you notice
2021-03-03 14:09:23 +01:00
Gwendal Roué
3b6cf4c12b
Merge branch 'development'
2021-03-03 13:00:39 +01:00
Gwendal Roué
2329a5c7b4
v5.5.0
2021-03-03 13:00:21 +01:00
Gwendal Roué
8f50d70703
Merge pull request #930 from groue/dev/issue-929
...
Fix SQL generation for `COLLATE`, `IN`, `NOT IN`
2021-03-03 07:56:14 +01:00
Gwendal Roué
d2d515658e
CHANGELOG
2021-03-02 20:21:51 +01:00
Gwendal Roué
72123494ca
Add test for NOT IN and collated expressions
2021-03-02 20:16:15 +01:00
Gwendal Roué
7b81fd1bff
Fix documentation for #929
2021-03-02 20:12:38 +01:00
Gwendal Roué
5ea7296e7a
Add support for subquery.contains(collated expression)
2021-03-02 20:09:24 +01:00
Gwendal Roué
279b00f890
Fix failing tests for #929
2021-03-02 20:03:19 +01:00
Gwendal Roué
01d71d6f35
Failing tests for #929
2021-03-02 20:02:46 +01:00
Gwendal Roué
96df69b3fb
Add fundamental test for #929
2021-03-02 19:06:18 +01:00
Gwendal Roué
b17fce357d
Merge pull request #925 from groue/dev/RowDecodingError
...
Foundation for decoding errors
2021-03-01 09:03:20 +01:00
Gwendal Roué
37dfd95ae1
Symmetry with StatementColumnConvertible
2021-02-26 19:31:41 +01:00
Gwendal Roué
b834b9876d
Data.fastDecodeNoCopyIfPresent can not fail
2021-02-26 18:51:14 +01:00
Gwendal Roué
7f48e66fdc
Reduce inlined code
2021-02-26 18:50:47 +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é
4398777f07
TODO
2021-02-20 17:03:17 +01:00
Gwendal Roué
6e8285e4ec
CHANGELOG
2021-02-20 13:02:30 +01:00
Gwendal Roué
aceaaf24d2
Paranoid: Wrap DatabaseQueue.read in a transaction
...
This guarantees snapshot isolation even in case of external connections
2021-02-20 12:59:27 +01:00
Gwendal Roué
64bb63e304
CommonTableExpression has an implicit Row RowDecoder
2021-02-20 12:47:13 +01:00
Gwendal Roué
a681ccf2b9
Fix: DatabaseQueue.read is throws, not rethrows
2021-02-20 11:55:19 +01:00
Gwendal Roué
8c8a25a73b
Spot the possible improvement on SQLRelation children
2021-02-20 11:42:54 +01:00
Gwendal Roué
d419d23368
Tests for SQLRelation children
2021-02-19 16:28:22 +01:00
Gwendal Roué
081500b5ce
TODO
2021-02-19 13:26:18 +01:00
Gwendal Roué
7dd36ecc0f
Tests for SQLRelation children
2021-02-19 07:36:33 +01:00
Gwendal Roué
10a16ac6f0
Rename .allNotPrefetched to .bridge
2021-02-18 08:42:01 +01:00
Gwendal Roué
d7f61fa0f5
Documentation
2021-02-18 07:58:10 +01:00
Gwendal Roué
3665a533cf
Add missing tests for has-many through association with three steps
2021-02-17 20:04:35 +01:00
Gwendal Roué
c9332a8c9e
Fix typo
2021-02-17 20:03:59 +01:00
Gwendal Roué
e40534942c
format
2021-02-17 18:19:52 +01:00
Gwendal Roué
de52856cf3
Aliasing is not qualifying
2021-02-17 18:11:00 +01:00
Gwendal Roué
0dd345eb91
SQLQuery no longer depends on SQLExpressible and other high-level protocols
2021-02-17 18:00:53 +01:00
Gwendal Roué
c4620aa587
SQLRelation no longer depends on SQLExpressible and _JoinableRequest
...
Those are one level up
2021-02-17 17:43:57 +01:00
Gwendal Roué
bda63c70bf
Document the type of variables
2021-02-17 13:51:23 +01:00
Gwendal Roué
3407715599
CHANGELOG
2021-02-17 13:47:15 +01:00
Gwendal Roué
7eaf579c18
Update CommonTableExpression documentation about the implicit Void RowDecoder
2021-02-17 13:44:51 +01:00
Gwendal Roué
488849535e
CommonTableExpression has an implicit Void RowDecoder
2021-02-17 13:22:28 +01:00
Gwendal Roué
15b892af6e
Implement filters with SQLExpression? instead of [SQLExpression]
...
Those arrays were introduced so that we can generate nicer sql: `a AND b AND c`, instead of `(a AND b) AND c`.
This flattening is provided by the && operator and `SQLExpression.associativeBinary`, so those arrays are no longer needed.
2021-02-17 08:45:57 +01:00
Gwendal Roué
cceb24a1e5
Merge branch 'development'
2021-02-15 19:17:27 +01:00
Gwendal Roué
bea454a0b9
v5.4.0
2021-02-15 19:16:06 +01:00
Gwendal Roué
276fb2d698
Performance tests: upgrade dependencies
2021-02-15 18:54:32 +01:00
Gwendal Roué
8e3046b00f
Move Sequence.joined(operator:) back to SQLSpecificExpressible
...
`[1, 2, 3].joined(operator: .add)` is not supported. It would pollute autocompletion.
This commit fixes a regression introduced in 920417b .
2021-02-15 18:16:18 +01:00
Gwendal Roué
8a5790ed8b
Move SQLSelectable and SQLOrderingTerm down from SQLExpressible to SQLSpecificExpressible
2021-02-15 14:01:42 +01:00
Gwendal Roué
fd6f5ec525
CHANGELOG
2021-02-15 13:55:58 +01:00
Gwendal Roué
987d549ff0
Remove obsolete test in demo app
2021-02-15 07:59:48 +01:00
Gwendal Roué
f57e724ef6
Merge pull request #922 from groue/experiments/enums
...
Refactor query interface implementation
2021-02-15 07:22:42 +01:00
Gwendal Roué
920417beb3
Replace protocols with enums
2021-02-14 18:28:15 +01:00
Gwendal Roué
2a016ac4f5
TODO
2021-02-12 18:47:37 +01:00
Gwendal Roué
ba3a3f7c38
Move definition of TableRecord to CTE associations
2021-02-09 18:14:35 +01:00
Gwendal Roué
ae6f5dd0f5
Extract ForeignKey
2021-02-09 18:14:35 +01:00
Gwendal Roué
7914805524
Remove TableRecord requirements for QueryInterfaceRequest aggregates
2021-02-09 18:14:35 +01:00
Gwendal Roué
5c2f113631
TODO
2021-02-08 13:07:02 +01:00
Gwendal Roué
d3df3ed5ec
Makefile: support for Xcode 12.4 and Big Sur
...
Bump min iOS and tvOS versions to 11.4 because Big Sur does not support older simulators:
$ xcrun simctl list runtimes
iOS 10.3 (10.3.1 - 14E8301) - com.apple.CoreSimulator.SimRuntime.iOS-10-3 (unavailable, The iOS 10.3 simulator runtime is not supported on hosts after macOS 10.15.99.)
tvOS 10.2 (10.2 - 14W260) - com.apple.CoreSimulator.SimRuntime.tvOS-10-2 (unavailable, The tvOS 10.2 simulator runtime is not supported on hosts after macOS 10.15.99.)
2021-02-07 17:23:10 +01:00
Gwendal Roué
40389ee102
Decouple associations from their origin database table
...
This allows us to create an association without providing the origin table name, and thus to build association without TableRecord.
2021-02-07 16:01:34 +01:00
Gwendal Roué
edc8c2aeea
Fix sample code
2021-01-30 09:52:35 +01:00
Gwendal Roué
f9ad87e54f
Documentation
2021-01-29 19:49:55 +01:00
Gwendal Roué
a6a10270a0
TODO
2021-01-29 08:11:16 +01:00
Gwendal Roué
9a1ff5e9a0
BRAG
2021-01-28 19:09:46 +01:00
Gwendal Roué
7151648279
Cleanup demo apps
2021-01-28 08:44:34 +01:00
Gwendal Roué
921c629a5e
Documentation: Adding support for missing SQL functions or operators
2021-01-28 08:43:14 +01:00
Gwendal Roué
25b2a0392d
SQL interpolation supports embedding collations into SQL literals
2021-01-28 08:39:40 +01:00
Gwendal Roué
cb7aa3c14f
TODO
2021-01-28 08:36:14 +01:00