mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
First annotation: HasManyAssociaton.count
This commit is contained in:
1 parent
168d2850ab
commit
903694d095
10 files changed
+167
No files matched your search
@@ -98,6 +98,11 @@ extension QueryInterfaceRequest : DerivableRequest, AggregatingRequest {
|
||||
public func select<RowDecoder>(sql: String, arguments: StatementArguments? = nil, as type: RowDecoder.Type) -> QueryInterfaceRequest<RowDecoder> {
|
||||
return select(SQLSelectionLiteral(sql, arguments: arguments), as: type)
|
||||
}
|
||||
|
||||
/// Support for annotations
|
||||
func appendingSelection(_ selection: [SQLSelectable]) -> QueryInterfaceRequest<T> {
|
||||
return QueryInterfaceRequest(query: query.appendingSelection(selection))
|
||||
}
|
||||
|
||||
/// Creates a request which returns distinct rows.
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user