We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d70f50b commit 1990fbfCopy full SHA for 1990fbf
Sources/PostgresKit/PostgresConfiguration.swift
@@ -45,6 +45,26 @@ public struct PostgresConfiguration {
45
tlsConfiguration: tlsConfiguration
46
)
47
}
48
+
49
+ public init(
50
+ unixDomainSocketPath: String,
51
+ username: String,
52
+ password: String,
53
+ database: String,
54
+ encoder: PostgresDataEncoder = PostgresDataEncoder(),
55
+ decoder: PostgresDataDecoder = PostgresDataDecoder()
56
+ ) {
57
+ self.address = {
58
+ return try SocketAddress.init(unixDomainSocketPath: unixDomainSocketPath)
59
+ }
60
+ self.username = username
61
+ self.password = password
62
+ self.database = database
63
+ self.tlsConfiguration = nil
64
+ self._hostname = nil
65
+ self.encoder = encoder
66
+ self.decoder = decoder
67
68
69
public init(
70
hostname: String,
0 commit comments