This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Fluent | |
import PostgresNIO | |
import FluentPostgresDriver | |
import PostgresKit | |
extension Fields { | |
public typealias EnumArray<EnumValue> = EnumArrayProperty<Self, EnumValue> where EnumValue: FluentEnumConvertible | |
} | |
@propertyWrapper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import Fluent | |
extension Fields { | |
public typealias AsyncTransformableField<Value, TransformedValue> = AsyncTransformableFieldProperty<Self, Value, TransformedValue> where Value: Codable | |
} | |
@propertyWrapper | |
public final class AsyncTransformableFieldProperty<Model, Value, TransformedValue> where Model: FluentKit.Fields, Value: Codable { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vapor | |
// Standard async configure function | |
public func configure(_ app: Application) async throws { | |
app.commands.use(Cowsay(), as: "cowsay") | |
} | |
public protocol AsyncConvertibleCommand: Command, AsyncCommand, AnyAsyncCommand { | |
} |