Skip to content

Commit

Permalink
Log if model is a pattern
Browse files Browse the repository at this point in the history
...
  • Loading branch information
helje5 committed Oct 31, 2024
1 parent e846331 commit d2e1dc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/PostgreSQLAdaptor/PostgreSQLAdaptor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,9 @@ open class PostgreSQLAdaptor : Adaptor, SmartDescription {

public func appendToDescription(_ ms: inout String) {
ms += " " + connectString
if model != nil {
if let model = model {
ms += " has-model"
if model.isPattern { ms += "(pattern)" }
}
}
}

0 comments on commit d2e1dc5

Please sign in to comment.