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'
v5.5.0
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