Gwendal Roué
a15233eff1
SQLGenerationContext no longer needs to be mutated
2020-04-29 21:59:04 +02:00
Gwendal Roué
188f51c513
Refactor handling of arguments during SQL generation
2020-04-29 21:27:14 +02:00
Gwendal Roué
e800c71cbc
Refactor SQLLiteral so that subqueries are no longer a special case
2020-04-29 20:20:13 +02:00
Gwendal Roué
3d86f45aa2
SQLRequestExpressible
...
This protocol makes it possible to write request.filter(column == subRequest)
2020-04-29 20:18:00 +02:00
Gwendal Roué
473bc3a88e
SQLQueryGenerator handles the single result optimization. Make sure a single column is selected for expression/collection requests
2020-04-29 18:30:46 +02:00
Gwendal Roué
8bcf9257f6
TODO
2020-04-29 14:32:53 +02:00
Gwendal Roué
82ff6cb4c5
Cleanup
2020-04-29 14:24:25 +02:00
Gwendal Roué
21552d8838
SQLRequest & QueryInterfaceRequest are SQLExpression
2020-04-29 14:24:18 +02:00
Gwendal Roué
84ca69d27c
Value quoting can now require a database connection
2020-04-29 11:03:51 +02:00
Gwendal Roué
6dca9e1068
Cleanup
2020-04-29 09:49:24 +02:00
Gwendal Roué
8cb75dd814
Subqueries wip
2020-04-28 21:03:58 +02:00
Gwendal Roué
59e81f70bd
Cleanup aggregates
2020-04-28 19:49:41 +02:00
Gwendal Roué
f543784241
TODO
2020-04-28 14:20:05 +02:00
Gwendal Roué
d1af9dbdf1
Fix documentation comment
2020-04-25 20:27:25 +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é
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
gjeck
d14ac3e8d3
Resolve test issues with SQLCipher
...
Note: SQLCipher3 will have the new column rename method exposed, but it
will throw an error at runtime if used.
2020-01-24 09:22:43 -08:00
gjeck
09087bdbf9
Adjust available checks
2020-01-24 08:46:55 -08:00
gjeck
538252a4bf
Allow column rename on custom sqlite target
2020-01-24 08:46:55 -08:00
gjeck
371e8f0dbe
Add support for renaming columns within a table
...
SQLite introduced enhancements to the `ALTER TABLE` command in 3.25.0.
iOS 13.0+, macOS 10.15+, tvOS 13.0+, and watchOS 6.0+ have a SQLite
library bundled higher than 3.25.0.
For more information see https://www.sqlite.org/lang_altertable.html
2020-01-24 08:46:55 -08:00
Gwendal Roué
86e32cdc23
Cleanup SQLGenerationContext
2020-01-24 08:55:55 +01:00
Gwendal Roué
6a0cc838da
Deprecate SQLLiteral.mapSQL and SQLExpression.sqlLiteral
2020-01-24 08:55:55 +01:00