DBT:
Create DBT Structure
Description
Berkeley DB uses a C-level struct referred to as
a DBT (short for Data Base Thang). This is represented
in the R code as a list of class DBT. At present it
is only used in db_get
calls to allow for
more advance operations such as partial record retrieval.
Usage
DBT(data = NULL, size = NULL, ulen = NULL, dlen = NULL, doff = NULL, flags = NULL)
Arguments
data
An R object of type raw.
size
The size (in bytes) of the data object. Must be integer or NULL.
ulen
The ulen attribute of DBT. Must be integer or NULL.
dlen
The dlen attribute of DBT. Used for partial get/put. Must be integer or NULL.
doff
The dlen attribute of DBT. Used for partial get/put. Must be integer or NULL.
flags
The flags to DBT. Must be 0 or a valid DBT
flag.
Details
This interface to the underlying Berkeley DB DBT structure is
currently experimental, and is only supported in limited places
in RBerkeley.