Gwendal Roué
8e2a8fe9d8
More Associations and inflections
2019-05-19 15:03:54 +02:00
Gwendal Roué
ca76032b8b
Association name is turned into singularized or pluralized keys
2019-05-19 07:33:18 +02:00
Gwendal Roué
1a368d30b0
Cleanup
2019-05-18 15:03:17 +02:00
Gwendal Roué
604a51bb79
Cleanup
2019-05-17 17:58:57 +02:00
Gwendal Roué
3786482368
Add unordered() to OrderedRequest
2019-05-17 17:53:25 +02:00
Gwendal Roué
f98502a136
Association: remove pivot/destination relation ambiguity
2019-05-17 17:24:02 +02:00
Gwendal Roué
a7ea0913fa
Fix SPM
2019-05-08 07:59:34 +02:00
Gwendal Roué
b1bcf637ab
Fix failing tests for consumption of prefetched rows
2019-05-05 17:25:17 +02:00
Gwendal Roué
5fb6c40036
Almost ready to use prefetched rows
2019-05-04 22:54:10 +02:00
Gwendal Roué
2ca2f11883
First prefetch and passing tests
2019-05-04 17:02:19 +02:00
Gwendal Roué
331938c647
More including(all:)
2019-05-04 15:48:58 +02:00
Gwendal Roué
f6a5279ac9
Use "join" for actual SQL joins, and refactor SQLRelation around "children"
2019-05-04 14:15:53 +02:00
Gwendal Roué
a88f20fb50
Introduce including(all:)
2019-05-04 12:24:43 +02:00
Gwendal Roué
0e2daff329
More Association cleanup
2019-05-04 12:17:47 +02:00
Gwendal Roué
18bd025e1c
SQLAssociation clarification
2019-05-03 20:32:21 +02:00
Gwendal Roué
dd87a8d42c
SQLAssociation clarification
2019-05-03 20:16:05 +02:00
Gwendal Roué
820db3f07d
Refactor SQLAssociation
...
# Conflicts:
# GRDB/QueryInterface/Association/Association.swift
2019-05-02 20:34:10 +02:00
Gwendal Roué
708538bcf0
Refactor join conditions
2019-04-28 14:46:20 +02:00
Gwendal Roué
1e3de49251
Rename SQLJoin.Condition to SQLJoinCondition
2019-04-28 13:25:56 +02:00
Gwendal Roué
73f4a9fb23
whitespace
2019-04-28 13:23:53 +02:00
Gwendal Roué
5fbf56c373
KISS
2019-03-15 08:51:02 +01:00
Gwendal Roué
784ebcc8e9
Tighten SQLJoin
2019-03-15 08:41:57 +01:00
Gwendal Roué
916d3931aa
Cleanup SQLAssociation
2019-03-13 20:47:55 +01:00
Gwendal Roué
4ae1fb11cc
Extract EncodableRecord from MutablePersistableRecord
...
This fixes issue #426
2019-03-10 14:00:01 +01:00
Gwendal Roué
87cd76a468
Association aggregates are defined on AssociationToMany
2019-03-06 08:17:20 +01:00
Gwendal Roué
9ee25fdec1
Rename ToOneAssociation to AssociationToOne
2019-03-04 08:01:45 +01:00
Gwendal Roué
1188969144
Cleanup
2019-03-03 17:34:23 +01:00
Gwendal Roué
66c72e7bd2
HasOneThroughAssociation request tests
2019-03-03 15:29:27 +01:00
Gwendal Roué
1a24f61723
HasOneThroughAssociation adopts TableRequest
2019-03-02 17:24:17 +01:00
Gwendal Roué
08451dfced
Rename AssociationImpl to SQLAssociation
2019-03-02 14:46:12 +01:00
Gwendal Roué
b506838519
ToOneAssociation
2019-03-01 19:13:46 +01:00
Gwendal Roué
1511981dc7
AssociationImpl is no longer a protocol
2019-03-01 19:13:28 +01:00
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