DOKK / manpages / debian 12 / sympa / Sympa::Database.3sympa.en
Sympa::Database(3Sympa) sympa 6.2.70 Sympa::Database(3Sympa)

Sympa::Database - Handling databases

  use Sympa::Database;
  $database = Sympa::Database->new('SQLite', db_name => '...');
      or die 'Cannot connect to database';
  $sth = $database->do_prepared_query('SELECT FROM ...', ...)
      or die 'Cannot execute query';
  $database->disconnect;

TBD.

Constructor. Creates new database instance.
Instance method, only for LDAP. Performs LDAP search operation. About options see "search" in Net::LDAP.

Returns:

Operation handle (LDAP::Search object or such), or "undef".

Instance method, only for SQL. Prepares and executes SQL query. $statement is an SQL statement that may contain placeholders "?".

Returns:

Statement handle (DBI::st object or such), or "undef".

Instance method, only for SQL. Executes SQL query. $statement and parameters will be fed to sprintf().

Returns:

Statement handle (DBI::st object or such), or "undef".

Sympa::DatabaseDriver.

Sympa Database Manager (SDM) appeared on Sympa 6.2.

2023-01-26 6.2.70