Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Sympa::DatabaseManager(3Sympa)	 sympa 6.2.56	Sympa::DatabaseManager(3Sympa)

NAME
       Sympa::DatabaseManager -	Managing schema	of Sympa core database

SYNOPSIS
	 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';

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

   Methods and functions
       instance	( )
	   Constructor.	 Gets singleton	instance of Sympa::Database class
	   managing Sympa core database.

       disconnect ( )
	   Class method.  Disconnects from core	database.

       probe_db	( )
	   Function.  If possible, probes database structure and updates it.

SEE ALSO
       Sympa::Database,	Sympa::DatabaseDescription, Sympa::DatabaseDriver.

HISTORY
       Sympa Database Manager (SDM) appeared on	Sympa 6.2.

6.2.56				  2020-05-24	Sympa::DatabaseManager(3Sympa)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | HISTORY

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Sympa::DatabaseManager&sektion=3sympa&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help