Skip to content

Commit 2037886

Browse files
committed
wip
1 parent af4db5b commit 2037886

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/StructuredQueriesSQLiteCore/DatabaseFunction.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
/// Don't conform to this protocol directly. Instead, use the `@DatabaseFunction` macro to generate
44
/// a conformance.
55
public protocol DatabaseFunction<Input, Output> {
6+
/// A type representing the function's arguments.
67
associatedtype Input
8+
9+
/// A type representing the function's return value.
710
associatedtype Output
811

912
/// The name of the function.
@@ -27,6 +30,10 @@ public protocol ScalarDatabaseFunction<Input, Output>: DatabaseFunction {
2730
}
2831

2932
extension ScalarDatabaseFunction {
33+
/// A function call expression.
34+
///
35+
/// - Parameter input: Expressions representing the arguments of the function.
36+
/// - Returns: An expression representing the function call.
3037
public func callAsFunction<each T: QueryExpression>(
3138
_ input: repeat each T
3239
) -> some QueryExpression<Output>

0 commit comments

Comments
 (0)