-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fluent 1.0.0 gm, add decoders + sql updates #72
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few small things I noticed.
/// Creates a new `PostgreSQLDatabaseConfig`. | ||
public init(serverAddress: ServerAddress, username: String, database: String? = nil, password: String? = nil, transport: PostgreSQLTransportConfig = .cleartext) { | ||
self.serverAddress = serverAddress | ||
public init(serverAddress: PostgreSQLConnection.ServerAddress, username: String, database: String? = nil, password: String? = nil, transport: PostgreSQLConnection.TransportConfig = .cleartext) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A cosmetic thing but the indentation is wrong for this method, somehow tabs sneaked into a project indented by spaces.
guard let url = URL(string: urlString), | ||
let hostname = url.host, | ||
let port = url.port, | ||
let username = url.user, | ||
let database = url.databaseName, | ||
url.path.count > 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check (url.path.count > 0
) is probably not necessary since the previous line will already guarantee that database name was supplied as a part of the connection string?
Hey @tanner0101, you just merged a pull request, have a coin! You now have 705 coins. |
No description provided.