Gwendal Roué
e924587236
Extract generation of SQL SELECT queries into SQLSelectQueryGenerator
2019-02-03 14:56:28 +01:00
Gwendal Roué
73782d5e9d
BelongsTo, HasOne and HasMany share the same JoinAssociationImpl
2019-02-03 10:23:34 +01:00
Gwendal Roué
91b68ffa4f
Trim
2019-02-03 09:29:52 +01:00
Gwendal Roué
5ea914ce0a
YAGNI: JoinCondition.sqlExpression is not optional
2019-02-03 08:42:37 +01:00
Gwendal Roué
950fa607a1
Hide implementation details of associations
2019-02-03 08:26:58 +01:00
Gwendal Roué
f42d5f202d
White space
2019-02-02 17:57:01 +01:00
Gwendal Roué
27c6390635
More Association trimming
2019-02-02 17:53:01 +01:00
Gwendal Roué
40f6b351ea
Rename QueryInterfaceQuery to SQLSelectQuery
2019-02-02 17:15:29 +01:00
Gwendal Roué
9addac6f54
Rename QueryOrdering to SQLRelation.Ordering
2019-02-02 16:43:10 +01:00
Gwendal Roué
bb972a351a
Refactor JoinQuery into SQLRelation
2019-02-02 15:39:18 +01:00
Gwendal Roué
d9530433f2
Move JoinCondition definition
2019-02-02 13:15:17 +01:00
Gwendal Roué
20d067c826
Documentation
2019-02-02 13:11:00 +01:00
Gwendal Roué
1e7840f0e4
More trimming
2019-02-02 11:38:27 +01:00
Gwendal Roué
77fd2b8411
Restore failing tests
2019-02-02 10:51:33 +01:00
Gwendal Roué
b180fc37bb
Trim associations
2019-02-02 10:38:47 +01:00
Gwendal Roué
9958e7b96c
Documentation and cleanup
2018-09-30 13:57:31 +02:00
Gwendal Roué
33b40637a8
Merge associations
2018-09-29 14:16:56 +02:00
Gwendal Roué
8af33c4fc9
Introduce select(..., as:)
...
Record.select(..., as: Value.self) is equivalent to Record.select(...).asRequest(of: Value.self).
It somewhat improves the readability of some requests:
Player.select(max(Column("score")), as: Int.self)
2018-08-19 12:25:27 +02:00
Gwendal Roué
fa31c484da
OrderedRequest now waits for the database connection before ordering is computed
2018-06-05 22:46:02 +02:00
Gwendal Roué
0620b1b513
Associations: inline documentation
2018-05-21 07:53:06 +02:00
Gwendal Roué
756863152c
Fix documentation typos
2018-05-07 19:33:07 +02:00
Gwendal Roué
a35f012286
Cleanup
2018-05-07 17:50:27 +02:00
Gwendal Roué
cdad6fa313
Introduce DerivableRequest
2018-05-04 14:19:27 +02:00
Gwendal Roué
1bf7f67008
Update inline documentation with singular table names
2018-05-01 20:32:18 +02:00
Gwendal Roué
8e2cdeebc3
Cleanup
2018-05-01 15:03:36 +02:00
Gwendal Roué
66a425f718
Thread-safe table name disambiguation, via SQLGenerationContext. Merge SQLTableQualifier into TableAlias.
2018-05-01 14:44:51 +02:00
Gwendal Roué
8d5e57873e
Documentation
2018-04-30 15:33:16 +02:00
Gwendal Roué
09458c1d37
Documentation, move asRequest(of:) to QueryInterfaceRequest in order to avoid AnyFetchRequest contamination
2018-04-30 13:41:20 +02:00
Gwendal Roué
a45d019472
Simplification
...
Rename AssociationMapping to JoinCondition
Replace AssociationMappingRequest enum with ForeignKeyJoinConditionRequest struct
Rename AssociationChainOperator to AssociationJoinOperator, and "chain" to "join"
2018-04-30 12:50:38 +02:00
Gwendal Roué
50dd846a36
Remove useless constraint on Association.LeftAssociated and Association.RightAssociated
2018-04-30 12:25:07 +02:00
Gwendal Roué
dddeff458a
none() is no longer a requirement of FilteredRequest
2018-04-30 09:02:05 +02:00
Gwendal Roué
5e7235307a
Cleanup
2018-04-30 08:36:29 +02:00
Gwendal Roué
e05a64f1cb
Cleanup
2018-04-30 08:11:16 +02:00
Gwendal Roué
3e46942f30
Associations
2018-04-29 18:16:39 +02:00