Learn R Programming

filehash (version 0.4-1)

dbInit: 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.

Value

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

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).

See Also

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