Module

Level.DB.Operations

Package
purescript-leveldb
Repository
grybiena/leveldb

#get Source

get :: forall k v. EncodeJson k => DecodeJson k => EncodeJson v => DecodeJson v => LevelDB k v -> k -> Aff (Maybe v)

#put Source

put :: forall k v. EncodeJson k => DecodeJson k => EncodeJson v => DecodeJson v => LevelDB k v -> k -> v -> Aff Unit

#del Source

del :: forall k v. EncodeJson k => DecodeJson k => EncodeJson v => DecodeJson v => LevelDB k v -> k -> Aff Unit

#all Source

all :: forall k v. DecodeJson k => DecodeJson v => LevelDB k v -> Aff (Array (Tuple k v))

#nextEntryUp Source

nextEntryUp :: forall k v. EncodeJson k => DecodeJson k => DecodeJson v => LevelDB k v -> k -> Aff (Maybe (Tuple k v))

#nextEntryDn Source

nextEntryDn :: forall k v. EncodeJson k => DecodeJson k => DecodeJson v => LevelDB k v -> k -> Aff (Maybe (Tuple k v))

#allKeys Source

allKeys :: forall k v. DecodeJson k => DecodeJson v => LevelDB k v -> Aff (Array k)

#getMany Source

getMany :: forall k v. EncodeJson k => DecodeJson v => LevelDB k v -> Array k -> Aff (Array (Maybe v))

#putMany Source

putMany :: forall k v. EncodeJson k => EncodeJson v => LevelDB k v -> Array (Tuple k v) -> Aff Unit

#delMany Source

delMany :: forall k v. EncodeJson k => EncodeJson v => LevelDB k v -> Array k -> Aff Unit

#onPut Source

onPut :: forall k v. DecodeJson k => DecodeJson v => LevelDB k v -> (k -> v -> Effect Unit) -> Effect Unit