This file contains 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 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 SQLKit | |
import FluentKit | |
/// Read each method's comments in the order they appear (from `fieldKey(for:)` through `sqlColumn(for:)`) for an | |
/// _EXTREMELY_ detailed breakdown of how the heck this all works. | |
extension Fields { | |
/// Returns the singular `FieldKey` corresponding to a specific property of the model. | |
/// | |
/// Detailed operation: | |
/// |