Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 631 Bytes

File metadata and controls

29 lines (19 loc) · 631 Bytes

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)