Gwendal Roué
f6a5279ac9
Use "join" for actual SQL joins, and refactor SQLRelation around "children"
2019-05-04 14:15:53 +02:00
Gwendal Roué
4716f91d8b
Bake the single result expectation right into filter(key:) methods
...
This better hides this flag inside SQLSelectQuery, and avoids explicit support from FetchableRecord and TableRecord
2019-04-16 08:47:50 +02:00
Alex Robinson
e2211aca21
Exclude LIMIT 1 in more cases
...
Adds a flag to SQLSelectQuery indicating that it expects a single record (for example when querying by primary or unique key).
Ensures that this example doesn't add an unnecessary LIMIT 1 to the resulting query:
let request = Player.filter(key: 123) // or Player.filter(key: ["email": "me@example.com "])
let player = try dbQueue.read { db in try request.fetchOne(db) }
2019-04-16 11:10:43 +10:00
Gwendal Roué
df84654554
Delete unused code
2019-03-15 08:23:08 +01:00
Gwendal Roué
e924587236
Extract generation of SQL SELECT queries into SQLSelectQueryGenerator
2019-02-03 14:56:28 +01:00
Gwendal Roué
c776801c4a
Document "merging" and "finalization"
2019-02-03 11:58:16 +01:00
Gwendal Roué
659171902e
Move join-related types to SQLRelation.swift
2019-02-03 10:09:34 +01:00
Gwendal Roué
4a209fcbc4
Rename SQLSource to SQLRelation.Source
2019-02-03 10:06:23 +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é
c9ff5a53a1
JoinCondition: Equatable
2019-02-03 00:03:04 +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é
a3ad726111
Cleanup
2017-06-20 07:54:19 +02:00
Gwendal Roué
604cf6b522
Remove QueryInterfaceRequest.contains(_:)
2017-06-20 07:54:19 +02:00
Gwendal Roué
b3d731b040
Remove QueryInterfaceRequest.exists()
2017-06-20 07:54:19 +02:00
Gwendal Roué
cb08660a78
Rename FetchRequest -> Request
2016-12-08 13:56:05 +01:00
Gwendal Roué
5a572b25a0
Refactor the query interface types to enhance extensibility
2016-09-27 23:11:21 +02:00
Gwendal Roué
a8b067885f
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
...
Conflicts:
DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/project.pbxproj
GRDB/Core/Database.swift
README.md
TODO.md
2016-09-08 08:37:58 +02:00
Gwendal Roué
72ab62b21b
Merge branch 'WatchOS' of github.com:groue/GRDB.swift
2016-09-07 22:17:08 +02:00
Gwendal Roué
e4ae0988a4
QueryInterfaceRequest.deleteAll (for @pakko972)
2016-09-07 14:10:16 +02:00
Gwendal Roué
b5bb92459d
WatchOS framework (adresses #96 )
2016-08-10 06:27:50 +02:00
Gwendal Roué
2c3bf06740
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
...
Conflicts:
GRDB/QueryInterface/QueryInterfaceRequest.swift
GRDB/QueryInterface/SQLCollation.swift
GRDB/QueryInterface/SQLFunction.swift
GRDB/QueryInterface/SQLOperator.swift
GRDB/QueryInterface/SQLSelectQuery.swift
GRDB/QueryInterface/SQLTableBuilder.swift
2016-08-07 12:57:48 +02:00
Gwendal Roué
a132b58227
Promote _SQLExpressible protocol to SQLExpressible
2016-08-07 12:46:19 +02:00
Gwendal Roué
00a1eebf60
Swift 3 Grand Renaming: SQLColumn -> Column
2016-08-07 10:38:24 +02:00
Gwendal Roué
bcd6e6767a
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
...
Conflicts:
GRDB.xcodeproj/project.pbxproj
GRDB/Core/Database.swift
GRDB/Core/DatabaseSchemaCache.swift
GRDB/QueryInterface/SQLCollation.swift
README.md
TODO.md
Tests/Public/Core/DatabaseValueConvertible/DatabaseValueConversionTests.swift
Tests/Public/Core/StatementColumnConvertible/StatementColumnConvertibleTests.swift
Tests/Public/QueryInterfaceRequest/QueryInterfaceRequestTests.swift
2016-08-07 10:11:31 +02:00
Gwendal Roué
77278e77eb
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
...
Conflicts:
GRDB/QueryInterface/QueryInterfaceRequest.swift
GRDB/QueryInterface/SQLCollation.swift
GRDB/QueryInterface/SQLSelectQuery.swift
2016-07-22 13:48:39 +02:00
Gwendal Roué
e037972dbb
Remove dead code
2016-07-22 13:38:31 +02:00
Gwendal Roué
ba24c55d41
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
...
Conflicts:
GRDB.xcodeproj/project.pbxproj
GRDB/QueryInterface/QueryInterfaceRequest.swift
GRDB/QueryInterface/SQLCollation.swift
GRDB/QueryInterface/SQLSelectQuery.swift
2016-07-22 13:04:20 +02:00
Gwendal Roué
034a24dfe3
_SQLExpression.sql(_:_:) turns all values into safely escaped SQL literals when given nil arguments. (addresses #83 )
2016-07-22 12:56:26 +02:00
Gwendal Roué
82b801498a
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
...
Conflicts:
GRDB.xcodeproj/project.pbxproj
GRDB/Core/DatabaseValueConvertible.swift
GRDB/Core/Row.swift
GRDB/Core/StatementColumnConvertible.swift
GRDB/FetchRequest/FetchRequest.swift
GRDB/QueryInterface/QueryInterfaceRequest.swift
GRDB/Record/RowConvertible.swift
README.md
Tests/Public/Core/DatabaseValueConvertible/DatabaseValueConvertibleFetchTests.swift
Tests/Public/Core/SQLiteStatementConvertible/SQLiteStatementConvertibleFetchTests.swift
Tests/Public/FetchRequest/FetchRequestTests.swift
Tests/Public/Foundation/NSDateTests.swift
2016-06-29 13:38:24 +02:00
Gwendal Roué
8992b4a284
Move FetchRequest to Core
2016-06-28 09:09:06 +02:00