2
0

Merge pull request #17 from skipcloud/sgibson/fix-comment

config: fix ValidateConnect comment
This commit is contained in:
Jack Christensen
2019-10-16 09:21:38 -05:00
committed by GitHub
+2 -3
View File
@@ -43,9 +43,8 @@ type Config struct {
Fallbacks []*FallbackConfig
// ValidateConnect is called during a connection attempt after a successful authentication with the PostgreSQL server.
// It can be used validate that server is acceptable. If this returns an error the connection is closed and the next
// fallback config is tried. This allows implementing high availability behavior such as libpq does with
// target_session_attrs.
// It can be used to validate that the server is acceptable. If this returns an error the connection is closed and the next
// fallback config is tried. This allows implementing high availability behavior such as libpq does with target_session_attrs.
ValidateConnect ValidateConnectFunc
// AfterConnect is called after ValidateConnect. It can be used to set up the connection (e.g. Set session variables