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
82ff6cb4c5
commit
ca59d706e9
1 file changed
+1
-1
@@ -27,7 +27,7 @@ private struct PlayerWithOptionalTeam: Decodable, FetchableRecord {
|
||||
static let team = Player.team.forKey(CodingKeys.team)
|
||||
}
|
||||
|
||||
extension QueryInterfaceRequest where T == Player {
|
||||
extension QueryInterfaceRequest where RowDecoder == Player {
|
||||
func filter(teamName: String) -> QueryInterfaceRequest<Player> {
|
||||
joining(required: PlayerWithOptionalTeam.team.filter(Column("name") == teamName))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user