SQLExpressionUnary
public struct SQLExpressionUnary : SQLExpression
SQLExpressionUnary is an expression made of an unary operator and an operand expression.
SQLExpressionUnary(.not, Column("favorite"))
-
The unary operator
Declaration
Swift
public let op: SQLUnaryOperator
-
The operand
Declaration
Swift
public let expression: SQLExpression
-
Creates an expression made of an unary operator and an operand expression.
// NOT favorite SQLExpressionUnary(.not, Column("favorite"))
Declaration
Swift
public init(_ op: SQLUnaryOperator, _ value: SQLExpressible)
-
Declaration
Swift
public func expressionSQL(_ arguments: inout StatementArguments?) -> String