dbInit {filehash}R Documentation

Simple file-based hash table

Description

Interface for a simple file-based hash table

Usage

dbCreate(dbName, type = c("DB", "RDS"))
dbInitialize(dbName, type = c("DB", "RDS"))

Arguments

dbName character, name of database
type type of database format. If missing, the default type will be used.

Details

dbCreate creates the necessary files or directory for the database. If those files already exist nothing is done.

dbInitialize takes a database name and returns an object inheriting from class "filehash".

The type argument specifies how the database should be stored on the disk, either as a pair of files ("DB") or as a made to automatically determine the typecollection of files in a directory ("RDS"). If not specified, the default type will be used (as specified by filehashOption).

Value

dbCreate returns TRUE upon success and FALSE in the event of an error.

Author(s)

Roger D. Peng

See Also

See filehash-class more information and examples and filehashOption for setting the default database type.


[Package filehash version 0.4 Index]