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

Safe HaskellNone
LanguageHaskell98

Database.Persist.Zookeeper

Synopsis

Documentation

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

Run a connection reader function against a Zookeeper configuration

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

addIdx :: [[String]] -> [(String, Int)] Source

delIdx :: [(String, Int)] -> [[String]] Source

dropIdx :: Int -> [[String]] -> [[String]] Source

takeIdx :: Int -> [[String]] -> [[String]] Source

sortIdx' :: Ord a => Bool -> [(String, a)] -> [[(String, a)]] Source

sortIdx :: Ord a => Bool -> [[(String, a)]] -> [[(String, a)]] Source

fstIdx :: Ord a => [[(String, a)]] -> [[String]] Source

selectOptParser' :: (PersistStore backend, MonadIO m, PersistEntity val, backend ~ PersistEntityBackend val) => [[String]] -> [SelectOpt val] -> ReaderT backend m [[String]] Source

selectOptParser :: (PersistStore backend, MonadIO m, PersistEntity val, backend ~ PersistEntityBackend val) => [String] -> [SelectOpt val] -> ReaderT backend m [String] Source