BerkeleyDB
view release on metacpan or search on metacpan
BerkeleyDB.pod view on Meta::CPAN
=item -Verbose
Add extra debugging information to the messages sent to B<-ErrFile>.
=back
=head2 Methods
The environment class has the following methods:
=over 5
=item $env->errPrefix("string") ;
This method is identical to the B<-ErrPrefix> flag. It allows the
error prefix string to be changed dynamically.
=item $env->set_flags(bitmask, 1|0);
=item $txn = $env->TxnMgr()
Constructor for creating a B<TxnMgr> object.
See L<"TRANSACTIONS"> for more details of using transactions.
This method is deprecated. Access the transaction methods using the B<txn_>
methods below from the environment object directly.
=item $env->txn_begin()
TODO
=item $env->txn_stat()
TODO
=item $env->txn_checkpoint()
TODO
=item $env->status()
Returns the status of the last BerkeleyDB::Env method.
=item $env->DB_ENV()
Returns a pointer to the underlying DB_ENV data structure that Berkeley
DB uses.
=item $env->get_shm_key($id)
Writes the base segment ID for the shared memory region used by the
Berkeley DB environment into C<$id>. Returns 0 on success.
This option requires Berkeley DB 4.2 or better.
Use the C<-SharedMemKey> option when opening the environmet to set the
base segment ID.
=item $env->set_isalive()
Set the callback that determines if the thread of control, identified by
the pid and tid arguments, is still running. This method should only be
used in combination with $env->failchk.
This option requires Berkeley DB 4.4 or better.
=item $env->failchk($flags)
The $env->failchk method checks for threads of control (either a true
thread or a process) that have exited while manipulating Berkeley DB
library data structures, while holding a logical database lock, or with an
unresolved transaction (that is, a transaction that was never aborted or
committed).
If $env->failchk determines a thread of control exited while holding
database read locks, it will release those locks. If $env->failchk
determines a thread of control exited with an unresolved transaction, the
transaction will be aborted.
Applications calling the $env->failchk method must have already called the
$env->set_isalive method, on the same DB environment, and must have
configured their database environment using the -ThreadCount flag. The
ThreadCount flag cannot be used on an environment that wasn't previously
initialized with it.
This option requires Berkeley DB 4.4 or better.
=item $env->stat_print
Prints statistical information.
If the C<MsgFile> option is specified the output will be sent to the
file. Otherwise output is sent to standard output.
This option requires Berkeley DB 4.3 or better.
=item $env->lock_stat_print
Prints locking subsystem statistics.
If the C<MsgFile> option is specified the output will be sent to the
file. Otherwise output is sent to standard output.
This option requires Berkeley DB 4.3 or better.
=item $env->mutex_stat_print
Prints mutex subsystem statistics.
If the C<MsgFile> option is specified the output will be sent to the
file. Otherwise output is sent to standard output.
This option requires Berkeley DB 4.4 or better.
=item $status = $env->get_blob_threshold($t1) ;
Sets the parameter $t1 to the threshold value (in bytes) that is used to
determine when a data item is stored as a Blob.
=item $status = $env->get_blob_dir($dir) ;
Sets the $dir parameter to the directory where blob files are stored.
=item $env->set_timeout($timeout, $flags)
=item $env->status()
Returns the status of the last BerkeleyDB::Env method.
=back
=head2 Examples
TODO.
=head1 Global Classes
$status = BerkeleyDB::db_remove [OPTIONS]
$status = BerkeleyDB::db_rename [OPTIONS]
$status = BerkeleyDB::db_verify [OPTIONS]
( run in 0.510 second using v1.01-cache-2.11-cpan-df04353d9ac )