DOKK / manpages / debian 10 / sympa / Sympa::DatabaseManager.3sympa.en
Sympa::DatabaseManager(3Sympa) sympa 6.2.40 Sympa::DatabaseManager(3Sympa)

Sympa::DatabaseManager - Managing schema of Sympa core database

  use Sympa::DatabaseManager;
  
  $sdm = Sympa::DatabaseManager->instance
      or die 'Cannot connect to database';
  $sth = $sdm->do_prepared_query('SELECT FROM ...', ...)
      or die 'Cannot execute query';
  Sympa::DatabaseManager->disconnect;
  Sympa::DatabaseManager::probe_db() or die 'Database is not up-to-date';

Sympa::DatabaseManager provides functions to manage schema of Sympa core database.

Constructor. Gets singleton instance of Sympa::Database class managing Sympa core database.
Class method. Disconnects from core database.
Function. If possible, probes database structure and updates it.

Sympa::Database, Sympa::DatabaseDescription, Sympa::DatabaseDriver.

Sympa Database Manager (SDM) appeared on Sympa 6.2.

2020-12-10 6.2.40