Class: SettingsDAO

SettingsDAO

new SettingsDAO(db)

Data access object for settings.

Parameters:
Name Type Description
db Connection

instance of connection to data storage.

Source:
  • app/model/dao/SettingsDAO.js, line 11

Methods

load(callback)

Loads the set of application settings from storage and pass it to the given callback as an argument.

Parameters:
Name Type Description
callback Function
Source:
  • app/model/dao/SettingsDAO.js, line 22

persist(settings, callback)

Persist given settings to storage. Executes callback with the persisted settings as parameter.

Parameters:
Name Type Description
settings Settings
callback Function
Source:
  • app/model/dao/SettingsDAO.js, line 46