Skip to content

kafku/RLevelDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RLevelDB

R interface for LevelDB.

Installation

The package is not on CRAN. Please use devtools::install_github to install directly from github.

install.packages('devtools')
library(devtools)
install_github(repo = 'kafku/RLevelDB@develop')

Examples

db <- OpenLevelDB(path = "./testdb", create = T)

dbPut(db, keys = c("key1", "key2", "key3"), values = c("A", "B", "C"), sync = F)
dbGet(db, keys = c("key1", "key3")) # => c("A", "C")
dbDelete(db, keys = "key2", sync = F)
dbGet(db, keys = c("key1", "key2", "key3")) # => c("A", NA, "C")

License

GPL (>= 2)