DatabaseAdapter

open fun DatabaseAdapter(guilds: Guilds, settings: SettingsManager)(source)

Creates a new instance of the DatabaseAdapter class.

Parameters

guilds

The Guilds instance that will use this database adapter.

settings

The SettingsManager instance that stores the settings for this database adapter.

Throws

if there is an issue setting up the backend database.


open fun DatabaseAdapter(guilds: Guilds, settings: SettingsManager, doConnect: Boolean)(source)

Creates a new instance of the DatabaseAdapter class.

Parameters

guilds

The Guilds instance that will use this database adapter.

settings

The SettingsManager instance that stores the settings for this database adapter.

doConnect

Specifies whether the database connection should be established immediately or not.

Throws

if there is an issue setting up the backend database.