GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SYMPA::DATABASE (3)

.ds Aq ’

NAME

Sympa::Database - Handling databases

CONTENTS

SYNOPSIS



  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;



DESCRIPTION

TBD.

    Methods

new ( $db_type, [ option => value, ... ] ) Constructor. Creates new database instance.
do_operation ( $operation, options... ) 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.

do_prepared_query ( $statement, parameters... ) 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.

do_query ( $statement, parameters... ) 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.

SEE ALSO

Sympa::DatabaseDriver, Sympa::Datasource.

HISTORY

Sympa Database Manager (SDM) appeared on Sympa 6.2.
Search for    or go to Top of page |  Section 3 |  Main Index


6.2.14 SYMPA::DATABASE (3Sympa) 2016-01-06

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.