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 9535dc5 commit ad8ae1eCopy full SHA for ad8ae1e
Sources/PostgresKit/PostgresDialect.swift
@@ -72,6 +72,8 @@ public struct PostgresDialect: SQLDialect {
72
public func customDataType(for dataType: SQLDataType) -> (any SQLExpression)? {
73
if case let .custom(expr) = dataType, (expr as? SQLRaw)?.sql == "TIMESTAMP" {
74
return SQLRaw("TIMESTAMPTZ")
75
+ } else if case .blob = dataType {
76
+ return SQLRaw("BYTEA")
77
} else {
78
return nil
79
}
0 commit comments