We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5da9d5 commit e032327Copy full SHA for e032327
Sources/FluentPostgreSQL/PostgreSQLEnum.swift
@@ -5,7 +5,7 @@ public protocol PostgreSQLEnum: PostgreSQLExpressionRepresentable, CaseIterable,
5
extension PostgreSQLEnum {
6
/// See `PostgreSQLEnum`.
7
public static var postgreSQLEnumTypeName: String {
8
- return "\(self)".uppercased()
+ return String(reflecting: self).replacingOccurrences(of: ".", with: "_").uppercased()
9
}
10
11
/// See `PostgreSQLDataTypeStaticRepresentable`.
0 commit comments