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

    name

    database name

    host

    host url

    port

    port address

    user

    user name

    pass

    password

    driverType

    database driver type such as mySQL