Extended Structure
DatabaseConfigurationFactory
extension DatabaseConfigurationFactory
Topics
Type Methods
static func mysql(configuration: MySQLConfiguration, maxConnectionsPerEventLoop: Int, connectionPoolTimeout: TimeAmount, encoder: MySQLDataEncoder, decoder: MySQLDataDecoder, sqlLogLevel: Logger.Level?) -> DatabaseConfigurationFactoryCreate a database configuration factory for connecting to a server with a givenMySQLConfiguration.static func mysql(configuration: MySQLConfiguration, maxConnectionsPerEventLoop: Int, connectionPoolTimeout: TimeAmount, pruneInterval: TimeAmount?, maxIdleTimeBeforePruning: TimeAmount, encoder: MySQLDataEncoder, decoder: MySQLDataDecoder, sqlLogLevel: Logger.Level?) -> DatabaseConfigurationFactoryCreate a database configuration factory for connecting to a server with a givenMySQLConfiguration.static func mysql(hostname: String, port: Int, username: String, password: String, database: String?, tlsConfiguration: TLSConfiguration?, maxConnectionsPerEventLoop: Int, connectionPoolTimeout: TimeAmount, encoder: MySQLDataEncoder, decoder: MySQLDataDecoder, sqlLogLevel: Logger.Level?) -> DatabaseConfigurationFactoryCreate a database configuration factory for connecting to a server with a hostname and optional port.static func mysql(hostname: String, port: Int, username: String, password: String, database: String?, tlsConfiguration: TLSConfiguration?, maxConnectionsPerEventLoop: Int, connectionPoolTimeout: TimeAmount, pruneInterval: TimeAmount?, maxIdleTimeBeforePruning: TimeAmount, encoder: MySQLDataEncoder, decoder: MySQLDataDecoder, sqlLogLevel: Logger.Level?) -> DatabaseConfigurationFactoryCreate a database configuration factory for connecting to a server with a hostname and optional port.static func mysql(unixDomainSocketPath: String, username: String, password: String, database: String?, maxConnectionsPerEventLoop: Int, connectionPoolTimeout: TimeAmount, encoder: MySQLDataEncoder, decoder: MySQLDataDecoder, sqlLogLevel: Logger.Level?) throws -> DatabaseConfigurationFactoryCreate a database configuration factory for connecting to a server through a UNIX domain socket.static func mysql(unixDomainSocketPath: String, username: String, password: String, database: String?, maxConnectionsPerEventLoop: Int, connectionPoolTimeout: TimeAmount, pruneInterval: TimeAmount?, maxIdleTimeBeforePruning: TimeAmount, encoder: MySQLDataEncoder, decoder: MySQLDataDecoder, sqlLogLevel: Logger.Level?) throws -> DatabaseConfigurationFactoryCreate a database configuration factory for connecting to a server through a UNIX domain socket.static mysql(url:maxConnectionsPerEventLoop:connectionPoolTimeout:encoder:decoder:sqlLogLevel:)Create a database configuration factory from an appropriately formatted URL string.static mysql(url:maxConnectionsPerEventLoop:connectionPoolTimeout:pruneInterval:maxIdleTimeBeforePruning:encoder:decoder:sqlLogLevel:)Create a database configuration factory from an appropriately formatted URL string.