Gwendal Roué
a88067a815
Merge branch 'GRDB5' into dev/hasMany-first
2020-04-25 13:31:58 +02:00
Gwendal Roué
6fd3a7b225
Merge branch 'development' into GRDB5
...
# Conflicts:
# CHANGELOG.md
# README.md
2020-04-25 13:21:20 +02:00
Matt Tancock
62c6187ad4
Remove Format's Codable conformance. Use a singleValueContainer
2020-04-20 14:42:02 +01:00
Matt Tancock
18154f29be
Simplify encoding format and add tests
2020-04-20 13:36:23 +01:00
Gwendal Roué
df4d5b8603
Back to basics, round 2: keep all children of firstOnly relations
2020-04-19 17:44:50 +02:00
Gwendal Roué
a7b8a73dba
Cleanup
...
After failed experiment:
SELECT ...
FROM parent
JOIN (SELECT * FROM child LIMIT 1) child ON child.parentId = child.id
The problem is that the join condition can't go inside the subquery, because SQLite complains about unknown table "parent". And when the join condition is outside the subquery, the LIMIT clause has been applied too early.
So we're still stuck with:
SELECT ...
FROM parent
JOIN child ON child.id = (SELECT id FROM child WHERE child.parentId = child.id LIMIT 1)
For some reason SQLite accepts the reference to the parent table in this case.
2020-04-19 14:14:13 +02:00
Gwendal Roué
278c18adfc
Cleanup
2020-04-18 20:21:14 +02:00
Gwendal Roué
cbd494e3b9
Documentation
2020-04-18 20:19:47 +02:00
Gwendal Roué
c73fb0dd9b
Back to basics
2020-04-18 20:14:27 +02:00
Gwendal Roué
c966eb3ecf
Cleanup
2020-04-18 19:09:02 +02:00
Gwendal Roué
162da80e4f
Attempt at expressing some todos
2020-04-18 17:06:29 +02:00
Gwendal Roué
5fed231856
Simplify SQLAssociationCondition.filteringExpression
2020-04-18 17:06:29 +02:00
Gwendal Roué
45dfe7d7f1
More HasManyThrough.first tests
2020-04-18 17:06:29 +02:00
Gwendal Roué
615f4159d6
Rename firstInMany to firstOnly
2020-04-18 17:06:29 +02:00
Gwendal Roué
8057572357
Move firstInMany flag in SQLRelation
2020-04-18 17:06:29 +02:00
Gwendal Roué
da63037948
Fix documentation
2020-04-18 17:06:29 +02:00
Gwendal Roué
2d3dafad7d
Document first and last properties, set their association key
2020-04-18 17:06:29 +02:00
Gwendal Roué
7ed967b502
Cleanup SQLAssociationCardinality and SQLAssociationStep
2020-04-18 17:06:29 +02:00
Gwendal Roué
f545789205
Avoid using the rowid column when we can use the regular primary key
2020-04-18 17:06:23 +02:00
Gwendal Roué
f97088d63a
Failing tests for HasManyThrough.first
2020-04-18 16:40:22 +02:00
Gwendal Roué
860faf19f7
HasManyThrough.first and last
2020-04-18 16:40:22 +02:00
Gwendal Roué
6f125bd3d7
SQLAssociation.associationForFirst()
2020-04-18 16:40:22 +02:00
Gwendal Roué
4483f037a4
Cleanup
2020-04-18 16:40:22 +02:00
Gwendal Roué
d80922954a
Let hasMany.first include nested associations
2020-04-18 16:40:22 +02:00
Gwendal Roué
d67814ef61
Make sure hasMany.first doesn't lose information
2020-04-18 16:40:22 +02:00
Gwendal Roué
fb550d30a0
HasManyAssociation.first and last
2020-04-18 16:40:22 +02:00
Gwendal Roué
a715c6328d
Merge branch 'master' into GRDB5
...
# Conflicts:
# CHANGELOG.md
# GRDB/QueryInterface/Request/QueryInterfaceRequest.swift
# Makefile
# README.md
# Tests/Performance/GRDBPerformance/GRDBPerformance.xcodeproj/project.pbxproj
2020-04-18 16:36:26 +02:00
Matt Tancock
bffe4d32f5
Add Codable support to DatabaseDateComponents
2020-04-17 16:16:34 +01:00
Gwendal Roué
0569b95a5a
Operator <- was ill-advised
...
# Conflicts:
# GRDB/QueryInterface/Request/QueryInterfaceRequest.swift
2020-04-14 18:51:21 +02:00
Gwendal Roué
d35ad59f9c
Fix failing test for #758
2020-04-14 12:51:24 +02:00
Gwendal Roué
b182a26759
Fix compilation error with Xcode 10.1
2020-04-14 12:14:25 +02:00
Gwendal Roué
c62ccf1de7
Make sure Inflections.default is lazily loaded, even in optimized release builds
...
This commit addresses #755
2020-04-13 11:31:03 +02:00
Gwendal Roué
2319572552
Remove unused file
2020-04-12 13:04:45 +02:00
Gwendal Roué
1ea5d1713a
Cleanup
2020-04-12 10:04:09 +02:00
Gwendal Roué
0372c1dd63
Complete #747 : export the underlying SQLite library
2020-04-12 07:27:50 +02:00
Gwendal Roué
c052b44999
Cleanup
2020-04-11 20:56:36 +02:00
Gwendal Roué
f27d6b07c0
Cleanup
2020-04-11 20:45:00 +02:00
Gwendal Roué
4f8b681737
Documentation
2020-04-11 18:26:42 +02:00
Gwendal Roué
1b4e26f61c
Cleanup
2020-04-10 12:35:33 +02:00
Gwendal Roué
474310e00b
More inspiration from CocoaError
2020-04-10 09:30:34 +02:00
Gwendal Roué
7a475ad476
Cleanup
2020-04-10 08:58:29 +02:00
Gwendal Roué
ccacbc9706
ResultCode match errors
2020-04-09 19:52:39 +02:00
Gwendal Roué
37aa7feee9
Rename KeyPathRefining to Refinable
2020-04-09 18:50:36 +02:00
Gwendal Roué
078aa83e3b
Rename count(where:) to countElements(where:)
2020-04-09 17:47:07 +02:00
Gwendal Roué
8ef4c9b241
Remove convenience Result.tryMap
2020-04-09 17:45:12 +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é
c778e1ac0c
Add fixits
2020-04-08 18:53:08 +02:00
Gwendal Roué
e2790c863f
Remove ValueObservation combine operator
2020-04-08 18:16:05 +02:00
Gwendal Roué
2c743531d0
Operator <- was ill-advised
2020-04-05 16:25:18 +02:00