Gwendal Roué
98c58f4eef
Fix more typos in public documentation
2026-11-02 20:27:37 +01:00
Gwendal Roué
5d9e853f24
Fix typos in code samples
2026-11-01 20:45:05 +01:00
Gwendal Roué
7a216d7d34
Fix typos in public documentation
2026-11-01 20:45:05 +01: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é
d1a2cb0948
All closures that accept DatabaseComponents can throw
2025-05-12 20:33:18 +02:00
Gwendal Roué
034b241e71
Rename ColumnsProvider to DatabaseComponents
2025-05-11 13:10:19 +02:00
Gwendal Roué
ed98ac30e0
DocC
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é
ce238b6643
Build requests from ColumnsProvider
2025-05-10 09:36:13 +02:00
Gwendal Roué
b312d4cf5a
Add missing DocC links to cast(_:as:)
2024-06-05 18:36:24 +02:00
Gwendal Roué
87fdd9a66f
cast function
2024-03-23 10:47:19 +01:00
Gwendal Roué
8cc52983b7
Introduce SQLFunctionFlags
2023-10-01 15:39:47 +02:00
Gwendal Roué
0b12e89e62
DocC: AssociationAggregate
2022-11-06 17:18:27 +01:00
Gwendal Roué
13c804d1cc
DocC
2022-11-06 16:02:36 +01:00
Gwendal Roué
a89dad2554
Fix Swiftlint warnings
2022-10-29 14:21:33 +02:00
Gwendal Roué
1bfba945d3
Fix invalid Swift syntax in documentation
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é
fe225fe452
BREAKING: Remove deprecated methods
2022-08-21 19:21:57 +02: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é
0098369e29
Simplify Refinable
2021-06-27 13:11:26 +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é
cb8611587c
Fix Swiftlint warning
2021-03-12 13:48:41 +01:00
Gwendal Roué
42718db49d
Documentation
2021-03-08 21:11:36 +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é
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é
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é
920417beb3
Replace protocols with enums
2021-02-14 18:28:15 +01:00
Gwendal Roué
836efb120f
Xcode 12.3 formatting
2020-12-23 12:13:05 +01:00
Gwendal Roué
6abbf82a89
So long, visitor pattern!
2020-12-23 09:02:17 +01:00
Gwendal Roué
90f2642ec6
Make good use of the visitor pattern
2020-07-05 15:07:52 +02:00
Gwendal Roué
2201026ce8
Introduce FastPrimaryKeyExpression, drop SQLPrimaryKeyExpression
...
Also, don't let the user access this expression, so that he does not attempt at decoding it. Its only purpose is to generate efficient SQL.
2020-07-01 20:40:11 +02:00
Gwendal Roué
ab97ceb784
TableRecord.primaryKey
2020-06-15 14:08:50 +02:00
Gwendal Roué
59e81f70bd
Cleanup aggregates
2020-04-28 19:49:41 +02:00
Gwendal Roué
d0ba9e342c
Turn selection and having clauses into promises. Give association aggregates access to the actual primary key, for better support for WITHOUT ROW ID tables.
2020-04-25 19:51:03 +02:00
Gwendal Roué
605aad79ad
Replace use of rowid by primary key when possible. Cleanup management of association cardinality
...
This is a backport of enhancements brought by the failed pull request https://github.com/groue/GRDB.swift/pull/767
2020-04-25 15:15:01 +02:00
Gwendal Roué
37aa7feee9
Rename KeyPathRefining to Refinable
2020-04-09 18:50:36 +02:00
Gwendal Roué
27120643b9
SE-0255: Implicit returns from single-expression functions
2020-04-09 17:16:23 +02:00
Gwendal Roué
d988be49a6
Revert #748
2020-04-09 13:42:37 +02:00
Gwendal Roué
7ce6a8a094
Rename QueryInterfaceRequest to Request
2020-04-04 20:12:03 +02:00
Gwendal Roué
19061934ce
SE-0242: Synthesize default values for the memberwise initializer
...
...and more initializers cleanup
2020-03-09 08:49:06 +01:00
Gwendal Roué
9aa67f9db9
SE-0255: Implicit returns from single-expression functions
2020-03-08 23:12:46 +01:00
Gwendal Roué
694adcec64
Remove other deprecated methods
2020-03-08 18:03:11 +01:00
Gwendal Roué
349e34b1c1
Internal API experiment: KeyPathRefining
2020-01-21 19:37:19 +01:00
Gwendal Roué
0c709294a0
Fix documentation
2019-07-27 16:45:06 +02:00
Gwendal Roué
b4929bb638
Rename aliased(_:) to forKey(_:)
2019-07-27 16:29:09 +02:00
Gwendal Roué
35ceeebb3d
Style tweaks
2019-07-26 20:56:33 +02:00
Gwendal Roué
df6bb8761c
Swiftlint + whitespace
2019-07-01 08:57:53 +02:00
Gwendal Roué
faae864699
Query Interface code organization
2019-05-22 20:13:33 +02:00