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
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é
7a475ad476
Cleanup
2020-04-10 08:58:29 +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é
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é
2c743531d0
Operator <- was ill-advised
2020-04-05 16:25:18 +02:00
Gwendal Roué
7ce6a8a094
Rename QueryInterfaceRequest to Request
2020-04-04 20:12:03 +02:00
Gwendal Roué
56f332122d
The observed region is always recorded
2020-03-24 22:59:07 +01:00
Gwendal Roué
dab8e28f6d
Merge branch 'master' into GRDB5
...
# Conflicts:
# GRDB/Migration/DatabaseMigrator.swift
# GRDB/QueryInterface/Request/QueryInterfaceRequest.swift
# README.md
2020-03-21 14:35:57 +01:00
Gwendal Roué
a0faf6aa68
Support for nil assignment
2020-03-18 19:34:43 +01: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é
8718d525d4
SE-0253: Callable values of user-defined nominal types
2020-03-08 20:36:49 +01:00
Gwendal Roué
7865b0a2ee
SE-0249: Key Path Expressions as Functions
2020-03-08 19:58:51 +01:00
Gwendal Roué
00b0dc2a04
Remove availability checks for macOS 10.10 (forgotten in #719 )
2020-03-08 19:08:15 +01:00
Gwendal Roué
694adcec64
Remove other deprecated methods
2020-03-08 18:03:11 +01:00
Gwendal Roué
9578f984ec
Remove useless #if compiler/swift checks
2020-03-08 13:42:44 +01:00
Gwendal Roué
eb6f6e57ff
Fix failing test for literal expression function
2020-02-25 22:13:17 +01:00
Gwendal Roué
591384576f
SQLOrderingLiteral (and prevent reversing of requests ordered by literal)
2020-02-14 12:31:54 +01:00
Gwendal Roué
cdda2852d3
Merge branch 'development' into dev/qualifiedSQLLiteral
2020-02-14 11:43:15 +01:00
Gwendal Roué
1f4b374bce
Documentation for #689
2020-02-14 11:40:17 +01:00
Gwendal Roué
b961962f93
Cleanup
2020-01-25 16:29:04 +01:00
Gwendal Roué
3ccfcb61ce
Cleanup SQLLiteral elements
2020-01-25 16:11:17 +01:00
Gwendal Roué
e999ab5ecb
Don't deprecate SQLLiteral.mapSQL, after all
2020-01-25 13:46:00 +01:00
Gwendal Roué
e2545b3427
Test for more complex SQLLiteral generation
2020-01-25 12:15:14 +01:00