Skip to content

DatabaseConfig

Josh Wright edited this page Jan 14, 2021 · 3 revisions

DatabaseConfig

The information needed to connect to a database.

public struct DatabaseConfig

Initializers

init(socket:database:username:password:)

Initialize a database configuration with the relevant info.

public init(socket: Socket, database: String, username: String, password: String)

Parameters

  • socket: The location of the database.
  • database: The name of the database to connect to.
  • username: The username to connect with.
  • password: The password to connect with.

Properties

socket

The socket where this database server is available.

let socket: Socket

database

The name of the database on the database server to connect to.

let database: String

username

The username to connect to the database with.

let username: String

password

The password to connect to the database with.

let password: String
Alchemy
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Fusion
Types
Protocols
Papyrus
Types
Protocols
Clone this wiki locally