DBConfiguration
public struct DBConfiguration : Codable
database configuration that should be initialized when Configuration is initialized. ScantORM uses this configuration to initialize the DatabaseAdapter. You can use it without ScantORM if you need to!
-
database name
Declaration
Swift
public let name: String? -
host url
Declaration
Swift
public let host: String? -
port
Declaration
Swift
public let port: Int? -
database user name
Declaration
Swift
public let user: String? -
database password
Declaration
Swift
public let pass: String? -
database driver type
Declaration
Swift
public let driverType: DBDriverType -
initialize the database configuration
Declaration
Swift
public init(name: String?, host: String?, port: Int?, user: String?, pass: String?, driverType: DBDriverType)Parameters
namedatabase name
hosthost url
portport address
useruser name
passpassword
driverTypedatabase driver type such as mySQL
View on GitHub
DBConfiguration Structure Reference