berkdb open API Ref

berkdb open
	[-auto_commit]
	[-btree | -hash | -recno | -queue | -unknown]
	[-cachesize {gbytes bytes ncache}]
	[-create]
	[-delim delim]
	[-dup]
	[-dupsort]
	[-encrypt]
	[-encryptaes passwd]
	[-encryptany passwd]
	[-env env]
	[-errfile filename]
	[-excl]
	[-extent size]
	[-ffactor density]
	[-len len]
	[-mode mode]
	[-nelem size]
	[-pad pad]
	[-pagesize pagesize]
	[-rdonly]
	[-recnum]
	[-renumber]
	[-snapshot]
	[-source file]
	[-truncate]
	[-txn txnid]
	[--]
	[file [database]]
Description(berkdb open)

The berkdb open command opens and optionally creates a database. The returned database handle is bound to a Tcl command of the form dbN, where N is an integer starting at 0 (for example, db0 and db1). It is through this Tcl command that the script accesses the database methods.

The options are as follows:


-auto_commit -btree -hash -queue -recno -unknown -cachesize {gbytes bytes ncache} -create -delim delim -dup -dupsort -encrypt -encryptaes passwd -encryptany passwd -env env -errfile filename -excl -extent size

For information on tuning the extent size, see Selecting a extent size.

-ffactor density -len len -mode mode -nelem size -pad pad -pagesize pagesize -rdonly -recnum -renumber -snapshot -source file -truncate -txn txnid -- file database

The berkdb open command returns a database handle on success.

In the case of error, a Tcl error is thrown.


APIRef

Copyright (c) 1996,2008 Oracle. All rights reserved.