We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e4d26fd + 4f5c24b commit 9c2079dCopy full SHA for 9c2079d
Sources/PostgreSQL/Database/PostgreSQLDatabaseConfig.swift
@@ -23,7 +23,7 @@ public struct PostgreSQLDatabaseConfig {
23
public let password: String?
24
25
/// Creates a new `PostgreSQLDatabaseConfig`.
26
- public init(hostname: String, port: Int, username: String, database: String? = nil, password: String? = nil) {
+ public init(hostname: String, port: Int = 5432, username: String, database: String? = nil, password: String? = nil) {
27
self.hostname = hostname
28
self.port = port
29
self.username = username
0 commit comments