Structure
MySQLConfiguration
A set of parameters used to connect to a MySQL database.
struct MySQLConfiguration
Topics
Initializers
init(hostname:port:username:password:database:tlsConfiguration:)Create aMySQLConfigurationfor connecting to a server with a hostname and optional port.init(unixDomainSocketPath:username:password:database:)Create aMySQLConfigurationfor connecting to a server through a UNIX domain socket.init(unixDomainSocketPath:username:password:database:tlsConfiguration:)Create aMySQLConfigurationfor connecting to a server through a UNIX domain socket.init(url:)Create aMySQLConfigurationfrom an appropriately-formatted URL string.
Instance Properties
addressA closure which returns the NIOSocketAddressfor a server.databaseAn optional initial default database for the connection.passwordThe password used to authenticate the connection. May be an empty string.tlsConfigurationOptional configuration for TLS-based connection encryption.usernameThe username used to authenticate the connection.
Type Properties
ianaPortNumberThe IANA-assigned port number for MySQL (3306).
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype