diff --git a/Sources/SQLite/Typed/Expression.swift b/Sources/SQLite/Typed/Expression.swift index dcc44fe4..7da60e97 100644 --- a/Sources/SQLite/Typed/Expression.swift +++ b/Sources/SQLite/Typed/Expression.swift @@ -105,6 +105,10 @@ extension ExpressionType { " ".join([self, Expression(literal: "DESC")]) } + public func `as`(_ name: String) -> Expressible { + " ".join([self, Expression(literal: "AS \(name)")]) + } + } extension ExpressionType where UnderlyingType: Value {