DBT: Create DBT Structure

Description Usage Arguments Details Value Author(s) References

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

1
2
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.

Value

A DBT object.

Author(s)

Jeffrey A. Ryan

References

Official Oracle Documentation for DBT structs: http://docs.oracle.com/cd/E17076_04/html/gsg/C/cstructs.html


hrbrmstr/RBerkeley documentation built on May 17, 2019, 4:54 p.m.