NAME

MyDB::GDBM - implement the CIToolkit ``persistant object store'' with GDBM


MODULE

base


SYNOPSIS

  use MyDB::GDBM;
  $db = MyDB::GDBM->new(@dbopts,@args);


DESCRIPTION

This package provides the GDBM specific database interface methods. Several generic methods are inherited from MyDB.


METHODS

new - connect to the database
  $db = MyDB::GDBM->new(@dbopts,@args);
  $db = MyDB::GDBM->new($dbname, $rw_opt, %args);
  $db = MyDB::GDBM->new($dbname, $rw_opt, mode => '0664');

This method examines the datasource connection info to determine where and how to connect to a GDBM database and then initiates the connection, returning the connected database object. Returns undef on failure.

The $dbname parameter is simply the filename (absolute path) to the GDBM file, with the ``.db'' extension removed.

The %args parameter is optional, but may contain extra connection information such as the file permissions to use when creating a new GDBM file

The $rw_opt parameter determines whether the database is opened for read or write access, or if a new object store should be initialized. Valid values are ``r'', ``w'', ``c'' for readonly, write, and create.

other methods -
See MyDB documentation for other db access methods


SEE ALSO

MyDB

documentation for other db access methods

db_mgr