mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
Xcode 12.3 formatting
This commit is contained in:
1 parent
3a76b84eae
commit
836efb120f
70 files changed
+612
-634
No files matched your search
@@ -48,7 +48,7 @@ extension TableRecord {
|
||||
public static func select(
|
||||
sql: String,
|
||||
arguments: StatementArguments = StatementArguments())
|
||||
-> QueryInterfaceRequest<Self>
|
||||
-> QueryInterfaceRequest<Self>
|
||||
{
|
||||
select(literal: SQLLiteral(sql: sql, arguments: arguments))
|
||||
}
|
||||
@@ -72,7 +72,7 @@ extension TableRecord {
|
||||
public static func select<RowDecoder>(
|
||||
_ selection: [SQLSelectable],
|
||||
as type: RowDecoder.Type = RowDecoder.self)
|
||||
-> QueryInterfaceRequest<RowDecoder>
|
||||
-> QueryInterfaceRequest<RowDecoder>
|
||||
{
|
||||
all().select(selection, as: type)
|
||||
}
|
||||
@@ -88,7 +88,7 @@ extension TableRecord {
|
||||
public static func select<RowDecoder>(
|
||||
_ selection: SQLSelectable...,
|
||||
as type: RowDecoder.Type = RowDecoder.self)
|
||||
-> QueryInterfaceRequest<RowDecoder>
|
||||
-> QueryInterfaceRequest<RowDecoder>
|
||||
{
|
||||
all().select(selection, as: type)
|
||||
}
|
||||
@@ -105,7 +105,7 @@ extension TableRecord {
|
||||
sql: String,
|
||||
arguments: StatementArguments = StatementArguments(),
|
||||
as type: RowDecoder.Type = RowDecoder.self)
|
||||
-> QueryInterfaceRequest<RowDecoder>
|
||||
-> QueryInterfaceRequest<RowDecoder>
|
||||
{
|
||||
all().select(literal: SQLLiteral(sql: sql, arguments: arguments), as: type)
|
||||
}
|
||||
@@ -121,7 +121,7 @@ extension TableRecord {
|
||||
public static func select<RowDecoder>(
|
||||
literal sqlLiteral: SQLLiteral,
|
||||
as type: RowDecoder.Type = RowDecoder.self)
|
||||
-> QueryInterfaceRequest<RowDecoder>
|
||||
-> QueryInterfaceRequest<RowDecoder>
|
||||
{
|
||||
all().select(literal: sqlLiteral, as: type)
|
||||
}
|
||||
@@ -183,8 +183,8 @@ extension TableRecord {
|
||||
/// all requests by the `TableRecord.databaseSelection` property, or
|
||||
/// for individual requests with the `TableRecord.select` method.
|
||||
public static func filter<PrimaryKeyType>(key: PrimaryKeyType?)
|
||||
-> QueryInterfaceRequest<Self>
|
||||
where PrimaryKeyType: DatabaseValueConvertible
|
||||
-> QueryInterfaceRequest<Self>
|
||||
where PrimaryKeyType: DatabaseValueConvertible
|
||||
{
|
||||
all().filter(key: key)
|
||||
}
|
||||
@@ -198,8 +198,8 @@ extension TableRecord {
|
||||
/// all requests by the `TableRecord.databaseSelection` property, or
|
||||
/// for individual requests with the `TableRecord.select` method.
|
||||
public static func filter<Sequence>(keys: Sequence)
|
||||
-> QueryInterfaceRequest<Self>
|
||||
where Sequence: Swift.Sequence, Sequence.Element: DatabaseValueConvertible
|
||||
-> QueryInterfaceRequest<Self>
|
||||
where Sequence: Swift.Sequence, Sequence.Element: DatabaseValueConvertible
|
||||
{
|
||||
all().filter(keys: keys)
|
||||
}
|
||||
@@ -245,7 +245,7 @@ extension TableRecord {
|
||||
public static func filter(
|
||||
sql: String,
|
||||
arguments: StatementArguments = StatementArguments())
|
||||
-> QueryInterfaceRequest<Self>
|
||||
-> QueryInterfaceRequest<Self>
|
||||
{
|
||||
filter(literal: SQLLiteral(sql: sql, arguments: arguments))
|
||||
}
|
||||
@@ -320,7 +320,7 @@ extension TableRecord {
|
||||
public static func order(
|
||||
sql: String,
|
||||
arguments: StatementArguments = StatementArguments())
|
||||
-> QueryInterfaceRequest<Self>
|
||||
-> QueryInterfaceRequest<Self>
|
||||
{
|
||||
all().order(literal: SQLLiteral(sql: sql, arguments: arguments))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user