mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Cleanup
This commit is contained in:
1 parent
8cb75dd814
commit
6dca9e1068
6 files changed
+15
-17
No files matched your search
@@ -21,13 +21,13 @@ public struct AllColumns {
|
||||
extension AllColumns: SQLSelectable {
|
||||
/// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features)
|
||||
/// :nodoc:
|
||||
public func resultColumnSQL(_ context: inout SQLGenerationContext) throws -> String {
|
||||
public func resultColumnSQL(_ context: inout SQLGenerationContext) -> String {
|
||||
"*"
|
||||
}
|
||||
|
||||
/// [**Experimental**](http://github.com/groue/GRDB.swift#what-are-experimental-features)
|
||||
/// :nodoc:
|
||||
public func countedSQL(_ context: inout SQLGenerationContext) throws -> String {
|
||||
public func countedSQL(_ context: inout SQLGenerationContext) -> String {
|
||||
"*"
|
||||
}
|
||||
|
||||
@@ -70,14 +70,14 @@ struct QualifiedAllColumns {
|
||||
}
|
||||
|
||||
extension QualifiedAllColumns: SQLSelectable {
|
||||
func resultColumnSQL(_ context: inout SQLGenerationContext) throws -> String {
|
||||
func resultColumnSQL(_ context: inout SQLGenerationContext) -> String {
|
||||
if let qualifier = context.qualifier(for: alias) {
|
||||
return qualifier.quotedDatabaseIdentifier + ".*"
|
||||
}
|
||||
return "*"
|
||||
}
|
||||
|
||||
func countedSQL(_ context: inout SQLGenerationContext) throws -> String {
|
||||
func countedSQL(_ context: inout SQLGenerationContext) -> String {
|
||||
// TODO: restore the check below.
|
||||
//
|
||||
// It is currently disabled because of AssociationAggregateTests.testHasManyIsEmpty:
|
||||
|
||||
Reference in new issue
Block a user