Gwendal Roué
004968517e
Update more documentation with the closure syntax
2025-05-10 17:43:22 +02:00
Gwendal Roué
6cc3116ff4
TableAlias is generic
2025-05-10 14:52:48 +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é
56e2ab85b7
SQLAssociationCondition is Sendable
2024-08-25 18:06:29 +02:00
Gwendal Roué
6157a40dad
Fix DocC warnings
2024-08-24 16:34:35 +02: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é
13c804d1cc
DocC
2022-11-06 16:02:36 +01: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é
1239c14e6d
Explicit initializers for HasOneThrough and HasManyThrough associations
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é
9df0f4cdbd
Inline documentation for annotated(withOptional:), annotated(withRequired:)
2021-12-05 15:04:44 +01:00
Gwendal Roué
564c4cef5c
annotated(withOptional:), annotated(withRequired:)
2021-12-03 19:24:56 +01:00
Gwendal Roué
0098369e29
Simplify Refinable
2021-06-27 13:11:26 +02:00
Gwendal Roué
32bbee9c8a
Tests for Table Associations
2021-06-20 11:07:38 +02:00
Gwendal Roué
d7971d76e7
Introduce Table
2021-06-19 14:30:04 +02:00
Gwendal Roué
64bb63e304
CommonTableExpression has an implicit Row RowDecoder
2021-02-20 12:47:13 +01:00
Gwendal Roué
920417beb3
Replace protocols with enums
2021-02-14 18:28:15 +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é
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é
8bf9e5e30f
Decouple associations from TableRecord
...
Associations is generic for type safety, not for defining the association (just as QueryInterfaceRequest)
2021-01-23 09:48:18 +01:00
Gwendal Roué
836efb120f
Xcode 12.3 formatting
2020-12-23 12:13:05 +01:00
Gwendal Roué
0d6f68646c
Turn warning into a TODO
2020-12-19 13:07:24 +01:00
Gwendal Roué
64776682fe
Drop USING clause until actually needed
2020-12-03 09:21:19 +01:00
Gwendal Roué
d35373dcdf
Fix typo
2020-12-01 20:48:40 +01:00
Gwendal Roué
a70b42cbf5
Extract SQLAssociationCondition.using
2020-12-01 20:30:36 +01:00
Gwendal Roué
1238843a44
Cleanup
2020-12-01 19:33:43 +01:00
Gwendal Roué
c16da693df
More cte association api experiments
2020-12-01 08:38:39 +01:00
Gwendal Roué
b7b89c5fa9
CTE associations
2020-11-30 21:51:17 +01:00
Gwendal Roué
2bb9f5ce0d
First joins with CommonTableExpression
2020-11-29 19:05:12 +01:00
Gwendal Roué
90f2642ec6
Make good use of the visitor pattern
2020-07-05 15:07:52 +02:00
Gwendal Roué
268a45a635
Prepare for different kinds of SQLAssociationCondition
2020-07-02 08:29:49 +02:00
Gwendal Roué
39f327fcb3
Optimize SQLAssociationCondition.filteringExpression(_:leftRows:)
...
And make sure we compute a correct database region for association requests
2020-05-01 15:06:47 +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é
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é
9aa67f9db9
SE-0255: Implicit returns from single-expression functions
2020-03-08 23:12:46 +01:00
Gwendal Roué
7865b0a2ee
SE-0249: Key Path Expressions as Functions
2020-03-08 19:58:51 +01:00
Gwendal Roué
14c3c7865e
Move association initialization where they belong
2020-01-03 08:27:15 +01:00
Gwendal Roué
9dd5fd198b
Fix documentation bug - #672
2020-01-03 08:09:54 +01:00
Gwendal Roué
2d1f218ec5
Force TableRecord on Association origin & destination, append TableRequest to DerivableRequest requirements
2019-07-27 15:23:29 +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