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

Safe HaskellNone
LanguageHaskell98

Database.Persist.Zookeeper

Synopsis

Documentation

type Connection = Pool ZooStat Source

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

updateEntity :: PersistEntity val => val -> [Update val] -> Either Text val Source

data OrNull Source

Constructors

OrNullYes 
OrNullNo 

filterClauseHelper Source

Arguments

:: PersistEntity val 
=> Bool

include WHERE?

-> OrNull 
-> val 
-> [Filter val] 
-> (Bool, Text, [PersistValue]) 

filterClause :: PersistEntity val => val -> [Filter val] -> (Bool, Text, [PersistValue]) Source