persistent-zookeeper-0.0.1: Backend for persistent library using Zookeeper.

Safe HaskellNone
LanguageHaskell98

Database.Persist.Zookeeper

Synopsis

Documentation

type Connection = Pool ZooStat Source

newtype ZookeeperT m a Source

Monad reader transformer keeping Zookeeper connection through out the work

Constructors

ZookeeperT 

withZookeeperConn :: (Monad m, MonadIO m) => ZookeeperConf -> (Connection -> m a) -> m a Source

Run a connection reader function against a Zookeeper configuration

thisConnection :: Monad m => ZookeeperT m Connection Source

Extracts connection from ZookeeperT monad transformer

data ZookeeperBackend Source

Instances

PathPiece (KeyBackend ZookeeperBackend entity)

ToPathPiece is used to convert a key to/from text